Click here to Skip to main content
12,825,646 members (36,058 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# Silverlight
Hi there.

I have developed web application in Visual Studio 2010. It has there integrated projects which are working very fine, and are:
1. Business Layer (Class Library)
2. Gantt Chart (Silverlight Project which uses WCF for performing CRUD on DB)
3. ProjectASP ( Web Project)

Then I packaged the entire solution and installed an MSI setup. When I deploy the application, the silverlight project is showing when its redirected to but it is either not accessing the WCF or not connecting to the database while others are able to. So I want know what the problem is and how I can fix it.

Posted 7-Aug-12 22:15pm
Kenneth Haugland 8-Aug-12 3:18am
We need to see the error you got, or else this is just going to be a wild guessing game.
Sandeep Mewara 8-Aug-12 12:09pm
Christian Amado 8-Aug-12 16:22pm
The problem is on web.config in system.serviceModel section.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1


You should first check the URI of the WCF service that the Silverlight application refers to, when it instantiates the auto-generated custom DomainContext through RIA Service. (Note that, if needed, when you create an instance of generated DomainContext in your Silverlight application code, you can pass an URI as a parameter to its constructor, either absolute or relative to the Web application that hosts the Silverlight output.)

You should also check the database connection string in Web.config file of the deployed ASP .NET Web application. Also verify, is the Windows domain user that the application pool used by the Web application is configured to run as able and allowed (i.e. having permissions granted) to connect to the database server and then to the configured database?

Check the Event Log of the server, and/or use a network sniffing tool during tests and then review its reports, to get further information that might help you speed up your investigation.

DlhSoft Team

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

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170308.1 | Last Updated 9 Aug 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100