CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting



Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.vs_2005_web_application_projects Tags:
Item Type: NewsGroup Date Entered: 5/10/2006 11:55:28 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 32 Favorited: 0 Favorite
4 Items, 1 Pages 1 |< << Go >> >|
FooBar
Asp.Net User
Absolute Paths Hardcoded in Web Application Projects5/10/2006 11:55:28 PM

0/0

We are running into lots of issues migrating our solution from VS2003 --> VS2005. We have about 30 projects, 3 of them are web sites. In VSS, we have this structure:

 

            $\Version_1

                        \Web1\

                                    ...

                                    Web1.csproj

                       

\Web2\

                                    Web2..csproj

                       

\Web3\

                                    Web3..csproj

                        .....

                       

                       \ClassLibrary1\

                       

                        \ClassLibrary2\

 

                        \ClassLibrary3\                           

                       

                        \Microsoft.ApplicationBlocks.ExceptionManagement\

 

                        Version_1.sln

 

 

This worked fine because we could have class library references and virtual directory information was not stored with the project/solution file but was kept in .suo file instead.

 

I installed the May 8 version of WAP and migrated the solution. It migrates without errors but we are having issues after adding the solution to source control (Team Foundation Server). We are not using ?Open from Source Control? with WAP because it is broken, as noted in postings on this board.

 

The problem is that project references are stored in the project file (.csproj) as absolute file paths. For example:

 

<ProjectReference Include="E:\Data\VSS\Version_1\Development\Microsoft.ApplicationBlocks.ExceptionManagement\Microsoft.ApplicationBlocks.ExceptionManagement.csproj">

      <Name>Microsoft.ApplicationBlocks.ExceptionManagement</Name>

      <Project>{386CBF50-F4A9-4F05-98CB-B387D2D8F357}</Project>

      <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package>

    </ProjectReference>

 

 

I tried setting references to something like this, without success:

<ProjectReference Include="..\Microsoft.ApplicationBlocks.ExceptionManagement\Microsoft.ApplicationBlocks.ExceptionManagement.csproj">

      <Name>Microsoft.ApplicationBlocks.ExceptionManagement</Name>

      <Project>{386CBF50-F4A9-4F05-98CB-B387D2D8F357}</Project>

      <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package>

    </ProjectReference>

 

How can one use relative URLs?

 

Also, looking at the WAP .csproj file in notepad, I notice that IIS information is stored in the project file:

 

<IISUrl>http://localhost/Web2</IISUrl>

 

Local path/IIS v-root information used and should be stored in the .suo file. How can I achieve the same result with WAP and VS2005?

 

thank you

BradleyB
Asp.Net User
Re: Absolute Paths Hardcoded in Web Application Projects5/11/2006 9:29:15 PM

0/0

This must be a migration specific problem.  If you create a new WAP project and add references to other projects the you get relative paths.  Try removing the referneces and re-adding them.   That should result is relative paths being added to the project file.

As far as the IISUrl propery, it is a shared property for team scenarios and is not overrided by the .suo. We're evaluating this for a future release.

Hope this helps,
Brad.

FooBar
Asp.Net User
Re: Absolute Paths Hardcoded in Web Application Projects5/11/2006 11:02:18 PM

0/0

BradleyB:

This must be a migration specific problem.  If you create a new WAP project and add references to other projects the you get relative paths.  Try removing the referneces and re-adding them.   That should result is relative paths being added to the project file.

As far as the IISUrl propery, it is a shared property for team scenarios and is not overrided by the .suo. We're evaluating this for a future release.

Hope this helps,
Brad.

Brad, thanks for your response. I could not get paths to be relative no matter what I did to the migrated project. I ended up creating new Web Application Projects, and adding project references to the rest of the projects. That produced relative paths (verified by opening on different machines and inspecting .csproj in notepad). Of course, I had to manually re-add all pages from the migrated WAPs to the WAPs I created from scratch. Does this sound like a bug to you or could this be specific to our VS.NET 2003 projects?

IISUrl is not a deal breaker, but it would be nice to allow each developer to be in control of their own v-roots, just the way it worked in VS.NET 2003. Our currents steps for configuring a dev machine are:

1) get latest from TFS (not Open from source control)

2) after getting latest, open solution file from local folder

3) for each WAP, go to project properties, Web, and click Create Virual Directory without changing anything (because this will affect the shared .csproj file).

 

Would the fix for Open From Source Control functionality (I know it is coming in VS.NET 2005 SP1) eventually replace steps 1-3 above? In other words, is it supposed to eliminate the need to manually configure IIS Virtual Directory?

