Last post Nov 03, 2010 08:35 PM by sjnaughton
Oct 28, 2010 01:11 PM|harisri7862k4u|LINK
I noticed this while i was working on asp.net dynamic data web app. It made me go crazy as I struggled quite a lot of time why this error was coming.
Basically, I have some of the custom page templates added to my application. I observed that if I keep these custom pages say /DynamicData/CustomPages/Employees/Details.aspx opened in the designer, I always get following error when i try to run the app.
I did not understand the logic behind this. In order to confirm, i created a simple web app with dynamic data and still this error occurs. In fact, the same error also occurs if you keep
any of the default page templates opened in your designer.
Thought I should share with you all. If I am wrong or missing something, please do correct me....
resource cannot be found
Oct 30, 2010 09:42 AM|sjnaughton|LINK
Hi harisri7862k4u, this is because you can't run the page template from it's physical location, 1. because the web.config in the DynamicData folder prevents this and two because they need Routing to have the right data avaiable. the best thing to do it set
the site Start page. This is done by right clicking the page you want to start and setting it as the start page.
Dynamic Data 4
Nov 03, 2010 06:15 AM|harisri7862k4u|LINK
You are right. Although VS 2010 treats default.aspx as the start page, yet setting it as the start page manually solves this problem.
thanks for the clarification...
Nov 03, 2010 08:35 PM|sjnaughton|LINK
That's because VS by default runs the currenly open page, if no page is open it will try Default Home Index etc. but if you specify startup page then it will launch that always. A must in DD work.