Solved

silverlight  windows 7

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

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…
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

705 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now