Link to home
Create AccountLog in
Avatar of BrijBhasin
BrijBhasin

asked on

move project folder in Visual Studio.NEt

Hi,
  I moved my VS.NET project(CVCWeb) files folder from 'c:\Inetpub\wwwroot\CVCWeb' to 'c:\Intepub\wwwroot' so that I could view the project by just typing localhost. But now I can't open the project in VS.NET as the VS project file is looking for the folder called cvcweb. how do I change it so that the project opens up using the files that now reside in the wwwrooot folder???
Avatar of raterus
raterus
Flag of United States of America image

Visual Studio.net doesn't support project files at that location.  You need to keep them where they are at if you want VS to be happy.  This is only for development though, in production, you can put the project anywhere you want.

--Michael
Avatar of praneetha
praneetha

no move it back to cvcweb and then create a index.html or default.html in the c:\inetpub\wwwroot

and

<html>
<script language="JavaScript">
location.href = "cvcweb\\default.aspx"
</script>
</html>
Try this one:

Suppose your project file is XXX.proj
Open file XXX.proj.webinfo
Change URLPath from http://localhost/XXX/XXX.proj to
http://localhost/XXX.proj
to change default pages in IIS

    * Start "Internet Information Services Manager" and double click on the "WWW Service"
    * Change to the "Directories" tab
    * Type a list of pages that should be considered as default pages separated by commas (,) in the "Default Document" input box.
       
       
      Example: default.htm,default.html,index.html,home.htm
Avatar of BrijBhasin

ASKER

ok guys, here is how I think it can be done and I think it has worked for me.
Open the  XXXX.vbproj file and recompile the project. VS will ask you to create a .sln file in the same folder, create the file (overrides the previous file)
then close VS and open the project using teh .sln file and it should open properly.
What do guys think??
ASKER CERTIFIED SOLUTION
Avatar of laotzi2000
laotzi2000

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
alrite Laotz2000 I will award you the points.