?
Solved

silverlight  windows 7

Posted on 2010-08-25
8
Medium Priority
?
590 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

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

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

770 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