Click here to Skip to main content
15,891,789 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a created a website and when i am trying to run the website in other systems,I got directory listing instead of home page...
please solve the problem?
And i noticed a message as "the master page file '~/administrator/admin.master cannot be opened" in the design part and as follows in source
"Runtime error: It is an error to use a section registered as allow definition='Machine To Application' beyond application level"
HOPE UNDERSTOOD MY QUESTION
Posted
Updated 20-Mar-12 20:01pm
v2
Comments
senguptaamlan 21-Mar-12 2:06am    
are you using any third party dll ?

1 solution

Quote:
"Runtime error: It is an error to use a section registered as allow definition='Machine To Application' beyond application level"


Generally this happens when you have more than one Web.Config file in your application root folder.
Just check if you have more than one. If so, remove the duplicate copies.

Quote:
have a created a website and when i am trying to run the website in other systems,I got directory listing instead of home page...


Set Default Document in IIS(If run on IIS)
set as start page in vs.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900