Click here to Skip to main content
16,021,115 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
my code was working nicely on local and server as well but when i published the website and uploaded on server then it is showing me this error :

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.

Source Error:


An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.


Source File: G:\PleskVhosts\patientshealthyselves.com\...\.....org\test\web.config Line: 50

Version Information: Microsoft .NET Framework Version:2.0.50727.6421; ASP.NET Version:2.0.50727.6427

XML
<authentication mode="Forms"/>

          <!--The <customErrors> section enables configuration
          of what to do if/when an unhandled error occurs
          during the execution of a request. Specifically,
          it enables developers to configure html error pages
          to be displayed in place of a error stack trace.-->

          <customErrors mode="Off" > </customErrors>


and this is my code ....why this is happening i have searched lot for this but still stuckked with same plzzz help me guide me...also tell me how to resolve this
Posted

1 solution

 
Share this answer
 
Comments
Member 11932995 22-Sep-15 9:01am    
Thanks for replying my post....but i have already gone through these two links and tried to fix this accordingly but still this problem is not solved....:(

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