Microsoft Knowledge Base Email Alertz

KBAlertz.com: (827074) - When you use Visual Studio .NET 2003 to open an ASP.NET 1.0 project on a Web server that is running ASP.NET version 1.1, you may receive the following ASP.NET Version Mismatch error message: Visual Studio .NET has detected that the Web server is...

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]

Search KbAlertz

Advanced Search

Webmasters
Put kbAlertz on your website.
[ Click Here for more! ]





ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
KBAlertz referrals get
** SIX MONTHS FREE **


Community Site



We Send hundreds of thousands of emails using ASP.NET Email


ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
KBAlertz referrals get
** SIX MONTHS FREE **




Mentioned In








Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks




Article ID: 827074 - Last Review: July 21, 2006 - Revision: 1.6

BUG: "ASP.NET Version Mismatch" error message when you open an ASP.NET 1.0 project in Visual Studio .NET 2003

On This Page

SYMPTOMS

When you use Microsoft Visual Studio .NET 2003 to open a Microsoft ASP.NET 1.0 project on a Web server that is running ASP.NET version 1.1, you may receive the following "ASP.NET Version Mismatch" error message:
Visual Studio .NET has detected that the Web server is running ASP.NET version 1.0. The Web application you are creating or opening can be configured to be compliant with ASP.NET 1.0.

However, the application will not be able to use new features from ASP.NET 1.1.

CAUSE

This problem occurs because the virtual root of the Web server that is hosting the Web application is configured to use ASP.NET 1.0.

WORKAROUND

To work around this problem, create a Get_aspx_ver.aspx file in the Web application folder that contains the Web.config file. To create the Get_aspx_ver.aspx file for the Web application that you create in the "More Information" section of this article, follow these steps:
  1. Locate the MyWebApp2002 project folder (located in %Inetpub%\wwwroot).
  2. In the MyWebApp2002 folder, create a new text file, and then rename the file get_aspx_ver.aspx.
  3. Add the following line of code to the Web.config file:
    <location path="get_aspx_ver.aspx" />
  4. In the Rename dialog box, click Yes.
  5. Perform steps 4, 5 and 6 in the "More Information" section of this article.

    Note If you receive a Microsoft Development Environment dialog box, click OK.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

Steps to reproduce the behavior

  1. Create a new ASP.NET 1.0 Web application. To do this, follow these steps:
    1. Start Microsoft Visual Studio .NET.
    2. On the File menu, point to New, and then click Project.
    3. Under Project Types, click Visual C# Projects or Visual Basic Projects, and then click ASP.NET Web Application under Templates.
    4. In the Location text box, type http://localhost/MyWebApp2002.
    5. In the New Project dialog box, click OK. By default, WebForm1 is created.
    6. Add a Label control to WebForm1.
    7. Right-click Label1, and then click Properties.
    8. In the Properties dialog box, type This is an ASP.NET 1.0 application for the Text property.
    9. On the Build menu, click Build Solution.
  2. To locate the ASP.NET version that is used for the MyWebApp2002 Web application, follow these steps:
    1. Click Start, and then click Run.
    2. In the Open text box, type inetmgr. Click OK.
    3. In the Internet Information Services (IIS) Manager window, expand Your Computer Name (local computer).
    4. Expand Web Sites, and then expand Default Web Site.
    5. Locate the MyWebApp2002 folder. Right-click the folder, and then click Properties.
    6. In the Properties dialog box, click the Directory tab.
    7. On the Directory tab, click Configuration. In the Application Configuration dialog box, click the .aspx file name extension in the Extension column.
    8. The Executable Path column of the dialog box lists the path of the ASP.NET ISAPI version that the Web application uses. By default, the ASP.NET ISAPI is installed in Windows Folder\Microsoft.NET\Framework\Version Number\Aspnet_isapi.dll. The version number in the path indicates the version number of the ASP.NET ISAPI that the application uses. When the application is using ASP.NET 1.0, the Executable Path column appears as follows:
      Windows Folder\Microsoft.NET\Framework\v1.0.3705\aspnet_isapi.dll
    9. In the Application Configuration dialog box, click OK.
    10. In the MyWebApp2002 Properties dialog box, click OK.
    11. Perform step 3 only when the MyWebApp2002 application is not configured for ASP.NET 1.0.
  3. To configure the MyWebApp2002 Web application to ASP.NET 1.0, follow these steps:
    1. Click Start, and then click Run.
    2. In the Open text box, type cmd. Click OK.
    3. At the command prompt, type cd %windir%, and then type cd Microsoft.NET\Framework\v1.0.3705.
    4. At the command prompt, type the following command to configure the ASP.NET 1.0 application in Microsoft Internet Information Services (IIS): aspnet_regiis -s w3svc/1/root/ MyWebApp2002
  4. Start Microsoft Visual Studio .NET 2003.
  5. On the File menu, point to Open, and then click Project.
  6. In the Open Project dialog box, locate the MyWebApp2002.sln file (located in My Documents\Visual Studio Projects\MyWebApp2002). Click the MyWebApp2002.sln file, and then click Open.

REFERENCES

For more information, click the following article number to view the article in the Microsoft Knowledge Base:
816782  (http://kbalertz.com/Feedback.aspx?kbNumber=816782/ ) How to configure different versions of an ASP.NET application running on the same Web server

APPLIES TO
  • Microsoft Visual Studio .NET 2003 Enterprise Architect
  • Microsoft Visual Studio .NET 2003 Enterprise Developer
  • Microsoft Visual Studio .NET 2003 Academic Edition
  • Microsoft ASP.NET 1.1
Keywords: 
kbvs2005doesnotapply kbvs2005swept kbpending kbwebserver kbweb kbbug KB827074
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

Anonymous User Reported as Irrelevant  
Written: 3/4/2005 3:54 PM
Another option that worked for me is, In control panel -> Add/Remove programs remove the .net version v1.0.3705 (only if you have both v1.0 and v1.1 installed in your machine) Once this is done, default virtual server is mapped to the new v1.1.4322 and you'll be out of this error here after.

hjghgh - gdh Report As Irrelevant  
Written: 11/26/2007 1:05 AM
visual studio .net has detected that the web server is running asp.net 1.0

(Optional) Name

(Optional) Public URL Or Email

Comments
No HTML -- Text Only Please