Home > Microsoft .Net Development Tips > ASP.NET Development > VS.NET: Changing Web application location
Win Development Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

ASP.NET DEVELOPMENT

VS.NET: Changing Web application location


Krishna Roopa Rangaraj
10.21.2002
Rating: -4.00- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


While developing applications in VS.NET, the project will not open if the project directory is changed or renamed. This can be resolved by editing the .webInfo file in the project.

Consider that we create a new project from VS.NET an specify location as 'http://localhost/works/Webapplication1', VS.NET will do the following:

1. Create a physical folder where this virtual location is mapped, say as d:worksWebApplication1
2. Create at the required project files including Global.asax, web.config etc.
3. Now, you can add Web Forms and continue with the development of web pages.

Suppose now we need to move the application from 'works' folder to 'testing' folder, that is in 'd:testing'. The steps to be followed are:

1. Move the 'WebApplicaiton1' directory from 'd:works' to 'd:testing'
2. Now if you try to open the project, VS.NET throws error that 'file path does not correspond to the url'
3. To resolve this problem, in the 'webapplication1', you can find the file 'webapplication1.csproj.webinfo'

The content will be

<VisualStudioUNCWeb>
    <Web URLPath =
"http://localhost/works/WebApplication1/WebApplication1.csproj" />
</VisualStudioUNCWeb>

Modify the XML content as

<VisualStudioUNCWeb>
    <Web URLPath="http://localhost/testing/WebApplication1/WebApplication1.csproj" />
</VisualStudioUNCWeb>

4. Now the project can be opened and you can continue with development.

Rate this Tip
To rate tips, you must be a member of SearchWinDevelopment.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
ASP.NET Development
How to use jQuery to solve Javascript browser compatibility problems
How to write an out-of-browser Silverlight 3 application in 3 steps
Silverlight 3 beta SDK download lets developers try new RIA features
Visual Studio's IntelliSense for jQuery doesn't autocomplete correctly
Dundas Map for .NET kicks up geographic visualization
Return to CodePlex: Into the Sandcastle…
VBScript Tutorial
Use PHP with Visual Studio to create Web sites
Visual Studio Team System Add-ins: Conchango Scrum for Team System and Scrum Dashboard
Visual Studio 2008 and .NET Framework 3.5 SP1 introduces ADO .NET Entity Designer

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Database Programming Solutions - .NET XML, Visual Studio LINQ, ORM .NET
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts