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



Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: NewsGroup Date Entered: 1/22/2008 11:27:49 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 50 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
The Prophet
Asp.Net User
Virtual Directory in Visual Studio while debugging1/22/2008 11:27:49 PM

0/0

I'm an intranet developer and all my apps run like this:
http://<server>/project1
http://<server>/project2

etc, and they all refernce a common collection of images:
http://<server>/images

my question is, is there any way to add a reference in the Visual Studio Debugging enviroment so that I can actually reference these images.  Because currently I'm just letting the images break while debugging, and assuming my references will work when I upload the project to the server.

eg, the type of url's I use:

<asp:Image ID="img1" ImageUrl="../images/myimage1.gif" runat="server" />
 works fine when I upload the project to the server, but while debugging it doesn't.
prescot6
Asp.Net User
Re: Virtual Directory in Visual Studio while debugging1/23/2008 1:24:41 AM

0/0

I think you're sunk with what you're trying to do.  The problem comes from the fact that the images are essentially in a different site.  When you launch your site from Visual Studio, it creates a debug web server that runs just the site you're working with in an isolated environment.

One thing that I've done is to create a virtual directory that points to my web site.  (e.g. I'll make a virtual directory in IIS called mySiteDev or whatever that points to C:\....\Projects\mySite\)  Then, instead of running the debugger to test my code, I just point my browser to http://localhost/mySiteDev/.  I usually stick with this method until I run into a situation where I need to step through code.

You might be able to get away with using ResolveUrl() in the code, but that could get messy and cumbersome if you have a lot of images.
 

The Prophet
Asp.Net User
Re: Virtual Directory in Visual Studio while debugging1/24/2008 12:25:22 AM

0/0

Yeah I thought that might have been the case.

 

Thanks anyway for your help.

Regards

The Prophet

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


Free Download:

Books:
Beginning ASP.NET 3.5 in C# 2008: From Novice to Professional Authors: Matthew MacDonald, Pages: 954, Published: 2007
Pro ASP.NET 2.0 in C# 2005 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1255, Published: 2005
Pro ASP.NET 3.5 in C# 2008 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1498, Published: 2007
Pro ASP.NET 2.0 in VB 2005: From Professional to Expert Authors: Laurence Moroney, Matthew MacDonald, Pages: 1253, Published: 2006
Professional ASP.NET 3.5: In C# and VB Authors: Bill Evjen, Scott Hanselman, Devin Rader, Pages: 1673, Published: 2008
Professional ASP.NET 2.0 Authors: Bill Evjen, Scott Hanselman, Farhan Muhammad, Srinivasa Sivakumar, Devin Rader, Pages: 1253, Published: 2005
Beginning ASP.NET 3.5 in VB 9.0: From Novice to Professional Authors: Matthew MacDonald, Pages: 1149, Published: 2007
Beginning ASP.NET 2.0 in C# 2005: From Novice to Professional Authors: Matthew MacDonald, Pages: 1148, Published: 2006
Pro ASP.NET 2.0 in C# 2005: Create Next-generation Web Applications with the Latest Version of Microsoft's Revolutionary Technology Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1426, Published: 2006
SQL Server 2005 Bible Authors: Paul Nielsen, Pages: 1293, Published: 2006

Web:
Min Kwan Park's bLog : The VS7.X Debugger doesn't work, What can I do? The Visual Studio 2002, Visual Studio 2003 or Visual Studio 2005 Deb ugger ... or your folder for virtual directory to access and write on the folders. ...
Build an IIS Virtual Directory Addin for Visual Studio.NET Build an IIS Virtual Directory Addin for Visual Studio.NET .... Debugging Addin projects can be a little confusing because a new instance of the IDE is ...
Virtual Directory inside Visual Studio Development Web Server ... Virtual Directory inside Visual Studio Development Web Server .... on the same server, and they want to debug an IIS while some virtual directory running. ...
Application hangs when debugging with Virtual Directory on Visual ... When debugging with Virtual Directory from Visual Studio 2005 (using ... cannot access the application while the developer is debugging it. ...
Remote debugging ASP.NET applications using Visual Studio 2008 ... Unable to create the virtual directory. Could not find the server 'http:/ ... Install the Visual Studio 2008 Remote Debugger on your remote machine. ...
MSDN Visual Studio Debugger "Detach from Process" for a virtual ... "Detach from Process" for a virtual directory with combined managed and script code ... As for the Client-side Script debugging, Visual Studio also supports ...
Unable to Start Debugging on the Web Server Then used Visual Studio to recreate project virtual directories in IIS (File - New .... "Error while trying to run project: Unable to start debugging. ...
Blood Sweat and Bugs: Debugging Javascript in Visual Studio Since then, i was unable to debug javascript in visual studio. It took me a while to verify ... On the "Virtual directory" tab click on "Configuration". ...
Re: Visual Studio Debug Mode: msg#00010 I usually just let Visual Studio create the directory for me as opposed to ... Visual Studio Debug Mode Have you set up virtual directories on your "new" ...
Visual Studio VS 2005 doesn't start debugging of Web Server. re: Visual Studio VS 2005 doesn't start debugging of Web Server. Left by Michael Logan at 3/14/2008 4:20 AM. Gravatar. Deleting the Virtual Directory and ...




Search This Site:










to vs 2005, or not...

when is vs 2005 beta 2 dvd coming out?

purpose of app_data

complicated but wise question need helpz....

creating web project in visual studio 2005

opinion on class libraries

what hardware to make vs2005 faster?

web application project and profile api

how can i use iis in stead of the asp.net development server?

bug in vs 2005 rtm conversion wizard

how to stop the refactoring that happens when you rename a control in the aspx designer?

adding a database project in vs.net 2005 standard

visual image chooser

debugger not working

developping 1.1 website with vs2005 (the isp problem) help

how can i intellisense user controls in vs 2005?

cannot import namespaces in web project...

app_globalresources directory and embedded files other than resx

code highlighting: is this feature available in vs2005?

does anyone know this problem

"cannot find server" in vs 2005 beta 2

how to disable specific compile warnings in a web application?

templates

web deployment project

dropdown list expands up??

breakpoint does not stop in web app under iis 6

code generators in c#

asp.net web configuration tool

is there a bug in c# compiler?

please help with vs.net 2005

  Privacy | Contact Us
All Times Are GMT