Add Existing Item issue on C# Web Project

C

Camel Software

I've posted this in other places, but didn't get an answer. The project I'm
working on is C#, so perhaps this is an okay place to post this. If there's
a more appropriate newsgroup, I'm open to it. I've tried
microsoft.public.dotnet.faqs and m.p.d.framework.
-----

Hi,

I have an issue with Visual Studio dotnet when using "Add Existing Item" to
a web project. When I create a new project, that option works fine. When I
copy a web project from source safe so that I can edit it, the dialog box
for that option shows an empty folder (even if I choose to show all files).

The process I use for the copy from source safe is to bring down all the
files via Source Safe, then I open Visual Studio and bind my project to
source safe, and finally I create a virtual directory for the project
folder. Just to see if it would cure the problem, I turned on all of the
access permissions for the virtual folder (Script source access [thru]
Directory browsing).

When I choose "Add Existing Item", as I mentioned it shows the directory as
empty. I then navigate to the "localhost" folder, and from there I can't
even see the name of the directory that I was just browsing!

I've noticed that when I create a new dotnet project, I can see that
directory in Windows Explorer under "My Network Places\localhost", but I
don't see the new one that I copied (and created the virtual directory for).
Is this the issue? If so, how can I get my new folder to show up there?

Thanks in advance,

Steve Harclerode
 
G

Guest

Instead of manually copying the code down from VSS, try opening the project from VS.NET by going to File-> Source Control -> Open From Source Control... It should setup everything for you and get you going. One problem with doing it this way (in my opinion), is that it doesn't ask where you want the files to be - it just puts them under inetpub/wwwroot. (Sometimes) You can kill off the virtual directory it creates, move the files, re-create the virtual directory, and update your solution file (in notepad) and get it working in a different directory. I say "sometimes", because I've seen a few machines that I just absolutely could not get it to work anywhere else except inetpub.

Good luck!

Ian
 

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