I feel a bit silly asking this...

G

Guest

.... as I know the answer will be so simple, but here goes...

I cannot creating a new asp.net projects in VS2003 in a directory other
than the default suggested directory (i.e. http://localhost/WebApplication1 -
and renaming webapplication1).
I wanted to follow the guideline in Francesco Balena et.als. latest book, by
NOT creating them in this default location so that ALL of the files are kept
together, and have therefore wanted to create them under a directory
\projects off of the root folder.
When I browse to the new folder I have created, and press Open, the OK
button is greyed out.
If I try to create another folder under the one I want, I get "The folder
[foldername] isn't available. The folder may be located in an unavailable
location, protected with a password, or the filename contains a/ or a \."

This is bound to be something silly.
any ideas would be greatly appreciated.

Many thanks,
Andy
 
C

Carl Prothman

Andy said:
I cannot creating a new asp.net projects in VS2003 in a directory other
than the default suggested directory (i.e.
http://localhost/WebApplication1 -
and renaming webapplication1).

Andy,
If you want to create an IIS Application with a physical path other
than under wwwroot, then create the IIS Application first in IIS
(right click on the folder in Window Explorer and set Web Sharing
via properties). Then create the new Web Application via Visual
Studio .NET. Since the IIS application is already setup, Visual
Studio .NET will create the web files using the IIS application
path.
 
G

Guest

Carl,
Thanks for your reply.
Unfortunately I'm still getting the same.

I'll list everything that i can to show what's happenning..

1) N.B. I'm develping on a laptop, Windows 2000 AS
2) I've created a folder E:\Projects, that I want to place all projects under
3) I then create another folder E:\Projects\Auth for the project
4) Right click the folder in windows explorer, and select properties
5) Select the web sharing tab on thr 'Auth Properties' dialog
6) Click "Share this folder"
7) At the "Edit Alias" dialog, default Access Permissions are set to Read,
Application permissions have scripts selected
8) Press OK to accept the defaults
9) Press OK to close the 'Auth Properties' dialog.
10) Select Start|Programs|Admin Tools|Internet Services Manager
11) Expand the default web site, and I can see the new virtual directory
Auth pointing to "E:\Projects\Auth"
12) Close ISM
13) Start MS Visual Studio.net 2003
14) Select new project
15) Select A new Visual C# asp.net project
16) The default project location is http://localhost/WebApplication1, and
the Name (which can't be edited is WebApplication1
17) Press the Browse button, and select "E:\Projects\Auth", and press Open
18) The OK Button isn't available
19) Press Browse again
20) Try to create a folder under "E:\Projects\Auth" such as 'Hello' and I
get...
21) The folder 'hello' isn't accessible. The folder may be located in an
unavailable location, protected with a password, or the filename contains a /
or \

(Help!)

I hope someone can spot something silly I'm doing wrong.
Many thanks
Andy
 
C

Carl Prothman

Andy said:
Carl,
Thanks for your reply.
Unfortunately I'm still getting the same.

I'll list everything that i can to show what's happenning..

1) N.B. I'm develping on a laptop, Windows 2000 AS
2) I've created a folder E:\Projects, that I want to place all projects under
3) I then create another folder E:\Projects\Auth for the project
4) Right click the folder in windows explorer, and select properties
5) Select the web sharing tab on thr 'Auth Properties' dialog
6) Click "Share this folder"
7) At the "Edit Alias" dialog, default Access Permissions are set to Read,
Application permissions have scripts selected
8) Press OK to accept the defaults
9) Press OK to close the 'Auth Properties' dialog.
10) Select Start|Programs|Admin Tools|Internet Services Manager
11) Expand the default web site, and I can see the new virtual directory
Auth pointing to "E:\Projects\Auth"
12) Close ISM
13) Start MS Visual Studio.net 2003
14) Select new project
15) Select A new Visual C# asp.net project
16) The default project location is http://localhost/WebApplication1, and
the Name (which can't be edited is WebApplication1

- From Visual Studio .NET 2003, select "File | New | Project"
- Click "C#" in left panel
- Click "ASP.NET Web Application" in right panel
- Enter the following for Location: http://localhost/Auth
(You should be able to type in the Location url)
- Click OK button

Are you saying that you can't edit the Location field?
 
G

Guest

Hi Carl,
I can edit the dialog and thats what I have been doing in the past, but what
happens there is that the solution ad user options files get stored under
\documents and settings\administrator\my documents\visual studio
projects\SQLAuth, which is what I'm trying to get away from.
All I want is for all of the project files to be stored in the same folder,
including these two - otherwise its a real pain when putting the source files
into our QA system. Its also the approach put forward in "Practical
guidelines and best practices for ms vb & visual c# developers" which I'm
trying to follow.

Many thanks for your help.
Andy
 
C

Carl Prothman

Andy said:
Hi Carl,
I can edit the dialog and thats what I have been doing in the past, but what
happens there is that the solution ad user options files get stored under
\documents and settings\administrator\my documents\visual studio
projects\SQLAuth, which is what I'm trying to get away from.

The ASP.NET project files will be placed where the IIS Application's
phyical path points to. However, the Soution file gets saved (by default)
to My Documents\Visual Studio Projects\....

If you don't want the solution file saved there, just do a Save As on the
Solution
and save the Solution file either in the same directory as your project, or
one up
directory (in a parent directory).

When I used version control, I never stored my solution file under My
Documents.
I always stored my solution file either in the same directory (if single
project), or
one directory up (if multi projects are in the solution).

HTH
 

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

No members online now.

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top