How to build asp.net project outside of inetpub

  • Thread starter Thread starter Tim Zych
  • Start date Start date
T

Tim Zych

I "created" an IIS application in the Internet Services manager. How do I
build a new Asp.Net application in it?

I have had success in the past creating an asp.net project using just
notepad, then running it locally by creating an application out of the
folder where it resided.

This time, I would like to use VS.Net to build the app. But I don't want to
store it in C:\Inetpub\wwwroot. How can I create it anywhere I want?
 
Specify the URL when you create the ASP.NET project.

e.g. if the URL to the site or virtual directory is http://localhost/webapp1
type that URL when you create the project.

You can also use the "copy project" button in solution explorer if your project already exists.
 
Thanks, but now VS.Net is *crashing* when I type the direct url.

I type in http://localhost/mymachine/myapp/appname hit OK then:

devenv.exe
The instruction at "0x77fcc453" referenced memory at "0x00000000"". The
memory could not be "written".
Click OK to terminate the program.

Sometimes VS.Net just closes without returning an error message.



richlm said:
Specify the URL when you create the ASP.NET project.

e.g. if the URL to the site or virtual directory is http://localhost/webapp1
type that URL when you create the project.

You can also use the "copy project" button in solution explorer if your
project already exists.
 
Well VS.NET definitely should not crash - if you are prompted to send the
info to Microsoft please do so (believe me it will make a difference).

Your URL looks a bit wierd: both "localhost" + "mymachine" in the path - is
that just a typo here?
Can you verify that the URL is valid (e.g. try a dummy .htm file).
Do you have write-access to the virtual directory?
Try it with a simpler URL (e.g. http://localhost/myapp) and work up from
there (to find where it breaks).

Richard.
 
Weird, it started to create the project, then VS.Net closed with no error
message. This time was further than I ever got.

Just tried it again, and the Create New Web dialog with the arrow circling
the document and the planet just keeps going and going. I can't even stop
it.
It says "Creating the web 'http://localhost/frogger/codelib/codelib/WebAppli
(the rest is cut off)
Eventually had to end the process.

Tried again, crashed. This time I was prompted to send error report which I
did.

Oh well, maybe I'll stick to doing it in notepad. Less hassle.
 
I just tried it with a long path, creating a single virtual directory named "frogger", then creating a new ASP.NET project specifying http://localhost/frogger/codelib/codelib/WebApplication1

It works as I would expect - the extra sub-folders are automatically created and the project is generated down at the lowest level in WebApplication1

(I am using WinXP + VS.NET 2003

Definitely sounds like something dodgy with your installation

Try it with a different top level virtual directory (or on another PC) if possible..
Suggest you also raise it with Microsoft Support if you have access

Good luck
Richard.
 
Thanks for checking. I am using version 2002 on Win2K. I'll try version 2003
on another machine or reinstallation of 2002 (ugh).

Tim

richlm said:
I just tried it with a long path, creating a single virtual directory
named "frogger", then creating a new ASP.NET project specifying
http://localhost/frogger/codelib/codelib/WebApplication1.
It works as I would expect - the extra sub-folders are automatically
created and the project is generated down at the lowest level in
WebApplication1.
 
Back
Top