Solved

silverlight  windows 7

Posted on 2010-08-25
8
587 Views
Last Modified: 2013-11-25
My silverlight app gets an error on a windows 7 enterprise 64 bit OS. From a school network it will load but it wont access a sql DB. It will work from my laptop in the school and I have the same access rights.

I spoke to the tech in the school and he claims it isnt a permission thing and also my asp.net app works. That asp.net app connects to the same  DB on the same school environemt that the silverlight app doesnt.
Both of the application are hosted on an external site of course.
It must be these WCF calls issue.

THis isnt making any sense to me as on XP it all works fine.
login 01
pswd 1
http://www.mymrt.net/sums/sums.Web/sumsTestPage.aspx.
Message: Unhandled Error in Silverlight Application [net_uri_BadFormat]
Arguments:
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=3.0.50611.0&File=System.dll&Key=net_uri_BadFormat   at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
   at System.Uri..ctor(String uriString, UriKind uriKind)
   at System.ServiceModel.Configuration.ChannelEndpointElement.ReadXml(XmlReader reader)
   at System.ServiceModel.Configuration.ClientSection.ReadXml(XmlReader reader)
   at System.ServiceModel.Configuration.ServiceModelSectionGroup.ReadXml(XmlReader reader)
   at System.ServiceModel.Configuration.ServiceModelSectionGroup.GetSectionGroup()
   at System.ServiceModel.Configuration.ServiceModelSectionGroup.get_Current()
   at System.ServiceModel.Description.ConfigLoader.LookupChannel(String configurationName, String contractName, Boolean wildcard)
   at System.ServiceModel.Description.ConfigLoader.LoadChannelBehaviors(ServiceEndpoint serviceEndpoint, String configurationName)
   at System.ServiceModel.ChannelFactory.ApplyConfiguration(String configurationName)
   at System.ServiceModel.ChannelFactory.InitializeEndpoint(String configurationName, EndpointAddress address)
   at System.ServiceModel.ChannelFactory`1..ctor(String endpointConfigurationName, EndpointAddress remoteAddress)
   at System.ServiceModel.EndpointTrait`1.CreateSimplexFactory()
   at System.ServiceModel.EndpointTrait`1.CreateChannelFactory()
   at System.ServiceModel.ClientBase`1.CreateChannelFactoryRef(EndpointTrait`1 endpointTrait)
   at System.ServiceModel.ClientBase`1.InitializeChannelFactoryRef()
   at System.ServiceModel.ClientBase`1..ctor(String endpointConfigurationName, String remoteAddress)
   at sums.ServiceReference1.Service1Client..ctor(String endpointConfigurationName, String remoteAddress)
   at sums.ClassIntro.displayData()
   at sums.ClassIntro.btnlog_click(Object sender, RoutedEventArgs e)
   at System.Windows.Controls.Primitives.ButtonBase.OnClick()
   at System.Windows.Controls.Button.OnClick()
   at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
   at System.Windows.Controls.Control.OnMouseLeftButtonUp(Control ctrl, EventArgs e)
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)
Line: 1
Char: 1
Code: 0
URI: http://www.mymrt.net/sums/sums.Web/Silverlight.js

Open in new window

0
Comment
Question by:jagguy
  • 3
8 Comments
 
LVL 5

Expert Comment

by:Silverlay
ID: 33531374
Everything works fine for me.
Could be problem on WCF Proxy class. Make sure you pointed right uri of WCF. Try debug from school to see if exception occurs on proxy class creation.
0
 

Author Comment

by:jagguy
ID: 33537591
Hi,

I dont understand what you mean. Could you explain this more as if it doint point to the right WCF then it would work at all but it does work on my PC in the same location as this network
0
 

Author Comment

by:jagguy
ID: 33537750
this is how i call  a WCF class and I dodnt use close.
This is the only way that has worked on my server and after 3 weeks of fiddling on this server for this app to work there is no way I will change it but I can add to it if need be.

BTW: the amount of time i have spent doing this app has been huge. For this yet another issue with silverlight I really am more than annoyed. It really is hard to get help with WCF issues.


  Public Sub displayData()
        Dim uri As New Uri(Application.Current.Host.Source, "../service1.svc")
        Dim webservice1 As New sums.ServiceReference1.Service1Client("CustomBinding_Service1", uri.AbsoluteUri)


        '  Dim webservice1 As New sums.ServiceReference1.Service1Client

        AddHandler webservice1.selectdataCompleted, AddressOf webservice_selectdataCompleted


       

        '  ElseIf Not (txtLog.Text Is Nothing Or txtpswd.Password = "") Then
        If Not (txtLog.Text Is Nothing) Then
            webservice1.selectdataAsync(txtLog.Text)
        ElseIf Not myid Is Nothing Then
            webservice1.selectdataAsync(myid)
        Else
            txtLog.Text = "enter user"
        End If

    End Sub
0
 
LVL 16

Expert Comment

by:SriVaddadi
ID: 33573045
jagguy,

Did you try running the VS IDE as administrator.

1. Right click on the VS IDE
2. Select and click run as administrator.

I hope u have local admin rights.
0
 

Accepted Solution

by:
jagguy earned 0 total points
ID: 33576609
i am getting SL4 and vs2010

i have been warned silverlight 3 causes problems with wcf
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question