473,799 Members | 3,061 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to Debug and Trace asp.net 1.1?

Hi all,

I am a complete beginner to asp.net and have to maintain an application
on the 1.1 Framework, written in VB.NET.

I would like to know, is it possible to debug the .aspx files of the
application (javascript) in some way. I read in a book and on the
internet, that it is possible. I tried something like:

<% Page debug="true" %> and also <% Page trace="treu"%>, bit I get the
following message:

Parser Error
Description: An error occurred during the parsing of a resource
required to service this request. Please review the following specific
parse error details and modify your source file appropriately.

Parser Error Message: The directive 'Page' is unknown.

Source Error:
Line 1: <%@ Control Language="vb" AutoEventWireup ="false"
Codebehind="wct rlManageProduct s.ascx.vb"
Inherits="CPD.w ctrlManageProdu ct"
TargetSchema="h ttp://schemas.microso ft.com/intellisense/ie5"
enableViewState ="True"%>
Line 2: <%@ Register TagPrefix="uc1" TagName="wctrlM yStructure"
Src="wctrlMyStr ucture.ascx" %>
Line 3: <%@ Page Language="vb" trace="true" %>
Line 4:
Line 5: <LINK href="visualasp .css" type="text/css" rel="stylesheet ">

What shall I do?

Thanks in advance
Daniel

Jun 29 '06 #1
2 1601
I guess, you are not creating a WebForm, otherwise how come it has the
<%@ Control %> directive, which is wrong in a WebForm.

Check for the file type in your solution and try by creating a new WebForm.

If you are not using Visual Studio and typed <%@ Control %> directive
manually, then it is wrong because a WebForm cannot contain a <%@
Control %> directive and <%@ Page %> directive.

Or, If you are trying to place a control in your webform, then probably
you have to use <%@ Register %> directive to place the control.

Let me know if this isn't what you need.

--
Vadivel Kumar
http://www.vadivelk.net
va**@online.vad ivelk.net (remove "online.")

da************* @googlemail.com wrote:
Hi all,

I am a complete beginner to asp.net and have to maintain an application
on the 1.1 Framework, written in VB.NET.

I would like to know, is it possible to debug the .aspx files of the
application (javascript) in some way. I read in a book and on the
internet, that it is possible. I tried something like:

<% Page debug="true" %> and also <% Page trace="treu"%>, bit I get the
following message:

Parser Error
Description: An error occurred during the parsing of a resource
required to service this request. Please review the following specific
parse error details and modify your source file appropriately.

Parser Error Message: The directive 'Page' is unknown.

Source Error:
Line 1: <%@ Control Language="vb" AutoEventWireup ="false"
Codebehind="wct rlManageProduct s.ascx.vb"
Inherits="CPD.w ctrlManageProdu ct"
TargetSchema="h ttp://schemas.microso ft.com/intellisense/ie5"
enableViewState ="True"%>
Line 2: <%@ Register TagPrefix="uc1" TagName="wctrlM yStructure"
Src="wctrlMyStr ucture.ascx" %>
Line 3: <%@ Page Language="vb" trace="true" %>
Line 4:
Line 5: <LINK href="visualasp .css" type="text/css" rel="stylesheet ">

What shall I do?

Thanks in advance
Daniel

Jun 29 '06 #2
the page directive requires the <%@ (with an @ sign).

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"da************ *@googlemail.co m" wrote:
Hi all,

I am a complete beginner to asp.net and have to maintain an application
on the 1.1 Framework, written in VB.NET.

I would like to know, is it possible to debug the .aspx files of the
application (javascript) in some way. I read in a book and on the
internet, that it is possible. I tried something like:

<% Page debug="true" %> and also <% Page trace="treu"%>, bit I get the
following message:

Parser Error
Description: An error occurred during the parsing of a resource
required to service this request. Please review the following specific
parse error details and modify your source file appropriately.

