473,725 Members | 2,168 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help with debugging ASP

I have MS Visual Studio 2003 on Windows XP Pro. I have IIS running on
this machine and I am trying to debug some existing code which has both
ASP and ASP.NET components.

When I try and launch the debugger from VS, I am told it can't because
the project is of output type class library. The error indicates I
should set the start action to start external program or start URL.

I tried both of these and cannot seem to get the debugger to attach to
the process. However, I can load the webpage and surf to an error
which causes another session of VS to come up. Unfortunatly, the error
is not one that I can debug because I can not get break points to work
and the debugger will only come up when it hits the error.

My start page is default.asp and I have tried setting a break point in
it to no avail. How can I debug this script?

Thanks,

-KS

Dec 29 '05 #1
23 3201
ke*********@usa .com wrote:
I have MS Visual Studio 2003 on Windows XP Pro.


There was no way for you to know it, but this is a classic asp newsgroup.
While you may be lucky enough to find a dotnet-savvy person here who can
answer your question, you can eliminate the luck factor by posting your
question to a newsgroup where the dotnet-savvy people hang out. I suggest
microsoft.publi c.dotnet.framew ork.aspnet or
microsoft.publi c.vsnet.debuggi ng.

Unfortunately I don't know the answer to your question, so I suggest posting
to a relevant newsgroup.

Bob Barrows

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Dec 29 '05 #2
I had assumed since the first thing I wanted to debug was default.asp,
that this was classic ASP. Does the fact that I have both .asp and
..aspx files make the entire issue dotnet?

Thanks!

Dec 29 '05 #3
ke*********@usa .com wrote:
I had assumed since the first thing I wanted to debug was default.asp,
that this was classic ASP. Does the fact that I have both .asp and
.aspx files make the entire issue dotnet?

It's the fact that it's Visual Studio.Net that makes it a Visual Studio.Net
issue.

I'm not even sure you _can_ debug classic asp code with vs.net, although I
may be mistaken. I would think you would need Visual Interdev, and even with
that program, the ability to debug server-side asp code has never been
reliable.

For an alternative, see:
http://support.microsoft.com/support.../q288/9/65.asp

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Dec 29 '05 #4
you don't debug classic asp using a debugger.. pretty much all you can do is
use common sense and pay attention to where the error is and what line it is
at. If you are not seeing detailed error info server or web browser settings
are disabling or not showing it.

asp.net is a different story

both mixed together ? not possible in the same page for the most part unless
you got some whacked out things going on that you should not be doing.
<ke*********@us a.com> wrote in message
news:11******** **************@ o13g2000cwo.goo glegroups.com.. .
I have MS Visual Studio 2003 on Windows XP Pro. I have IIS running on
this machine and I am trying to debug some existing code which has both
ASP and ASP.NET components.

When I try and launch the debugger from VS, I am told it can't because
the project is of output type class library. The error indicates I
should set the start action to start external program or start URL.

I tried both of these and cannot seem to get the debugger to attach to
the process. However, I can load the webpage and surf to an error
which causes another session of VS to come up. Unfortunatly, the error
is not one that I can debug because I can not get break points to work
and the debugger will only come up when it hits the error.

My start page is default.asp and I have tried setting a break point in
it to no avail. How can I debug this script?

Thanks,

-KS

Dec 29 '05 #5
Kyle Peterson wrote:
you don't debug classic asp using a debugger..


Actually, if you're lucky (and make the proper sacrifices) you can debug
server-side code with Visual Interdev. I had it working for awhile... but
then it stopped working and I could never make it work again. It's very
susceptible to FrontPage Server Extensions conflicts.

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Dec 29 '05 #6
Bob Barrows [MVP] wrote on 30 dec 2005 in
microsoft.publi c.inetserver.as p.general:
Kyle Peterson wrote:
you don't debug classic asp using a debugger..


Actually, if you're lucky (and make the proper sacrifices) you can
debug server-side code with Visual Interdev. I had it working for
awhile... but then it stopped working and I could never make it work
again. It's very susceptible to FrontPage Server Extensions conflicts.


Visual Interdev and Frontpage are often used by people that don't want to
learn indepth ASP, and therefore wish for automatic debugging.

Experience learns that automatic debugging is impossible,
debugging needs manual breakpoints and a good knowledge of a language.

