Click here to Skip to main content
Rate this: bad
good
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 (ASP.net 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.

Thanks,
Kholisa.
Posted 7-Aug-12 22:15pm
kolisa543
Comments
Kenneth Haugland at 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 at 8-Aug-12 12:09pm
   
Error?
Christian Amado at 8-Aug-12 16:22pm
   
The problem is on web.config in system.serviceModel section.

1 solution

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

Solution 1

Hello,

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.

Regards,
DlhSoft Team
  Permalink  
v2

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 144
1 Sascha Lefévre 100
2 OriginalGriff 90
3 Abhinav S 84
4 Maciej Los 84
0 Sergey Alexandrovich Kryukov 6,578
1 OriginalGriff 6,298
2 Peter Leow 2,534
3 Abhinav S 2,358
4 Maciej Los 2,352


Advertise | Privacy | Mobile
Web04 | 2.8.150414.1 | Last Updated 9 Aug 2012
Copyright © CodeProject, 1999-2015
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