Solved

silverlight  windows 7

Posted on 2010-08-25
8
586 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

860 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