473,379 Members | 1,377 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Is there a way to have IIS stop sending ASP_DEBUG_INFO METADATA in debug mode?

Hi.

This is a feature that is really going on my nerves as I've been writing SOAP
Web services using ASP and SOAP toolkit 3.0. My web services ASP scripts send
XML data to the client application.

When I'm debugging under Visual Sudio, IIS prefixes *all* streams that go to the
client with <!-- METADATA TYPE="ASP_DEBUG_INFO">. I'm using XMLHTTP in some
cases to receive data. Neither XMLHTTP v3 nor v4 seem to accept this as valid
XML. I must instantiate an XML document and load stripped data instead.

So isn't there any way for IIS to stop sending this METADATA?

Thanks in advance,
Vince C.
Jul 19 '05 #1
9 4441
Disable the Server-side and client-side debugging options under the
configuration of the application from IIS manager.

I believe that's what I did when I had the problem.

HTH
Lance
"Vince C." <no**@hotmail.com> wrote in message
news:OQ****************@tk2msftngp13.phx.gbl...
Hi.

This is a feature that is really going on my nerves as I've been writing SOAP Web services using ASP and SOAP toolkit 3.0. My web services ASP scripts send XML data to the client application.

When I'm debugging under Visual Sudio, IIS prefixes *all* streams that go to the client with <!-- METADATA TYPE="ASP_DEBUG_INFO">. I'm using XMLHTTP in some cases to receive data. Neither XMLHTTP v3 nor v4 seem to accept this as valid XML. I must instantiate an XML document and load stripped data instead.

So isn't there any way for IIS to stop sending this METADATA?

Thanks in advance,
Vince C.

Jul 19 '05 #2
"Lance Wynn" <la********@N.O.S.P.A.M.hotmail.com> a écrit dans le message de
news:%2****************@tk2msftngp13.phx.gbl...
Disable the Server-side and client-side debugging options under the
configuration of the application from IIS manager.

I believe that's what I did when I had the problem.


Well, I can't because they're automatically set by VInterdev when I start a
debugging session. I've seen in MS KB I "had to" uncheck the "client-side
debugging option" in the property page you're referring to but it's the same
problem. Visual Interdev doesn't offer any choice whether to allow client side
debugging. And manual debugging is not an option, unfortunately for specific
reasons.

Vince C.
Jul 19 '05 #3
Hello Vince,

Thanks for posting in the group.

Based on my understanding, now the issue is: You developed web service in
IIS server side. When you debug it under VS 6.0, the response contains <!--
METADATA TYPE="ASP_DEBUG_INFO"> in the prefix of all responses, which makes
your client XMLHttp failed in parsing. Please feel free to post here if I
have misunderstood the problem.

Generally speaking, When we view or debug an Active Server Pages (ASP)
page, we may notice that the following tag is inserted into the resultant
HTML at the top of your page: <!-- METADATA TYPE="ASP_DEBUG_INFO" -->

When this tag is inserted into the resultant HTML, it may cause problems in
the following scenarios:
1) When you generate XML in your ASP page and send the XML to the client
rather than HTML. (that is your scenario)
2) When you use the Response.BinaryWrite method to stream binary data to
the client (for example, a Microsoft Excel document).

In fact, ASP sends down this tag when the following two conditions are met:
1) The Enable ASP client-side script debugging flag is enabled for the Web
application.
2) An ASPCLIENTDEBUG cookie is present on the client that makes the request.

Typically, when you use automatic debugging with Visual InterDev 6.0, both
of these conditions are met. The Visual InterDev debugger requires this tag
at run time to automatically map breakpoints in the client script.

To resolve this problem, we can use one of the following methods.

Method 1
Disable the Enable ASP client-side script debugging flag as follows:
In the Internet Services Manager, right-click the Web application with
which you are currently working, and then click Properties.
Click Configuration.
On the App Debugging tab, clear the Enable ASP client-side script debugging
check box.

Method 2
Delete the ASPCLIENTDEBUG cookie from your client computer as follows:
On your computer, search for a file named username@applicationname*. For
example, if the user name is "johndoe" and the application is named
"myapplication," search for the johndoe@myapplication* file.
After you locate the file, delete it.

For more details, please refer to http://support.microsoft.com/?id=297995.
"PRB: "ASP_DEBUG_INFO" Tag Is Inserted into HTML When You Debug with Visual
InterDev 6.0".

Does that answer your question?

Best regards,
Yanhong Huang
Microsoft Community Support

Get Secure! ¨C www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Jul 19 '05 #4
Hello Vince,

Have you tried the suggestion yet? If the problem still can't be resolved,
please feel free to post here. I am glad to work with you on it.

Thanks again for participating the community.

Best regards,
Yanhong Huang
Microsoft Community Support

Get Secure! ¨C www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Jul 19 '05 #5
"Yan-Hong Huang[MSFT]" <yh*****@online.microsoft.com> a écrit dans le message de
news:XR*************@cpmsftngxa07.phx.gbl...
Hello Vince,

Have you tried the suggestion yet? If the problem still can't be resolved,
please feel free to post here. I am glad to work with you on it.


The first suggestion is not applicable as both options are automatically set by
Visual Interdev when starting a debugging session. Manually configuring the
server for debugging is... boring. I must set the options whenever I need to
debug and clear them when I want to run the web application normally.

The second option is not applicable either as the cookie is sent whenever a
debugging session is started. At least this is what I've noticed. It is sent as
soon as the debugging options are set in IIS properties. And since they are set
automatically... you've understood.

It would have been best if one could setup VI to automatically check one or both
options.

Vince C.
Jul 19 '05 #6
Hi Vince,

Thanks for your response.

As KB article "PRB: "ASP_DEBUG_INFO" Tag Is Inserted into HTML When You
Debug with Visual InterDev 6.0" mentioned, this is a known issue and the
only way is to change setting by ourselves. For the second way in this
article, we need to delete cookies every time too. I understand that what
you need is to simply set it automatically. However, we could only setup it
each time in InterDev for now. We can't use the automatic debugging in
these scenarios.

http://support.microsoft.com/?id=297995 has a clear explanation on it.

Thanks.

Best regards,
Yanhong Huang
Microsoft Community Support

Get Secure! ¨C www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Jul 19 '05 #7
"Yan-Hong Huang[MSFT]" <yh*****@online.microsoft.com> a écrit dans le message de
news:Qq*************@cpmsftngxa07.phx.gbl...
Hi Vince,

Thanks for your response.

As KB article "PRB: "ASP_DEBUG_INFO" Tag Is Inserted into HTML When You
Debug with Visual InterDev 6.0" mentioned, this is a known issue and the
only way is to change setting by ourselves. For the second way in this
article, we need to delete cookies every time too. I understand that what
you need is to simply set it automatically. However, we could only setup it
each time in InterDev for now. We can't use the automatic debugging in
these scenarios.

http://support.microsoft.com/?id=297995 has a clear explanation on it.


If I can make a suggestion why not putting a processing directive such as

<@ aspdebuginfo=false @>

on top of pages in which we don't want VI/IIS to send debug information?

Vince C.
Jul 19 '05 #8
Hi Vince,

Thanks very much for your feedback.

I will pass your suggestion to our product group. Also, you can submit it
at
http://register.microsoft.com/mswish...=EN-US&gssnb=1.

We appreciate your input there, and look forward to building better
products with helpful ideas such as yours.

Thanks again for participating the community.

Best regards,
Yanhong Huang
Microsoft Community Support

Get Secure! ¨C www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Jul 19 '05 #9
I am having the same problem with VisualStudio.NET that debugs both ASP and ASP.NET pages coexisting in the same application. Is there a way you can mark an ASP page not to be debugged by Visual Studio .NET
Jul 19 '05 #10

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

Similar topics

1
by: Jim | last post by:
I have some complex (fairly) user controls that I have created. Some of those user controls host other user controls. When I host one of these on a WinForm, I sometimes run into problems where...
7
by: Srinivasa Rao | last post by:
I have read in one article that when we compile the application in release mode, all the debug classes and properties will be automatically removed from the code. I tried to implement this thing by...
2
by: ringo | last post by:
Every time I try to run one of my web apps in debug mode, the VS.net IDE feels the need to do a full rebuild of the project including the .msi file. My last server never did this, but this one does...
4
by: Chad | last post by:
I rebuilt my pc (format and reinstall) running XP and Visual Studio 2003. My problem is that the IDE won't stop the run session when I close the web application. Now when I create a new...
1
by: Good Man | last post by:
Hi there I've noticed some very weird things happening with my current MySQL setup on my XP Laptop, a development machine. For a while, I have been trying to get the MySQL cache to work....
0
by: Saran | last post by:
Hi, I am having a method that handles the click event of a button on the page. This method will also send an email. Sending email comes after several lines of code in the method. I was testing...
5
by: =?Utf-8?B?SmVycnkgSg==?= | last post by:
In debug mode, I want to be able to stop on the first executed line in my aspx.vb code page without setting a specific break point. Is there a way to do that? -- Jerry J
7
by: Marc Bartsch | last post by:
Hi, I have a background worker in my C# app that makes a synchronous HttpWebRequest.GetResponse() call. The idea is to POST a file to a server on the internet. When I call HttpWebRequest.Abort()...
5
by: =?Utf-8?B?cmF1bGF2aQ==?= | last post by:
vs2008 c# add-in TestMatrix 2.0 nUnit 2.4.7 apologize for trying here to get answers to my problem but i might be lucky if some one can give me a hint or tip. I trying to start debugging my...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.