A debugger could detect syntax failures, but the larger part of bugs are
logical errors that only show at runtime and depend on the external input.

Simple, clean and straight forward programming code, which the above
progrmmes don't give, is a prerequisite for a good working and maintainable
code.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Dec 29 '05 #7
same here with the problems.. I was a bit of an Interdev 1 and 6 expert back
in the day.
Ulitmately what they tried to do with Visual Interdev 6 was a failure and
half the shit in it did not work correctly.
It was object oriented before it was ready for primetime.

Over the years I just stuck to hand coding (and some in-house code wizards)
though I have to admit the latest versions of Dreamweaver are actually
pretty sweet for ASP work if you actually take the time to become familiar
with it which I never do.

"Bob Barrows [MVP]" <re******@NOyah oo.SPAMcom> wrote in message
news:eW******** ******@TK2MSFTN GP14.phx.gbl...
Kyle Peterson wrote:
you don't debug classic asp using a debugger..


Actually, if you're lucky (and make the proper sacrifices) you can debug
server-side code with Visual Interdev. I had it working for awhile... but
then it stopped working and I could never make it work again. It's very
susceptible to FrontPage Server Extensions conflicts.

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"

Dec 30 '05 #8
Yes, you can debug ASP server-side script in VS2003. I do it regularly.

The hard part is not how to debug; it is figuring out how from the
documentation on MSDN. I'll give you a simplified version from memory so if
you can't decipher it, let me know and I'll go through the procedures and
take notes so I can be more specific.

1. Right clicke your project (the project, not the solution) in project
explorer and select properties.

2. On your VS2003 project properties window, debug settings, enable
debugging for ASP files.

3. In IIS manager, either at the default website or the specific site if
you only want to debug ASP in some sites and not in others, click the
Configure button just under the button where you enable the site application.

4. On the configuration applet, there is a checkbox to enable debugging of
ASP pages.

5. Add the appropriate users to the Debugger Users local group. This is
the tricky part, or was for me.

The instructions I followed said to add the IWAM acount to the group, which
didn't work. So then, I added the EVERYONE account, all of the available
network and system accounts, the IUSR account, and my own account. then I
could debug ASP.

Next, I started deleting accounts to see what I could do without. I deleted
the EVERYONE first, deleted all of the NETWORK and system type accounts
except the SYSTEM account since it was already in the group when I started,
and deleted the IUSR account. That left my own account and NT
AUTHORITY\SYSTE M. I debug ASP projects that use anonymous access and that
use Windows Authentication.

At that point, the list seemed reasonably short and I didn't try deleting
any more.

6. Set a breakpoint on server script in your asp files and debug to your
heart's content.

Since the security portion seems to be the hardes part, if my instructions
don't work for you, I suggest you do what I did: add everything under the
sun to the Debugger Users group and start removing until you have a short
working list left in the group.

Good luck.
--
Dale Preston
MCAD C#
MCSE, MCDBA
"Evertjan." wrote:
Bob Barrows [MVP] wrote on 30 dec 2005 in
microsoft.publi c.inetserver.as p.general:
Kyle Peterson wrote:
you don't debug classic asp using a debugger..


Actually, if you're lucky (and make the proper sacrifices) you can
debug server-side code with Visual Interdev. I had it working for
awhile... but then it stopped working and I could never make it work
again. It's very susceptible to FrontPage Server Extensions conflicts.


Visual Interdev and Frontpage are often used by people that don't want to
learn indepth ASP, and therefore wish for automatic debugging.

Experience learns that automatic debugging is impossible,
debugging needs manual breakpoints and a good knowledge of a language.

A debugger could detect syntax failures, but the larger part of bugs are
logical errors that only show at runtime and depend on the external input.

Simple, clean and straight forward programming code, which the above
progrmmes don't give, is a prerequisite for a good working and maintainable
code.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Dec 30 '05 #9
Evertjan. wrote:
Bob Barrows [MVP] wrote on 30 dec 2005 in
microsoft.publi c.inetserver.as p.general:
Kyle Peterson wrote:
you don't debug classic asp using a debugger..
Actually, if you're lucky (and make the proper sacrifices) you can
debug server-side code with Visual Interdev. I had it working for
awhile... but then it stopped working and I could never make it work
again. It's very susceptible to FrontPage Server Extensions
conflicts.


