Error creating new ASP.NET application

S

Shane O'Keeffe

Hi,

I am getting the following error message when I attempt to create a
new ASP.NET (C#) web application:

The Web server reported the following error when attempting to create
or open the Web projects located at the following URL:
'http://localhost/WebApplication1'. 'HTTP/1.1 500 Internal Server
Error'.

I can open existing ASP.NET projects and launch/debug them without any
problem. I can also browse them directly i.e. without going through
VS.NET.

So far I have tried changing the permissions of IIS, modifying the VS
Developers group permissions, adding the ASPNET login to the VS
Developers group and I have also tried running "aspnet_regiis -i".

Can anyone please help me to resolve this problem without having to
re-build
the machine?

My configuration is as follows:

Windows 2000 SP4
Visual Studio 2003 v7.1.3088
..NET Framework 1.1.4322.573

Thanks in advance,

Shane O'Keeffe
 
K

Ken Cox [Microsoft MVP]

Hi Shane,

Here's a solution that someone posted previously. Could you let us know if
you try it and if it works for you?

Ken
Microsoft MVP [ASP.NET]



Resolution:

1) Delete the ASPNET account using Computer Management.

2) Recreate the ASPNET account by running: aspnet_regiis -I, from

C:\<winDir>\microsoft.net\framework\v1.1.4322 directory :

Click Start, and then click Run.

In the Open text box, type cmd, and then press ENTER.

At the command prompt, type the following, and then press ENTER:

"%windir%\Microsoft.NET\Framework\version\aspnet_regiis.exe" -i

In this path, version represents the version number of the .NET Framework
that you installed on your server.

You must replace this placeholder with the actual version number when you
type the command. If you use Visual Studio 2003 and framework 1.1 it it
v1.1.4322

3) Restart IIS.

4) Now the ASPX pages should work fine and you also should be able to create
new ASP.NET web projects.
 
S

Shane O'Keeffe

Hi Ken,

Thanks for your reply. I followed the steps below but I am still
getting the same error message.

Any other suggestions?

Thanks,

Shane.
 
P

Patrick.O.Ige

WHAT exactly is the error!

Shane O'Keeffe said:
Hi Ken,

Thanks for your reply. I followed the steps below but I am still
getting the same error message.

Any other suggestions?

Thanks,

Shane.

"Ken Cox [Microsoft MVP]" <[email protected]> wrote in message
Hi Shane,

Here's a solution that someone posted previously. Could you let us know if
you try it and if it works for you?

Ken
Microsoft MVP [ASP.NET]



Resolution:

1) Delete the ASPNET account using Computer Management.

2) Recreate the ASPNET account by running: aspnet_regiis -I, from

C:\<winDir>\microsoft.net\framework\v1.1.4322 directory :

Click Start, and then click Run.

In the Open text box, type cmd, and then press ENTER.

At the command prompt, type the following, and then press ENTER:

"%windir%\Microsoft.NET\Framework\version\aspnet_regiis.exe" -i

In this path, version represents the version number of the .NET Framework
that you installed on your server.

You must replace this placeholder with the actual version number when you
type the command. If you use Visual Studio 2003 and framework 1.1 it it
v1.1.4322

3) Restart IIS.

4) Now the ASPX pages should work fine and you also should be able to create
new ASP.NET web projects.
 
S

Shane O'Keeffe

Ken,

I've identified the issue by comparing the IIS configuration of my
machine with another developer's workstation.

In the Properties secion of the 'Default Web Site' in the 'Home
Directory' tab the 'Application Name' settings was blanked out. All I
had to do was to click the 'Create' button and things returned to
normal.

I've no idea how this happened as I had not chaned my IIS config in
some months. However, I'm just glad to have it working.

Thanks for your help.

Regards,

Shane.
 
K

Ken Cox [Microsoft MVP]

Hi Shane,

Thanks for reporting back!

I'm sure your solution will help someone else.

I'll add it to my "weird stuff that can happen" file.

Ken
 
G

Guest

HI Shane,

Your solution solves my problem. I spend almost four hours on this internal
server error, after reading your solution(Click on create) i am able to solve
my problem. Thanks!!!

mahesh
 
G

Guest

Thanks for the info. I was having the same problem, and the steps listed
below did the trick.

Ken Cox said:
Hi Shane,

Here's a solution that someone posted previously. Could you let us know if
you try it and if it works for you?

Ken
Microsoft MVP [ASP.NET]



Resolution:

1) Delete the ASPNET account using Computer Management.

2) Recreate the ASPNET account by running: aspnet_regiis -I, from

C:\<winDir>\microsoft.net\framework\v1.1.4322 directory :

Click Start, and then click Run.

In the Open text box, type cmd, and then press ENTER.

At the command prompt, type the following, and then press ENTER:

"%windir%\Microsoft.NET\Framework\version\aspnet_regiis.exe" -i

In this path, version represents the version number of the .NET Framework
that you installed on your server.

You must replace this placeholder with the actual version number when you
type the command. If you use Visual Studio 2003 and framework 1.1 it it
v1.1.4322

3) Restart IIS.

4) Now the ASPX pages should work fine and you also should be able to create
new ASP.NET web projects.



Shane O'Keeffe said:
Hi,

I am getting the following error message when I attempt to create a
new ASP.NET (C#) web application:

The Web server reported the following error when attempting to create
or open the Web projects located at the following URL:
'http://localhost/WebApplication1'. 'HTTP/1.1 500 Internal Server
Error'.

I can open existing ASP.NET projects and launch/debug them without any
problem. I can also browse them directly i.e. without going through
VS.NET.

So far I have tried changing the permissions of IIS, modifying the VS
Developers group permissions, adding the ASPNET login to the VS
Developers group and I have also tried running "aspnet_regiis -i".

Can anyone please help me to resolve this problem without having to
re-build
the machine?

My configuration is as follows:

Windows 2000 SP4
Visual Studio 2003 v7.1.3088
.NET Framework 1.1.4322.573

Thanks in advance,

Shane O'Keeffe
 
G

Guest

Hello,
I tried this solution. Whereas before i was able to create new projects,
and not able to load exisitng ones, now i cannot do either. I am getting an
Internal Server error 500.

Any sugegstions?
Thanks,
Sonali

Eli said:
Thanks for the info. I was having the same problem, and the steps listed
below did the trick.

Ken Cox said:
Hi Shane,

Here's a solution that someone posted previously. Could you let us know if
you try it and if it works for you?

Ken
Microsoft MVP [ASP.NET]



Resolution:

1) Delete the ASPNET account using Computer Management.

2) Recreate the ASPNET account by running: aspnet_regiis -I, from

C:\<winDir>\microsoft.net\framework\v1.1.4322 directory :

Click Start, and then click Run.

In the Open text box, type cmd, and then press ENTER.

At the command prompt, type the following, and then press ENTER:

"%windir%\Microsoft.NET\Framework\version\aspnet_regiis.exe" -i

In this path, version represents the version number of the .NET Framework
that you installed on your server.

You must replace this placeholder with the actual version number when you
type the command. If you use Visual Studio 2003 and framework 1.1 it it
v1.1.4322

3) Restart IIS.

4) Now the ASPX pages should work fine and you also should be able to create
new ASP.NET web projects.



Shane O'Keeffe said:
Hi,

I am getting the following error message when I attempt to create a
new ASP.NET (C#) web application:

The Web server reported the following error when attempting to create
or open the Web projects located at the following URL:
'http://localhost/WebApplication1'. 'HTTP/1.1 500 Internal Server
Error'.

I can open existing ASP.NET projects and launch/debug them without any
problem. I can also browse them directly i.e. without going through
VS.NET.

So far I have tried changing the permissions of IIS, modifying the VS
Developers group permissions, adding the ASPNET login to the VS
Developers group and I have also tried running "aspnet_regiis -i".

Can anyone please help me to resolve this problem without having to
re-build
the machine?

My configuration is as follows:

Windows 2000 SP4
Visual Studio 2003 v7.1.3088
.NET Framework 1.1.4322.573

Thanks in advance,

Shane O'Keeffe
 
Joined
Sep 21, 2006
Messages
2
Reaction score
0
Error creating ASP.NET application - 9/21/2006

Hi Shane, Ken and Patrick, I have a similar problem, and before I toy with the registry I'll drop this:

I run Windows XP SP2 practically as a developer's server with hundreds of applications installed concurrently.

The same inability to create an ASP .NET Web Application was discovered this month. As per Ken I deleted the ASPNET account and ran aspnet_regiis -i, but to no avail. As per Shane I verified the IIS default web site's application, but I did have an application name there. Then I changed the Home Directory's Local Path from D:\Inetpub\wwwroot, which is my large disk drive, to C:\Inetpub\wwwroot, and this solved the problem.

However, I cannot keep it in the C drive, and suspect that some registry value could be changed to D:\Inetpub\wwwroot. But I am first posting here. Hope someone can figure this out.
 
Joined
Sep 21, 2006
Messages
2
Reaction score
0
Hi fellows, I found the solution to 'Error creating ASP.NET application - 9/21/2006.

I changed all occurrences of C:\Inetpub, and changed them to D:\Inetpub in the registry. Then took out Studio .NET and reinstalled it, followed by SP1, while the Framework and latest update were not touched. I can now create a new ASP.NET application.

Regards.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,710
Latest member
bernietqt

Latest Threads

Top