Skip to main content

Microsoft Silverlight

Unanswered Question Errors "The Specified Resource was not found" & 500 error responses for DataService.asdRSS Feed

(0)

rshelby
rshelby

Member

Member

277 points

66 Posts

Errors "The Specified Resource was not found" & 500 error responses for DataService.asd

Hello,

I know there are several other posts related this issue, but none of the solutions seem to be working in my case.

I currently have a RIA Business Application with FormsAuthentication that runs fine on my development machine, however when I run the application on the test server nothing works.  I receive the error "The Specified Resource was not found".

Also, from fiddler I notice the calls to the services / DataService.axd all return 500 response errors.  For example:

**********************************************************************

POST http://myservername/ClientBin/DataService.axd/MyApp-Web-Services-NHKShareService/$Submit
500 Internal Server Error

GET http://myservername/ClientBin/DataService.axd/MyApp-Web-Services-NHKShareService/GetShare_Links
500 Internal Server Error

*********************************************************************

Originally I thought the problem was caused by the RIA Authentication services, but after removing the authentication related functionality, I now see the 500 error response is happening for everything related to the calls to /ClientBin/DataService.axd

I tried the following advice before posting this thread:

1.) Made sure the 2 DataService related Handlers are inside my web.config file.

2.) My server is running in "full trust".

Any help is greatly appreciated!

Ryan Shelby

rshelby.com

ColinBlair
ColinBlair

Contributor

Contributor

6701 points

1,318 Posts

Re: Errors "The Specified Resource was not found" & 500 error responses for DataService.asd

You have the RIA Services DLLs in your bin directory?

-Colin Blair

http://www.RiaServicesBlog.net : The Elephant Guide to RIA Services
SLColinBlair on Twitter

rshelby
rshelby

Member

Member

277 points

66 Posts

Re: Errors "The Specified Resource was not found" & 500 error responses for DataService.asd

After I compile the project the following 4 dlls are automatically added to my project's Bin folder, however I did not include them in my source project.  Is this necessary?

 System.ComponentModel.DataAnnontations

System.Web.DomainServices.dll

System.Web.DomainServcies.Providers.dll

System.Web.Ria.dll

 

Ryan Shelby

rshelby.com

ColinBlair
ColinBlair

Contributor

Contributor

6701 points

1,318 Posts

Re: Errors "The Specified Resource was not found" & 500 error responses for DataService.asd

I have them included in my project, the references were added automatically for me. That might be your problem.

-Colin Blair

http://www.RiaServicesBlog.net : The Elephant Guide to RIA Services
SLColinBlair on Twitter

rshelby
rshelby

Member

Member

277 points

66 Posts

Re: Errors "The Specified Resource was not found" & 500 error responses for DataService.asd

Sorry, I checked the wrong folder.

In my Web Folder Bin I do have the 4 dlls above automatically added.

In my Client Side Bin folder however I do not have any dlls automatically added.  The System.Window.RIA and System.Window.RIA.Controls references are based on the dlls at "Program Files\Microsoft SDKs\RIA Services\v1.0\Libraries\Silverlight\"

I added these 2 directly to my client bin folder and changed the default references but still no difference.

Thanks for the info though.

Ryan Shelby

rshelby.com

ColinBlair
ColinBlair

Contributor

Contributor

6701 points

1,318 Posts

Re: Errors "The Specified Resource was not found" & 500 error responses for DataService.asd

Your problem is server side so the client dlls don't matter. You would also be getting the same error if you are missing the dll and reference to your DomainService as well.

-Colin Blair

http://www.RiaServicesBlog.net : The Elephant Guide to RIA Services
SLColinBlair on Twitter

rshelby
rshelby

Member

Member

277 points

66 Posts

Re: Errors "The Specified Resource was not found" & 500 error responses for DataService.asd

Could you elaberate on "missing the dll and reference to your DomainService"?  Sorry for the trouble.

Ryan Shelby

rshelby.com

ColinBlair
ColinBlair

Contributor

Contributor

6701 points

1,318 Posts

Re: Errors "The Specified Resource was not found" & 500 error responses for DataService.asd

If you have your DomainService in a seperate project from your website (which is the recommended pattern) then you need the web application to reference the project with the DomainService. If you don't, you get a 500 error.

-Colin Blair

http://www.RiaServicesBlog.net : The Elephant Guide to RIA Services
SLColinBlair on Twitter
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities