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

Weird stack trace

Hello,

I have uploaded my website from VS to my server and
unfortunaly there is an error when I visit the website.
However the stack trace of the error still points to my
local directory. It says something like this:

NNTP.readpost.BindData() in E:\NNTP\default.aspx.vb:44
NNTP.readpost.Page_Load(Object sender, EventArgs e) in
E:\NNTP\default.aspx.vb:34

Why is this still pointing to my local path?

Nov 19 '05 #1
8 2332
Did you build your soltuion in debug mode before releasing your site? Did
you include the .pdb file when you deployed?

Don't.

bill
"Vishal" <an*******@discussions.microsoft.com> wrote in message
news:03****************************@phx.gbl...
Hello,

I have uploaded my website from VS to my server and
unfortunaly there is an error when I visit the website.
However the stack trace of the error still points to my
local directory. It says something like this:

NNTP.readpost.BindData() in E:\NNTP\default.aspx.vb:44
NNTP.readpost.Page_Load(Object sender, EventArgs e) in
E:\NNTP\default.aspx.vb:34

Why is this still pointing to my local path?

Nov 19 '05 #2
Are you using CodeBehind?
"Vishal" wrote:
Hello,

I have uploaded my website from VS to my server and
unfortunaly there is an error when I visit the website.
However the stack trace of the error still points to my
local directory. It says something like this:

NNTP.readpost.BindData() in E:\NNTP\default.aspx.vb:44
NNTP.readpost.Page_Load(Object sender, EventArgs e) in
E:\NNTP\default.aspx.vb:34

Why is this still pointing to my local path?

Nov 19 '05 #3
This is because you compiled the code from your local drive. If you
distribute your website, you no longer need the vb files, because they're
contained within the DLL for the site... It doesn't reference into this DLL
because this would be useless to the developer.
"Vishal" <an*******@discussions.microsoft.com> wrote in message
news:03****************************@phx.gbl...
Hello,

I have uploaded my website from VS to my server and
unfortunaly there is an error when I visit the website.
However the stack trace of the error still points to my
local directory. It says something like this:

NNTP.readpost.BindData() in E:\NNTP\default.aspx.vb:44
NNTP.readpost.Page_Load(Object sender, EventArgs e) in
E:\NNTP\default.aspx.vb:34

Why is this still pointing to my local path?

Nov 19 '05 #4
Yes, I used debug mode. I selected "copy only required
files to run the application". I dunno if it has deployed
the pdf file or not. What I am supposed to do?

-----Original Message-----
Did you build your soltuion in debug mode before releasing your site? Didyou include the .pdb file when you deployed?

Don't.

bill
"Vishal" <an*******@discussions.microsoft.com> wrote in messagenews:03****************************@phx.gbl...
Hello,

I have uploaded my website from VS to my server and
unfortunaly there is an error when I visit the website.
However the stack trace of the error still points to my
local directory. It says something like this:

NNTP.readpost.BindData() in E:\NNTP\default.aspx.vb:44
NNTP.readpost.Page_Load(Object sender, EventArgs e) in E:\NNTP\default.aspx.vb:34

Why is this still pointing to my local path?

.

Nov 19 '05 #5
Yes

-----Original Message-----
Are you using CodeBehind?
"Vishal" wrote:
Hello,

I have uploaded my website from VS to my server and
unfortunaly there is an error when I visit the website.
However the stack trace of the error still points to my
local directory. It says something like this:

NNTP.readpost.BindData() in E:\NNTP\default.aspx.vb:44
NNTP.readpost.Page_Load(Object sender, EventArgs e) in E:\NNTP\default.aspx.vb:34

Why is this still pointing to my local path?

.

Nov 19 '05 #6
Well, if I dont need the files why doesnt VS.NET copy
these files to my sevrer? I seelcted the option to "copy
only the required files to run the application". What I am
supposed to do?

-----Original Message-----
This is because you compiled the code from your local drive. If youdistribute your website, you no longer need the vb files, because they'recontained within the DLL for the site... It doesn't reference into this DLLbecause this would be useless to the developer.
"Vishal" <an*******@discussions.microsoft.com> wrote in messagenews:03****************************@phx.gbl...
Hello,

I have uploaded my website from VS to my server and
unfortunaly there is an error when I visit the website.
However the stack trace of the error still points to my
local directory. It says something like this:

NNTP.readpost.BindData() in E:\NNTP\default.aspx.vb:44
NNTP.readpost.Page_Load(Object sender, EventArgs e) in
E:\NNTP\default.aspx.vb:34

Why is this still pointing to my local path?

.

Nov 19 '05 #7
where did you do this?
how are you distributing the web site?

If you create a web setup probject, there's the option to include, the
source, but you don't need it.

"Vishal" <an*******@discussions.microsoft.com> wrote in message
news:03****************************@phx.gbl...
Well, if I dont need the files why doesnt VS.NET copy
these files to my sevrer? I seelcted the option to "copy
only the required files to run the application". What I am
supposed to do?

-----Original Message-----
This is because you compiled the code from your local

drive. If you
distribute your website, you no longer need the vb files,

because they're
contained within the DLL for the site... It doesn't

reference into this DLL
because this would be useless to the developer.
"Vishal" <an*******@discussions.microsoft.com> wrote in

message
news:03****************************@phx.gbl...
Hello,

I have uploaded my website from VS to my server and
unfortunaly there is an error when I visit the website.
However the stack trace of the error still points to my
local directory. It says something like this:

NNTP.readpost.BindData() in E:\NNTP\default.aspx.vb:44
NNTP.readpost.Page_Load(Object sender, EventArgs e) in
E:\NNTP\default.aspx.vb:34

Why is this still pointing to my local path?

.

Nov 19 '05 #8
When the dll is built, it keeps record in the .dll of the file locations
used to create the dll. If you do not want to see this, you will need to
turn off custom errors tag in the web.config file. It should be defaulted
RemoteOnly which means you only see the stack trace when on the machine
itself.

The pdb file has all the debugging symbols. It is showing you actual source
code, or just the stack trace where the exception occurred.

You deployed it correctly, but if you are moving to your production server
with your code, you should switch over to Release mode before building your
solution and change the compiliation tag in your web.config. The Release
dll code will run slightly faster than your debug mode code.

bill

"Vishal" <an*******@discussions.microsoft.com> wrote in message
news:19****************************@phx.gbl...
Yes, I used debug mode. I selected "copy only required
files to run the application". I dunno if it has deployed
the pdf file or not. What I am supposed to do?

-----Original Message-----
Did you build your soltuion in debug mode before

releasing your site? Did
you include the .pdb file when you deployed?

Don't.

bill
"Vishal" <an*******@discussions.microsoft.com> wrote in

message
news:03****************************@phx.gbl...
Hello,

I have uploaded my website from VS to my server and
unfortunaly there is an error when I visit the website.
However the stack trace of the error still points to my
local directory. It says something like this:

NNTP.readpost.BindData() in E:\NNTP\default.aspx.vb:44
NNTP.readpost.Page_Load(Object sender, EventArgs e) in E:\NNTP\default.aspx.vb:34

Why is this still pointing to my local path?

.

Nov 19 '05 #9

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

Similar topics

7
by: Andy Fish | last post by:
Hi, in my c# code I have something like this: try { ... } catch (Exception ex) { ... throw ex; }
3
by: Mike Schilling | last post by:
Instances of SystemOutOfMemoryException do not contain a stack trace. Easy test to verify this: class OOM { public static void Main() { try { Object arr = new Object; } catch...
2
by: Christian Kreimer | last post by:
Hi I created an C# windows forms application that holds a user control. The user control itself is an editor for geographical information systems and is based on an ActiveX Library for providing...
0
by: Mike Schilling | last post by:
I have some code that calls methods reflectively (the method called and its parameters are determined by text received in a SOAP message, and I construct a map from strings to MethodInfos). The...
3
by: Jeremy | last post by:
While working with ASP.NET I've sometimes encountered errors in my applications, but I've always known exactly why I'm getting the error and have been able to fix it. So I've never needed to...
1
by: VB Programmer | last post by:
I went to a few ASP.NET websites today. For some aspx pages I get this error (too consistently, which is why I think it's my PC): Server Error in '/CuteEditorTest' Application....
2
by: Lasse Vågsæther Karlsen | last post by:
If I got the following code: try { // something that might throw an exception } catch (Exception ex) { // Log contents of ex here throw;
2
by: Flack | last post by:
I have a DataGrid and a DataTable. When my form loads I create the DataTable with the appropriate columns and use it for the DataGrids.DataSource. Later on in my app, I alter the DataTable: ...
1
by: Tim_Mac | last post by:
hi, i am encountering a sporadic exception using crystal reports that is causing me grief, I can't 'handle' it... my code is loading a typed report, and loading a DataSet to it. unfortunately...
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...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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.