Scenario: MVC ASP.NET application containing WCF data services. When you try to browse WCF data service .svc page you might get the error
"Resource not found -404 error" .
Reson for such behavior : When you try to browse to data service page , the request is sent to MVC framework first rather than data service . As the controller is not defined for such request , error is send back.
Resolution :Ignore request redirection to MVC framework when WCF data service is requested .In order to achieve this add following to global.asax RegisterRoute function.
routes.IgnoreRoute("{resource}.svc/{*pathInfo}");
Showing posts with label WCF Data Services. Show all posts
Showing posts with label WCF Data Services. Show all posts
Saturday, October 15, 2011
Tuesday, August 16, 2011
An entity object cannot be referenced by multiple instances of IEntityChangeTracker.
I got this error due to using separate context object for an entity. I had to use same context object to perform multiple operations in Entity .
Friday, August 12, 2011
Specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider
I got this error when i was trying to browse the WCF data Services. The resolution for this issue was to define the connection string for database defined in in app.config file to the web.config file of the web application.
In Nutshell , below is my scnerio :
Project 1 : Contains the .edmx and app.config file
Project 2 : Contains the .SVC referencing entity model defined in project 1 and web.config file
Resolution :
Copy the Db connection defined in app.config to web.config under configuration section .
Subscribe to:
Posts (Atom)
Gray Failures: What is it and how to detect one?
If you are reading this article , i guess you are curious to know about gray failures and different methods to detect gray failures. Hopefu...
-
Ever wanted to have a people picker kind of control in Infopath form and that too in browser mode. Did i heard yes :) , well there is a Acti...
-
Note : In below scenario jenkins was deployed in Linux container Scenario: Jenkins build failed with error. java.io.IOException: error...
-
Simple concept but still pain in head if unable to figure out :) Response.Redirect("#");