Visual Interdev and Frontpage


Not FrontPage: FrontPage server extensions.
are often used by people that don't
want to learn indepth ASP, and therefore wish for automatic debugging.
Maybe so, but the desire for debugging and the abiltiy to write "indepth
ASP" are not contradictory.

Experience learns that automatic debugging is impossible,
Not so. When it works, the Interdev debugger provides this. It's keeping it
working that's the issue...
debugging needs manual breakpoints
And I'm telling you that when it works, Interdev provides a full-fledged
debugger: breakpoints, watches, call stacks, Immediate window, everything
one would expect from a debugger.
and a good knowledge of a language.
A debugger could detect syntax failures, but the larger part of bugs
are logical errors that only show at runtime and depend on the
external input.

Simple, clean and straight forward programming code, which the above
progrmmes don't give,
Maybe they don't "give" it, but they don't prevent it either when used by a
knowledgeable programmer. :-)
is a prerequisite for a good working and
maintainable code.


True.

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Dec 30 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
4007
by: James | last post by:
My form and results are on one page. If I use : if ($Company) { $query = "Select Company, Contact From tblworking Where ID = $Company Order By Company ASC"; }
5
2357
by: Jerry Polyak | last post by:
Can someone give me a pointer, please. I am getting the following errors: Notice: Undefined index: sender_name in c:\program files\apache group\apache\htdocs\allinone_form.php on line 12 Notice: Undefined index: sender_email in c:\program files\apache group\apache\htdocs\allinone_form.php on line 14
6
7588
by: Ken Varn | last post by:
I am trying to remote debug a C# application but the debugger is reporting the following exception: An unhandled exception of type 'System.IO.FileLoadException' occurred in Unknown Module. Additional information: Unverifiable assembly 'FrameGrabber' failed policy check. The FrameGrabber assembly is a C++ managed DLL.
10
2717
by: Brian Conway | last post by:
I have no idea what is going on. I have a Login screen where someone types in their login information and this populates a datagrid based off of the login. Works great in debug and test through VS, however, when I change to release and put it out on the web it fails giving me the following error message The underlying connection was closed. Could not establish a trust relationship with the remote server.
4
1526
by: Jason Hunt | last post by:
I'm hoping someone can help me out with using the Visual Studio IDE for debugging. I'm working on a Windows Forms application (it's an MDI if it matters), and I'm trying to fix a bug in my program. What's happening is when the program is running, it runs into an exception error and switches back to the Visio Studio screen. The problem is that it's not showing me the line of code which actually caused the exception. Instead it is...
4
4782
by: Martin Odhelius | last post by:
Hello, I have a very fustrating problems while debugging ASP.NET applications. When I am debugging and stepping thru code (with F10 or F11) Visual Studio some times suddenly just stop responding and the only way get it up and running again is to kill the aspnet_wp.exe process. When the debugger hangs there is almost no CPU load, so it doesn't seem to be any hidden eternal loop or anything like that. I have tried to reinstall IIS and...
7
6956
by: yuanlinjiang | last post by:
I am working on converting a win32 console application from VC6 to VC7. My version is Microsoft Development Environment 2003 version 7.1.3088. The code works fine on VC6. it is a console program for scientific computation, so it has nothing to do with MFC. But it needs some other libraries such as MKL, sparselib, etc. VC7 can build the executable successfully. However, when i run it, there is only one line on the command window:
9
2742
by: SAL | last post by:
Hello, I have a Dataset that I have table adapters in I designed using the designer (DataLayer). I have a business logic layer that immulates the DataLayer which may/may not have additional logic in. My business classes are, of course, decorated with the: <System.ComponentModel.DataObject() attribute. So, I drop a GridView on a webform and set its datasource to an ObjectDatasource which in turn is using one of my business logic...
4
2674
by: =?Utf-8?B?bXVzb3NkZXY=?= | last post by:
Hi guys I'm working on a web app in VS2005 (.net 2.0.50727). All is working fine, except when I add a HTTPModule to my web.config file, as follows... <httpModules> <add name="UrlRewrite" type="UrlRewrite" /> </httpModules> If I do that, I get a really huge dialog box which basically says "Unable to
0
8888
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8752
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9401
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9257
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9113
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8097
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6702
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6011
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3221
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.