Click here to Skip to main content
15,918,808 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. 

Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS


After uploading aspx, aspx.cs and other required file in server i have got these above error.
Can anybody guide me how to upload website on server?

Thanks in advance.
Posted
Updated 14-Sep-11 18:07pm
v2
Comments
Prerak Patel 15-Sep-11 0:07am    
Added block for error.
sahabiswarup 15-Sep-11 0:19am    
can you please explain your question Prerak Patel

1 solution

There are mainly one of the two reasons why you got this error message.

1. If you have not configured your website virtual directory as application in IIS. Right click on the virtual directory it would have an option as "Convert to Application", select it. Also make sure your site has read,write permission.

2. If above is not problem then there are two or many web.config files exist on your site. Look for any backup folders that you left inside virtual directory, just remove this subfolder & web.config.

One of these would fix your problem.
 
Share this answer
 
Comments
sahabiswarup 23-Sep-11 5:29am    
Thanks very much.

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