473,387 Members | 1,585 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,387 software developers and data experts.

Stack trace specifies the name of the development server?!?

Hi,

I developed an application which writes errors to the event viewer whenever an exception is thrown (this is done at the application_error event).
Except for the exception message, I also write the stack trace to the event viewer entry.

I was suprised to know that the stack trace includes the physical location of the files in the delvelopment server.

Is this normal???

For example I added an error I found on one of our live servers (gmtest is our development server):

Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.
at System.Data.SqlClient.ConnectionPool.GetConnection (Boolean& isInTransaction)
at System.Data.SqlClient.SqlConnectionPoolManager.Get PooledConnection(SqlConnectionString options, Boolean& isInTransaction)
at System.Data.SqlClient.SqlConnection.Open()
at POSearchPage.Classes.StatusCodesReader.ReadStatuse s() in \\gmtest\wwwroot$\alpha\POSearchPage\Classes\Statu sCodesReader.cs:line 29
at POSearchPage.Classes.StatusCodesReader..ctor(Strin g dsn) in \\gmtest\wwwroot$\alpha\POSearchPage\Classes\Statu sCodesReader.cs:line 18
at POSearchPage.Global.Session_Start(Object sender, EventArgs e) in \\gmtest\wwwroot$\alpha\posearchpage\global.asax.c s:line 32
at System.Web.SessionState.SessionStateModule.Complet eAcquireState()
at System.Web.SessionState.SessionStateModule.BeginAc quireState(Object source, EventArgs e, AsyncCallback cb, Object extraData)
at System.Web.AsyncEventExecutionStep.System.Web.Http Application+IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously)
Nov 18 '05 #1
2 1438
The stack trace will reference the location of the files when the class was
compiled.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Gal Moshitch" <an*******@discussions.microsoft.com> wrote in message
news:A6**********************************@microsof t.com...
Hi,

I developed an application which writes errors to the event viewer whenever an exception is thrown (this is done at the application_error
event). Except for the exception message, I also write the stack trace to the event viewer entry.
I was suprised to know that the stack trace includes the physical location of the files in the delvelopment server.
Is this normal???

For example I added an error I found on one of our live servers (gmtest is our development server):
Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection. at System.Data.SqlClient.ConnectionPool.GetConnection (Boolean& isInTransaction) at System.Data.SqlClient.SqlConnectionPoolManager.Get PooledConnection(SqlConnec
tionString options, Boolean& isInTransaction) at System.Data.SqlClient.SqlConnection.Open()
at POSearchPage.Classes.StatusCodesReader.ReadStatuse s() in \\gmtest\wwwroot$\alpha\POSearchPage\Classes\Statu sCodesReader.cs:line 29 at POSearchPage.Classes.StatusCodesReader..ctor(Strin g dsn) in \\gmtest\wwwroot$\alpha\POSearchPage\Classes\Statu sCodesReader.cs:line 18 at POSearchPage.Global.Session_Start(Object sender, EventArgs e) in \\gmtest\wwwroot$\alpha\posearchpage\global.asax.c s:line 32 at System.Web.SessionState.SessionStateModule.Complet eAcquireState()
at System.Web.SessionState.SessionStateModule.BeginAc quireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) at System.Web.AsyncEventExecutionStep.System.Web.Http Application+IExecutionStep
..Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&

completedSynchronously)
Nov 18 '05 #2
This behavior may be related to the pdf files that were accidently added to the bin directory of the live server

----- Kevin Spencer wrote: -----

The stack trace will reference the location of the files when the class was
compiled.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Gal Moshitch" <an*******@discussions.microsoft.com> wrote in message
news:A6**********************************@microsof t.com...
Hi,
I developed an application which writes errors to the event viewer whenever an exception is thrown (this is done at the application_error
event).
Except for the exception message, I also write the stack trace to the event viewer entry. I was suprised to know that the stack trace includes the physical location of the files in the delvelopment server. Is this normal???
For example I added an error I found on one of our live servers (gmtest is our development server): Login failed for user '(null)'. Reason: Not associated with a trusted SQL

Server connection. at System.Data.SqlClient.ConnectionPool.GetConnection (Boolean& isInTransaction) at System.Data.SqlClient.SqlConnectionPoolManager.Get PooledConnection(SqlConnec
tionString options, Boolean& isInTransaction) at System.Data.SqlClient.SqlConnection.Open()
at POSearchPage.Classes.StatusCodesReader.ReadStatuse s() in \\gmtest\wwwroot$\alpha\POSearchPage\Classes\Statu sCodesReader.cs:line 29 at POSearchPage.Classes.StatusCodesReader..ctor(Strin g dsn) in \\gmtest\wwwroot$\alpha\POSearchPage\Classes\Statu sCodesReader.cs:line 18 at POSearchPage.Global.Session_Start(Object sender, EventArgs e) in \\gmtest\wwwroot$\alpha\posearchpage\global.asax.c s:line 32 at System.Web.SessionState.SessionStateModule.Complet eAcquireState()
at System.Web.SessionState.SessionStateModule.BeginAc quireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) at System.Web.AsyncEventExecutionStep.System.Web.Http Application+IExecutionStep
..Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&

completedSynchronously)

Nov 18 '05 #3

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

Similar topics

1
by: | last post by:
Hi all i posted this question yesterday. no answers yet. please do reply if you have any ideas. thanks a lot. Subject: stack frame stack trace can the information from the stack be obtained...
2
by: RC | last post by:
I have implemented an error logging routine that writes out the stack trace (associated with the Exception object). It tells me the exact line(s) of code that lead up to the Exception. Example:...
1
by: newcomer | last post by:
I have traced action in XML. Now I would like to replay that. How could I do that based on this XML trace? I am using soap:tcp between client and server. thanks,
2
by: news.microsoft.com | last post by:
Hi all. If I wanted to write something so that, when an exception was thrown, and the stack unwound, the stack trace was captured with the values of the parameters (instead of just the parameter...
6
by: saju.prabhakaran | last post by:
We have an application developed in c++ and the development environment is visual studio .net 2003. We have added a cpp program to the application which will create a log file containing the trace...
5
by: Mr. SweatyFinger | last post by:
WHY CAN'T THE CLOWN -HOLES WHO WROTE ASP.NET PROVIDE AN ERROR LINE NUMBER??? HONEST TO SH@THOLE PETE Server Error in '/New Folder (7)' Application....
2
by: pavel.orehov | last post by:
Hi, I am using Environment.StackTrace to print the stack trace to the log when I have any exceptions in my application. When I work in development environment I see the line numbers in the...
7
by: David T. Ashley | last post by:
Is there any portable method for identifying the caller of a function, its caller, and so on, at runtime, without using a debugger? Clearly, one can dissect the stack frame and trace it back. ...
2
by: John Kotuby | last post by:
Hi all, I am working on what I "thought" was a Web Project in VS 2005 using VB. I have published the site to an IIS server in our office for testing. When I hit a runtime error I get a basically...
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: 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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
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,...
0
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...
0
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...

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.