Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio
This is the forum to discuss the Wrox book ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solution by Vincent Varallo; ISBN: 9780470396865
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old March 4th, 2012, 01:20 PM
Friend of Wrox
Points: 608, Level: 9
Points: 608, Level: 9 Points: 608, Level: 9 Points: 608, Level: 9
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2005
Location: St. Louis, , .
Posts: 100
Thanks: 0
Thanked 1 Time in 1 Post
Default Debugging a Web Site using Visual Studio

Debugging a Web Site using Visual Studio

I am studying a web site that caught my eye by making a test site privately. Since the original html and CSS and JavaScript code is on a Windows Server and since I am making a test version on a Linux server, there are issues with missing links because of case sensitivity.

Anyway, this is he point. When I load the test website, I get an error message that some file cannot be found. Because of the size and all the connections and files, it is difficult to track down what file is missing or misnamed file. Now, I think there is a way to easily find out exactly what file is not found. I think there is a way to do this using Visual Studio test classes and projects. Am I right?
  #2 (permalink)  
Old September 26th, 2012, 12:54 PM
Registered User
Points: 27, Level: 1
Points: 27, Level: 1 Points: 27, Level: 1 Points: 27, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2012
Posts: 5
Thanks: 0
Thanked 1 Time in 1 Post
Default

You don't need to go to all the trouble of creating test cases etc... All you need to do is to run the site from VS and it should get to the point where the missing file is giving you problems.

However, should that fail to give you an exact file name it is simple enough to do a search of entire project/website while in VS for every instance of a "link" or "href" so you can check things like spelling, case, slashes (/), etc... Make sure that you are using the correct syntax for some of these things as well. For instance, using "~/" might work in almost all cases where you are trying to get to the root of your application but in some cases you may have to use "../" or "/" to navigate from folder to folder. This is especially true with accessing a CSS page where they are all kept in their own directory. Normally though, CSS pages that can't be found don't get reported. What is probably getting reported is an automatic redirect to an error page or a login page that either isn't there or in the worng directory or being navigated to incorrectly. You could also do a search (using VS) for ".aspx" or "htm" etc... Since these are the file types you would be navigating to.

Luck

Quote:
Originally Posted by Bill_Thompson View Post
Debugging a Web Site using Visual Studio

I am studying a web site that caught my eye by making a test site privately. Since the original html and CSS and JavaScript code is on a Windows Server and since I am making a test version on a Linux server, there are issues with missing links because of case sensitivity.

Anyway, this is he point. When I load the test website, I get an error message that some file cannot be found. Because of the size and all the connections and files, it is difficult to track down what file is missing or misnamed file. Now, I think there is a way to easily find out exactly what file is not found. I think there is a way to do this using Visual Studio test classes and projects. Am I right?
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Microsoft visual Studio 11 vs visual web dev. lizanta ASP.NET 4 General Discussion 5 March 1st, 2012 01:54 PM
Visual Studio VS. Visual Web Developer expr Astrocloud BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 2 November 23rd, 2008 03:10 PM
Good Flash Site For Visual Studio iamsreejithps C# 0 May 23rd, 2008 12:43 PM
debugging in visual studio.net 2005 wendy elizabeth Visual Studio 2005 1 June 28th, 2007 11:58 PM
Visual Studio Debugging Zeus_Man General .NET 1 November 3rd, 2006 07:49 PM



All times are GMT -4. The time now is 10:05 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.