2.0: probably a bug in .NET? - MIMStock.zip (0/1)

R

RAM

Could anyone explain me the problem in simple application attached?
(undexpected exception)
Thank you vary much!
/RAM/
 
M

Mark Rae

Could anyone explain me the problem in simple application attached?

Please don't put attachments in your posts - place your code on a server
somewhere and provide a link.

Most people's newsreaders will simply strip off binaries in text groups
anyway - mine certainly does...
 
K

Karl Seguin [MVP]

I totally agree with Mark,
Don't add attachments, just post a zip up on the web for us to download.

1 - you don't need to cast Server.GetLastError() to Exception, it returns an
exception.
2 - Look at the inner exception for more meaningful information
3 - You can't use an asp:content control without using a master page.

For #2, this should help:
Exception ex;
for (ex = Server.GetLastError(); ex.InnerException != null; ex =
ex.InnerException);


Karl
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,438
Messages
2,571,699
Members
48,796
Latest member
Greg L.
Top