thanks

Andrew

 

 

 

BradleyB
Asp.Net User
Re: Absolute Paths Hardcoded in Web Application Projects5/12/2006 12:56:19 AM

0/0

Yes, when Open from SCC is fixed in VS05 SP1 it will create the VDir for you. 

btw: I've entered a bug on the migrtion issue.

Brad.

4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Innovative Algorithms and Techniques in Automation, Industrial Electronics and Telecommunications Authors: Tarek M Sobh, Khaled Elleithy, SpringerLink (Online service, Ausif Mahmood, Mohammad A Karim, Pages: 551, Published: 2007
JavaServer Pages Authors: Hans Bergsten, Pages: 740, Published: 2003
Special Edition Using Macromedia Studio MX 2004: The Only Macromedia Studio MX Book You Need. Authors: Michael Hurwicz, Pages: 1052, Published: 2004
Special Edition Using Macromedia Flash MX: Special Edition Authors: Michael Hurwicz, Laura McCabe, Pages: 744, Published: 2002
Practical Subversion Authors: Daniel Berlin, Garrett Rooney, Pages: 280, Published: 2006
Beginning PHP and PostgreSQL 8: From Novice to Professional Authors: W. Jason Gilmore, Robert H. Treat, Pages: 857, Published: 2006
Foundation Flash CS3 for Designers Authors: Thomas J Green, Tom Green, David Stiller, Pages: 570, Published: 2007

Web:
Absolute Paths Hardcoded in Web Application Projects - ASP.NET Forums Absolute Paths Hardcoded in Web Application Projects. Last post 05-11-2006 8:56 PM by BradleyB. 3 replies. Sort Posts: ...
Pro NetBeans - The source for learning NetBeans. Mar 6, 2008 ... I created two sample Java Web Applications called .... location properties of all the libraries and provide hard-coded absolute paths. ...
Pro NetBeans - The source for learning NetBeans. Mar 6, 2008 ... Exploring Ant Build File Changes for Java Web Projects in NetBeans 6.1 .... of all the libraries and provide hard-coded absolute paths. ...
MSDN Team Foundation Server - Build Automation Solution requiring ... Solution requiring hardcoded path to projects. ... I have a master solution that I'm using to build all the dependent projects in our web application. ...
[#JBSEAM-1484] Seam-gen should generate pages using templates ... This is OK if all pages are stored in the root folder of web application. ... Besides hard coded absolute path is evil in my book too, so what is actually ...
MSDN Team Foundation Server - Build Automation vs2003 Web Service ... That should replace those absolute paths with relative ones. It looks like your web service project is a "Web Site" project rather than a "Web Application" ...
Re: Storing images for a web application. Aug 6, 2007 ... My root web application ... context is deployed outside of a war file. ... this path varies from server to server. ...
jGuru: I have got a problem using jsp:include page="/access ... getRequestURL(), which will return the absolute path for the current web project and replace the current web project in the url with other one + the jsp ...
Mini Servers: Ready To Go - Uniform Server Wiki System VCalendar (Virtual Calendar) is an open source Web calendar application for ... Unless it is the first server to be started these absolute paths prevent ...
Hardcoded Generated URL Support Forum thread: Hardcoded Generated URL. ... therefore I cannot use a relative path (e.g. /videos/movie.flv) thus I have to use an absolute path (e.g. ...

Videos:
Zero Configuration networking with Bonjour Google TechTalks November 2, 2005 Dr. Stuart Cheshire, Apple Computer http://www.stuartcheshire.org/ ABSTRACT The desirability of making IP networ...




Search This Site:










namespace and classes

how to: have a "back" button recognise ie's previous page

accessing controls from another iframe

creating labels etc. dynamically

global.asax

web controls in dot net

datagrid columns displayed as rows

dynamically declaring a control array

register a class file

form action and server.transfer

how do you expose a nested usercontrol?

trouble converting object to a string using format

extend datalist with a button-click

transfer lot of data from one project to another on the same server, request.form['' ''] not working

using classes

right way to use a wizard control, thanks

sending reference from repeater to another page

string format

in visual studio 2003,why does response.write() can't be shown in web page

modify active directory password

data poll every 5 second.

capture control event in user control

radiobuttonlists

just bought a new site.. proper directory location

i'm not getting data on page

cache getting invalidated

what is this component called?

problem in keeping password value in textbox?

search function

response.resirect vs server.transfer

  Privacy | Contact Us
All Times Are GMT