Parser Error Message: The directive 'Page' is unknown.

Source Error:
Line 1: <%@ Control Language="vb" AutoEventWireup ="false"
Codebehind="wct rlManageProduct s.ascx.vb"
Inherits="CPD.w ctrlManageProdu ct"
TargetSchema="h ttp://schemas.microso ft.com/intellisense/ie5"
enableViewState ="True"%>
Line 2: <%@ Register TagPrefix="uc1" TagName="wctrlM yStructure"
Src="wctrlMyStr ucture.ascx" %>
Line 3: <%@ Page Language="vb" trace="true" %>
Line 4:
Line 5: <LINK href="visualasp .css" type="text/css" rel="stylesheet ">

What shall I do?

Thanks in advance
Daniel

Jun 29 '06 #3

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

Similar topics

2
5268
by: Kevin | last post by:
Hi All, Can someone please tell me what the difference is between DEBUG and TRACE. From what I can see, they are two different classes, but with the same members? Whats the purpose of have two different classes that seem to do the same thing? Thanks alot for any help, much appreciated Kevin
0
1436
by: Pete W | last post by:
I have a console application for which I have atttemped to use TextWriterTraceListener. The app uses System.Diagnostic I want to trace or debug to Console and also to file. code in Main() includes: TextWriterTraceListener fw = new TextWriterTraceListener(myFile); TextWriterTraceListener sw = new TextWriterTraceListener(Console.Out); Trace.Listeners.Add(fw); Trace.Listeners.Add(sw);
10
4898
by: Scott | last post by:
I have a simple asp.net app which works fine in debug mode, but crashes on the following line when I run it on the production server: Dim dt As DataTable I have tried the following variations which produce the same result: Dim dt As System.Data.DataTable Dim dt As DataTable = New DataTable The error message reads: System.NullReferenceException: Object reference
4
718
by: A.M | last post by:
Hi, If I use System.Diagnostics.Debug.WriteLine in a asp.net application, where does the output go? Is there any trace monitor application thar shows me the trace output? Thanks, Allan
7
18798
by: Thomas Pecha | last post by:
Sorry for all who think this is easy, I was not able to handle this Coming from VB6 where with simple debug.print strAString you could write to debug window, I am totalling failing in vb.net 2003 The sample in the help file does not work. I tried now for days ... Pls could anybody post a sample, including necessary imports and so on -
6
4120
by: swartzbill2000 | last post by:
Hello, I have a VB 2005 Express project with a TraceListener-derived class to route Debug.Print output to a log file. It works fine for Debug builds. What is the correct combination of changes to make it work in Release build? Bill
3
2871
by: Arman Sahakyan | last post by:
Hi, I'm an MFC programmer and know little about .NET programming. Now, for some reasons, I'm developing an ASP .NET application... What I need to know is how to output into VS's Output Window like what MFC's TRACE macro does (during debugging). Could you please share your knowledge with me? Thanks in advance.
3
2961
by: =?Utf-8?B?ZWxhZGxh?= | last post by:
Hi. I was wondering if it was possible to give a variable different values depending on if the code was compiled in debug or release? i.e. if the code was compiled in debug: string strConnection = "Server1"; if the code was compiled in release: string strConnection = "Server2"; Thanks!
2
7213
by: Bob S | last post by:
I am using Debug.WriteLine and Trace.WriteLine to output messages from a dll. This dll is used in an application. No matter whether i run the program in release mode or debug mode and whether i define/undefine DEBUG and TRACE compiler definitions, I still get the messages in the Output window. What might be the problem? Thanks Bob
2
9042
by: joelkeepup | last post by:
Hi, I made a change this morning and now im getting an error that says either "a is undefined or null" or "e is undefined or null" the microsoft ajax line is below, I have no idea how to figure this problem out. Any suggestions? thanks Joel
0
9686
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
9540
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
10250
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
9068
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
7564
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
5463
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5585
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3757
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2938
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.