CFF KB - Carrz-Fox-Fire Promotions Knowledge Base

CFF KB is all about 1 thing: The Sharing of Knowledge and the Power we gain from it.
  • Breadrumbs:
  • Running .NET Applications under Windows XP and Windows 2000 IIS5

  • CFF Knowledge Base - Share With Facebook CFF Knowledge Base - Share on Twitter CFF Knowledge Base - Share on Reddit CFF Knowledge Base - Share on Digg It CFF Knowledge Base - Share on Stumble Upon It CFF Knowledge Base - Share on Delicious
    Share With Friends (Updated 6-8-2010)
  • Article ID:
    64
  • Date Created
    Monday, December 6, 2010
  • This Article Has been Viewed
    1847 times
  • Short Desc
    Running asp.net application under windows 2000 and Windows XP require some extra work to make it work with your system.
  • Details
    Setting up ASP.NET to run on your Windows XP and Possibly Windows 2000 machines.
    Vista and Windows 7 you do not have this error.


     
    Server Application Unavailable
    The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.

    Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.
  • Recreate Issue
    Running .NET applications within IIS5 under Windows XP and possibly Windows 2000, you will experiance the above error if you do not follow the instructions below.
  • Resolve Issue
    In the following instructions, you will have to register .NET applications via the RUN command (or) by use of the Command Prompt.
    You will also have to have all versions of the .NET Platform and up-to-date patches for it in order to not run into any errors or issues.

    Following the information to the T is essential to getting .NET to run on your system without issue or error. If you follow the instructions in this article and .NET still will not work for you, search here or in Google for possible scenerio's to your issue.
    In most cases, if this does not work for you, then you may need to reinstall all .NET platforms on your system.
    This is time consuming and will be very envolved in getting it all off the system so that you can successfully reinstall the .NET platform back to your system.
    Also, a Reinstall of IIS may be in order as well.

    Read the instructions carefully and fully!

    The following actions have to be made to run your asp.net pages in windows xp and maybe others as well.

    Install IIS (Internet Information Services) first
    Then install and patch all .NET Framework from 1, 2, 3, 3.5 and 4

    Now...
    On the folder that you are wanting to host the .net applications from
    You will need to set the permissions for ASPNET to have the following Role.

    ===Set folders to have Security Tab===

    (If not available, choose from Explorer menu:
    Tools | Folder Options
    Click the [View] Tab.
    Scroll down and uncheck
    []Use simple file sharing (Recommended)
    Click [Apply] then [OK]

    ===Set permissions for ASPNET===

    Right click on the folder
    Choose [Properties]
    Click on the [Security] tab.
    Click the [Add] button
    Then in the [Select Users and Groups] dialog
    Click the [Advanced] button
    Then click [Find Now] button

    In the list, highlight the [ASPNET] user
    Click [OK]
    The user should be presented in the window.
    Click [OK]
    Give the user: [Modify] rights which will check [Write] automatically.
    Click [Apply] (This will take a little while) then click [OK]

    ===Register your machine user as .net===

    From Start | Run (or) open Command Prompt and type in or paste
     
    %windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -ga USERNAME

    (Replace the USERNAME with your login machine username)

    ===Choose the proper .NET version with IIS===

    Inside of IIS you will need to choose the proper version of .NET to be used
    In your application.

    Inside IIS, expand the Tree and choose the Virtual Site that will be hosting the .NET Application.
    Right click on the site and choose [Properties]
    Click on the [ASP.NET] tab.
    From the [ASP.NET Version] choose either:
    1.1.4322
    (or)
    2.0.50727

    Click [Apply] (This will take a moment) then click [OK].

    ===Run your pages===

    You should now beable to run your ASP.NET pages.

    ===Errors that you may receive===
    If you get an error stating [Failed to access IIS metabase]
    then copy and paste this link of code into your run dialog

     
    %windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i



    This will reinstall the .NET Framework for this version.
    This should get you up and running.


    if you experiance an error: Server Application Unavailable
    Use the following
     
    %windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis -ga aspnet



    --------
    Related Articles

    Windows XP Folder Option does not have Security Tab«