Server Application Unavailable

Many a time while developing a web application you may come accross “Server application unavailable”

unavailable2

When you get this error in Windows XP make sure you have given ASPNET user sufficient rights on your physical application folder, it mainly requires read permission.

When you get this error in Windows 2003 server you can right click your virtual directory – permission – grant aspnet user sufficient rights there.

If the above solution doesn’t work here is another alternative,

You could try editing the Machine.config (located in
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\CONFI G\).

Look for a key userName=”machine”. If you set it to “SYSTEM”
instead the aspnet_wp.exe runs with a different user (with
higher privileges).

Hope this helps

Changing the target framework for the setup file

One of my team member, kunal, was facing a problem while creating the setup project for v 20 using VS 2008. Even after just changing the target framework while creating the project did no help so had to search for the solution, and the solution that solved our problem is as follows,

1) Create a windows application project with target framework as v2.0

Select Target Framework

Select Target Framework

2) Create Setup and deployment project and select target framework as v2.0

Target Framework for Setup

Target Framework for Setup

3) Right-Click on setup project Name and select Properties, under properties select Prerequisites

Select Prerequisite

Select Prerequistes

4) Check .NET framework 2.0 and uncheck .NET framework 3.5

Select Framework in Prerequisite

Select Framework in Prerequisite

5) Under Solution Explorer double click on Microsoft.NET framework under

Setup project.

Select the Framwork to change the version

Select the Framwork to change the version

6) Right-Click on .NET framework select properties and change the version to v2.0…

Change Framework Version

Change Framework Version