I can get the Trace.Write() to work if I put the code in
an aspx.cs file. But, I have a (C#) class called by my
aspx.cs code that also has Trace messages, but none of
them show up in the Trace file, Trace.axd. Does anyone
know why?
Thanks. 6 1730
Make sure you've got "using System.Diagnost ics;" referenced in your cs file
"Joe Rattz" <jo*******@genp t.com> wrote in message
news:05******** *************** *****@phx.gbl.. . I can get the Trace.Write() to work if I put the code in an aspx.cs file. But, I have a (C#) class called by my aspx.cs code that also has Trace messages, but none of them show up in the Trace file, Trace.axd. Does anyone know why?
Thanks.
I have. It wouldn't even compile without that. -----Original Message----- Make sure you've got "using System.Diagnost ics;"
referenced in your cs file
"Joe Rattz" <jo*******@genp t.com> wrote in message news:05******* *************** ******@phx.gbl. .. I can get the Trace.Write() to work if I put the code in an aspx.cs file. But, I have a (C#) class called by my aspx.cs code that also has Trace messages, but none of them show up in the Trace file, Trace.axd. Does anyone know why?
Thanks.
.
"Joe Rattz" <jo*******@genp t.com> wrote in message
news:05******** *************** *****@phx.gbl.. . I can get the Trace.Write() to work if I put the code in an aspx.cs file. But, I have a (C#) class called by my aspx.cs code that also has Trace messages, but none of them show up in the Trace file, Trace.axd. Does anyone know why?
Probably because your .cs file is using System.Diagnost ics.Trace.Write ?
Try passing the Page.Trace object to your methods in the C# class.
--
John Saunders
Internet Engineer jo***********@s urfcontrol.com
"Joe Rattz" <jo*******@genp t.com> wrote in message
news:05******** *************** *****@phx.gbl.. . I can get the Trace.Write() to work if I put the code in an aspx.cs file. But, I have a (C#) class called by my aspx.cs code that also has Trace messages, but none of them show up in the Trace file, Trace.axd. Does anyone know why?
Probably because your .cs file is using System.Diagnost ics.Trace.Write ?
Try passing the Page.Trace object to your methods in the C# class.
--
John Saunders
Internet Engineer jo***********@s urfcontrol.com
>Probably because your .cs file is using
System.Diagnost ics.Trace.Write ?
Yes, it is. Well, where is it writing the trace at? It
doesn't throw an exception so it must be a legitimate
Trace object, correct? So, why should I need to pass it? -----Original Message----- "Joe Rattz" <jo*******@genp t.com> wrote in message news:05******* *************** ******@phx.gbl. .. I can get the Trace.Write() to work if I put the code in an aspx.cs file. But, I have a (C#) class called by my aspx.cs code that also has Trace messages, but none of them show up in the Trace file, Trace.axd. Does anyone know why? Probably because your .cs file is using
System.Diagnost ics.Trace.Write ? Try passing the Page.Trace object to your methods in the
C# class.-- John Saunders Internet Engineer jo***********@ surfcontrol.com
.
>Probably because your .cs file is using
System.Diagnost ics.Trace.Write ?
Yes, it is. Well, where is it writing the trace at? It
doesn't throw an exception so it must be a legitimate
Trace object, correct? So, why should I need to pass it? -----Original Message----- "Joe Rattz" <jo*******@genp t.com> wrote in message news:05******* *************** ******@phx.gbl. .. I can get the Trace.Write() to work if I put the code in an aspx.cs file. But, I have a (C#) class called by my aspx.cs code that also has Trace messages, but none of them show up in the Trace file, Trace.axd. Does anyone know why? Probably because your .cs file is using
System.Diagnost ics.Trace.Write ? Try passing the Page.Trace object to your methods in the
C# class.-- John Saunders Internet Engineer jo***********@ surfcontrol.com
. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: fdsl ysnh |
last post by:
--- python-list-request@python.orgдµÀ:
> Send Python-list mailing list submissions to
> python-list@python.org
>
> To subscribe or unsubscribe via the World Wide Web,
> visit
> http://mail.python.org/mailman/listinfo/python-list
> or, via email, send a message with subject or body
> 'help' to
|
by: Geopsaros |
last post by:
Hi!
I have created a custom trace Listener class, called "DBTraceListener"
it works fine when i add it manually in code :
(eg. Trace.listeners.add(new DBTraceListener("myDBListener",
TraceLevel.Verbose, getDBConnection) )
What I'm trying to achieve now is to add this listener via the
MyApplication.exe.config file
|
by: Ken Varn |
last post by:
I want to be able to determine my current line, file, and function in my C#
application. I know that C++ has the __LINE__, __FUNCTION__, and __FILE___
macros for getting this, but I cannot find a C# equivalent. Any ideas?
--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.
varnk@diebold.com
|
by: Richard |
last post by:
Hi,
I'm having trouble setting up a config file based trace switch & listener. I added an application config file to my console based C# program using the "Add New Application Config File" button from solution explorer. My config file is composed of the following, which is almost a verbatum cut & paste from MSDN help:
---------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8" ?>...
|
by: Zeng |
last post by:
I finally narrowed down my code to this situation, quite a few (not all) of
my CMyClass objects got hold up after each run of this function via the
simple webpage that shows NumberEd editbox. My memory profile shows that
those instances survive 3 rounds of GC collections - it's not what I
expected. In my real code, CMyClass occupies big amount of memory and they
all share one stance of another class that I don't have enough memory hold...
| |
by: Martin |
last post by:
Hi,
is it a wise thing to do to place trace listeners (that write to a text
file) into an asp.net application.
I wish to do this for testing so that a user may vist as many different
pages as they like and the trace information for that session will be kept
in a sigle place.
I have implemented a logger and added a trace switch to my web.config file
|
by: scottyman |
last post by:
I can't make this script work properly. I've gone as far as I can with
it and the rest is out of my ability. I can do some html editing but
I'm lost in the Java world. The script at the bottom of the html page
controls the form fields that are required. It doesn't function like
it's supposed to and I can leave all the fields blank and it still
submits the form. Also I can't get it to transfer the file in the
upload section. The file name...
|
by: tshad |
last post by:
I have a page with Trace.Warns statements in my Page_Load and functions that
it calls, but it doesn't seem to work in a class that is defined on the same
page. I am writing this in C#
I am getting the following error at the 1st Trace.Warn:
***********************************************
Compiler Error Message: CS0118: 'System.Web.UI.Page.Trace' denotes a
'property' where a 'class' was expected
|
by: DoB |
last post by:
As in the subject...
What is an overhead cost conneted with using the /d:TRACE switch?
The Trace class is a convenient and configurable logger, but it requires the
executable to be built with the /d:TRACE switch.
Is using of the switch heavy in terms of size and performance of the
executable? Is it better to write my own logger class if I want it to be
used in the release build?
DoB
|
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,...
|
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...
| |
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...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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...
|
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...
|
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();...
|
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...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |