Yet Another Forum.NET
»
ASP.NET, C# and SQL
»
ASP.NET Development
»
Compiler Error Message: CS0103: The name 'cyberStore' does not exist in the current context. Please
|
|
 Rank: YAF Forumling
Joined: 5/15/2008 Posts: 3 Location: Bangalore
|
Hi, I am developing this project of mine which is an e-commerce site. I was following the book called "Pro ASO.NET 2.0 E-commerce in C# 2005" by Paul Sarknas.I hv finsihed almost 60% of it. i can view my default.aspx page in browser. But when i add this line: "cyberStore.Operational.Utilities.LogException(ex);" to my Global.asax file under Application_Error event, i get the error:
Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0103: The name 'cyberStore' does not exist in the current context
Source Error:
Line 20: // Code that runs when an unhandled error occurs Line 21: Exception ex = Server.GetLastError(); Line 22: cyberStore.Operational.Utilities.LogException(ex); Line 23: Line 24: } Source File: e:\Documents and Settings\Moon\My Documents\Visual Studio 2005\Projects\cyberStore\Web\Global.asax Line: 22
...............and this error i was able to see only when i changed my customErrors mode="On" to customErrors mode="RemoteOnly" . I have made my custom error page but it does not redirect to ErrorPage.aspx nor does it write the error to the LogFile.txt. Please review the whole point and help me with a solution to get out of this.
In the example in the book, Sarknas refers to LittleItalyVineyard.Operational.Utilities.LogException.
If we break this down, LittleItalyVineyard.Operational is a namespace, while Utilities is a class and LogException is a static method in that class. In my project which is cyberStore.Operational is a namespace and Utilities is a class and LogException is a static method in this class.
|
|
|
 Rank: YAF MVP

Joined: 2/12/2005 Posts: 698 Location: Italy
|
And this relates to YAF how? .....the man in black fled across the desert..........and the gunslinger followed.....
|
|
|
 Rank: YAF Forumling
Joined: 5/15/2008 Posts: 3 Location: Bangalore
|
I guess it's not related. I didn't knw but i am desperate to get a solution to my problem so i posted it here after i saw discussions abt asp.net and c#. So, can i expect any help here?
|
|
|
| Users browsing this topic |
|
Guest
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
YAFPro Theme Created by Jaben Cargman (Tiny Gecko)Powered by YAF 1.9.3 RC1 |
YAF © 2003-2008, Yet Another Forum.NETThis page was generated in 0.072 seconds.