Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
I have a simple Silverlight Login application, which uses WCF services to interact with database(Mysql) on my system.
I hosted this app in IIS 7.5. It is running fine when I am browsing from my system. But when I open the application on another system (within same LAN) main page opens without any problem. When i try to login, it doesn't throw any error but it is unable to open open the child page.

I don't know much about this thing and i don't know what to do. I am looking for all sorts of guidance. If anybody had same problem and fixed it, please let me know.

Thanks in advance. :)
Posted
Updated 11-Jul-13 2:15am
v2

Silverlight applications can run in two modes, In-Browser and Out-of-Browser. When running In-Browser (when you host it in a website in IIS), you cannot access a database directly. In-Browser Silverlight applications typically run with low-privilege.

You will need to create a WCF service to perform database queries and your Silverlight application will then have to communicate with the WCF service.

If you're using Silverlight 5 and your application is not public, perhaps consider enabling elevated trust: http://msdn.microsoft.com/en-us/library/gg192793(v=vs.95).aspx[^]
 
Share this answer
 
Comments
Mohammed Hameed 11-Jul-13 8:17am    
Good explanation :thumbsup:
Suraj Pawar 12-Jul-13 1:06am    
I'm using silverlight 4 and i am using WCF service for database communication.
i have published both .web and wcf services in same folder. Any reasons why database interaction is not happning from LAN.
Suraj Pawar 12-Jul-13 6:54am    
when i click on browse *:8085 in IIS main page opens up but login does not happen in my local desktop also.......... Please help!
demius 12-Jul-13 6:57am    
This is a separate problem. Do you have an HTML page hosting your Silverlight application?
Suraj Pawar 12-Jul-13 7:22am    
i accidentally deleted it but i have .aspx page
I did everything rite port was also open in firewall only thing was service was not accessible.
After digging for answers i figured out i did below changes.
[AspNetCompatibilityRequirements (RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]

in my service and proper endpoint configuration.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900