• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 598
  • Last Modified:

silverlight windows 7

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
Message: Unhandled Error in Silverlight Application [net_uri_BadFormat]
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

  • 3
1 Solution
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.
jagguyAuthor Commented:

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
jagguyAuthor Commented:
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
        ElseIf Not myid Is Nothing Then
            txtLog.Text = "enter user"
        End If

    End Sub

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.
jagguyAuthor Commented:
i am getting SL4 and vs2010

i have been warned silverlight 3 causes problems with wcf
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now