• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 228
  • Last Modified:

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???
0
BrijBhasin
Asked:
BrijBhasin
  • 2
  • 2
  • 2
  • +1
1 Solution
 
raterusCommented:
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
0
 
praneethaCommented:
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>
0
 
laotzi2000Commented:
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
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
praneethaCommented:
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
0
 
BrijBhasinAuthor Commented:
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??
0
 
laotzi2000Commented:
you can only open the project file after change the webinfo file
as I have said.
0
 
BrijBhasinAuthor Commented:
alrite Laotz2000 I will award you the points.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now