Server errors and solutions in "/" applications

Source: Internet
Author: User
Tags connectionstrings ntfs permissions

Workaround: Increase NTFS permissions on the directory in which the site resides, and increase service users ' complete control over the site Directory





error message is as follows:


run-time Error





Description: An application error occurred on the server. The current custom error setting for this application prevents remote viewing of application error details for security reasons. However, you can view it by using a browser that is running on the local server computer.





Details: To enable others to view the details of this particular error message on a remote computer, create a <customErrors> tag in the "Web.config" configuration file located under the root of the current WEB application. You should then set the "mode" property of this <customErrors> tag to "off."





<!--web.config configuration file-->





<configuration>


<system.web>


<customerrors mode= "Off"/>


</system.web>


</configuration>





Note: You can replace the current error page you see with a custom error page by modifying the "defaultredirect" property of the application's <customErrors> configuration tag to point to the URL of the custom error page.





<!--web.config configuration file-->








<configuration>


<system.web>


<customerrors mode= "RemoteOnly" defaultredirect= mycustompage.htm "/>"


</system.web>


</configuration>








a server error in the "/" application.


Configuration Error


Note: An error occurred while processing the configuration file required to provide services to the request. Please check the specific error details below and modify the configuration file appropriately.





Parser Error message: Unrecognized configuration section "connectionstrings"





Source Error:





row: <add key= "DSN" value= "server= (local);d atabase=al_bysj;uid=sa;pwd=" />


</appSettings>


: <connectionStrings>


line: <add name= "al_bysjconnectionstring" connectionstring= "Data source= (local); Initial CATALOG=AL_BYSJ; User Id=sa; Password= "providername=" System.Data.SqlClient "/>


: </connectionStrings>








source file: D:precompiledwebmaterialmanageweb.config line:





Version information: Microsoft. NET Framework Version: 1.1.4322.2300; asp.net version: 1.1.4322.2300


can be captured from version information,





Confirm your Microsoft. NET Framework version, I am using the Microsoft. NET Framework 2.0.











Solution One:





runs c:/windows/microsoft.net/framework/v2.0.50727/aspnet_regiis.exe-i in the cmd command line





Solution two:





Select the Web site in IIS, right-click ' Properties ', and select the ASP.net tab bar. Change the asp.net version to 2.0.


Microsoft. NET Framework version: 1.1.4322.2300

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.