This is a migrated thread and some comments may be shown as answers.

problem publishing silverlight app

2 Answers 68 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
jtby
Top achievements
Rank 1
jtby asked on 15 Jan 2010, 12:28 AM
when I publish my app to IIS and run from internet explorer my silverlight report viewer crashes due to:

ReportServiceUri

 

="../reportservice.svc"

... but runs fine from VS2008 on the same server.  In this case VS2008 and IIS are all on the same server.  I am using a report that has no dataconnections, only a single textbox in the header, to rule out data conection string problemes.  reportservice.svc exists in the correct location when I publish my app, everything looks good acccording KB article regarding publishing reporting apps, not sure what else to look at.  Any ideas? 






 

2 Answers, 1 is accepted

Sort by
0
Chris Gillies
Top achievements
Rank 1
answered on 15 Jan 2010, 08:17 AM
If it works fine in Visual Studio built-in web server, but not on IIS then you have not hosted the service correctly. You can review some articles on the matter:

  • http://msdn.microsoft.com/en-us/library/ms730158.aspx
  • http://msdn.microsoft.com/en-us/library/ms733766.aspx

Cheers
0
jtby
Top achievements
Rank 1
answered on 15 Jan 2010, 02:40 PM
Thanks - following those links led me to the real problem which is WCF services hosted in IIS can have only one Base Address.  You can fix up easily in web.config like this:

http://blog.befruit.com/2008/09/wcf-error-this-collection-already.html


Tags
General Discussions
Asked by
jtby
Top achievements
Rank 1
Answers by
Chris Gillies
Top achievements
Rank 1
jtby
Top achievements
Rank 1
Share this question
or