Skip to main content

Microsoft Silverlight

Answered Question No data after deployedRSS Feed

(0)

rainy21
rainy21

Member

Member

11 points

46 Posts

No data after deployed

Hi,

 I am encountering this problem, whereby i have done all my stuff in the localhost. A website application connected to a database. A silverlight xap which uses a service reference from the website application. The website could run and load the data from the database. But however when i deployed it into a virtual directory, the data couldn't be displayed.?

Could anyoni give me some pointers or details instruction about what should i do?
I have read about the clientaccesspolicy and crossdomain stuff. I have added this 2 xml into my root folder,but nothing changes.

 Any help would be appreciated, Thanks

odahan
odahan

Participant

Participant

1625 points

291 Posts

Answered Question

Re: No data after deployed

If data are not loaded, then the link between the app and the data is broken... you have to find where. So try to retrieve info about the execution of the silverlight app, displaying messages and tracking possible hidden exceptions.

Olivier Dahan (MVP C#)
wwww.e-naxos.com
Blog: www.e-naxos.com/blog
English is not my native language so be indulgent and do not hesitate to ask for clarification! Thanks.

rainy21
rainy21

Member

Member

11 points

46 Posts

Re: No data after deployed

 

i have been trying to search for days about the broken link as u said. I couldnt seems to find any as there is no error and exception being thrown.

martonx
martonx

Member

Member

11 points

31 Posts

Re: Re: No data after deployed

 Hi,

 

I have the same problem. From VS2008 with F5 my website works perfectly with the .mdf file in the App_data folder.

 

When I copy the Release folder from my project plus the App_data folder, I can't see any data from .mdf file.

 

What is the suggested operation, to deploy Silverlight project with local database?

rahul001
rahul001

Member

Member

20 points

29 Posts

Re: No data after deployed

Hey

your data base is local ?

I think you should clean your solution and also update your services..........

Please "Mark as Answer" if this post answered your question.

Ardman
Ardman

Contributor

Contributor

3254 points

906 Posts

Re: Re: No data after deployed

If you are hosting your project in IIS, you'll find that it connects to the database using the IIS account and not the account that you are using.  If you have Integrated Security set to True in your connection string, you will need to change this to false and add in an account that can access the database.

smcondra
smcondra

Member

Member

2 points

2 Posts

Re: Re: Re: No data after deployed

Ardman's response actually fixed the issue for me. I had the Integrated Security set to True. Once I set it to False and passed in the login information for the SQL server the data showed up. Thanks Ardman. I spent the last couple of days trying to resolve this issue.

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities