Cannot create a Web Application from VB.net

I

Ian Quennell

I have just installed VS.net on Windows 2000. I am trying to create a web
application but I get the error "Error when attempting to create or open the
web project located at the following URL: '//localhost/webapplication1'
'HTTP1.1 Inetrnal Server Error'.

Any ideas??? please.....
 
J

Jacob Yang [MSFT]

Hi Ian,

Based on my research and experience, please try the following steps on your
side.

1. Please delete the ASPNET account using Computer Management.

a) Select Control Panel->Administrative Tools->Computer Management->Local
Users and Groups->Users
b) In the right pane, right click the ASPNET account and select "Delete"

2. Please refer to the following Knowledge Base article carefully to repair
IIS mapping.

<http://support.microsoft.com/default.aspx?scid=kb;en-us;306005>

3. Please restart IIS.

a) Select Start->Run...
b) Type the command "iisreset".

4. Try to create a Web application.

I am looking forward to your result.

Best regards,

Jacob Yang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
I

Ian Quennell

Jacob,

Thanks for your quick response. I deleted the ASPNET user, followed article
306005, restarted IIS.
However, the problem still exists with the same error.

Any other ideas?
 
J

Jacob Yang [MSFT]

Hi Ian,

Thank you for your update

Please ensure that the Default Web Site is marked as an Application in IIS:

a) Open up the IIS Manager.
b) Right-click on the Default Web Site Node and choose Properties.
c) Choose the Home Directory Tab.
d) In the Application Settings Section choose the Create Button.

I hope it helps.

Best regards,

Jacob Yang
Microsoft Online Partner Support
Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
I

Ian Quennell

Hi Jacob,

Sorry, it was already set. I have also tried creating a virtual directory
below the default website. This gives the identical symptoms.

Ian
 
I

Ian Quennell

Jacob,

I have got it to work!!!!

I found an article at
http://www.mastercsharp.com/India/Forums/ShowPost.aspx?PostID=700
This suggests changing the username in the processmodel section of the
machine.config file.
I made the change. Restarted IIS and I can create a ASP.net web application.

I changed the username to SYSTEM. Is this correct? or should it be set to
something else. I don't think I missed it in the documentation, but you
never know...

Any further information would be gratefully received.

Ian
 
J

Jacob Yang [MSFT]

Hi Ian,

Thank you for your update. I am very glad to know that the problem is
resolved.

Based on the information you provided, this issue is a permission issue -
the original account used for ASP.NET does not have the enough permissions.

In general, the System account is the most efficient way for such a
permission issue because it has high privilege. We can also use the other
user account. The importance is that the account used for ASP.NET should
have proper permissions. Please refer to the following URLs for the
detailed information.

How To: Create a Custom Account to Run ASP.NET
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/ht
ml/SecNetHT01.asp

INFO: Implementing Impersonation in an ASP.NET Application
http://support.microsoft.com/default.aspx?scid=kb;en-us;306158

I hope it helps.

Best regards,

Jacob Yang
Microsoft Online Partner Support
Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 

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

Top