asp.net common mistakes in the process of operation _ practical skills

Source: Internet
Author: User

Error One: IIS was unable to recognize the ASP.net and reported the following error:

The name begins with an invalid character. Error processing resource ' http://localhost/likong/'. 1th Line, Location: 2

Workaround:

To run in a command window:

C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe-i [. NET 1.1] 

C:\WINDOWS\Microsoft.NET\ framework\v2.0.50727\aspnet_regiis.exe-i [. NET 2.0]

Failed to load file or assembly "EnvDTE, version=8.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a" or one of its dependencies. The system could not find the specified file.

From the Start menu, select Search for the following 2 files: Envdte.dll,envdte80.dll. and copy the 2 files to the bin directory of the virtual space (if there is no directory, manually build it)

Error Two: How to troubleshoot "Use registration as allowdefinition= outside the application level" MachineToApplication

Error 1 using a section registered as allowdefinition= ' machinetoapplication outside the application level is incorrect. This error can be caused if the virtual directory is not configured as an application in IIS. D:\myweb\YuJieSuanGenZong\WebApplication1\WebApplication1\Web.config 25

Error Reason: View all folders involved in the project, this error occurs if there are two web.config.

Workaround: Remove the extra Web.config file

Error Three: An error occurred while establishing a connection to the server. When you connect to SQL Server 2005, this failure may be caused by SQL Server not allowing remote connections under the default settings. (provider:sql Network interface, error:26-error locating the specified server/instance )
Workaround: First, make sure that SQL Server Exprss is installed on the local computer and that the SQL Server (SQLEXPRESS) service has started successfully. If the problem persists, you can try opening the SQL Server perimeter configuration, select the services and connections perimeter configuration, and then configure remote connections to use both TCP/IP and Named Pipes.

These three kinds of errors are often encountered in the operation of ASP.net, I hope this article really can help you solve such problems.

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.