Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
How to Debug ASP.NET Errors?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jonathan Wood  
View profile  
 More options Nov 9, 2:00 am
Newsgroups: microsoft.public.dotnet.framework.aspnet
From: "Jonathan Wood" <jw...@softcircuits.com>
Date: Mon, 9 Nov 2009 00:00:01 -0700
Local: Mon, Nov 9 2009 2:00 am
Subject: How to Debug ASP.NET Errors?
I have an ASP.NET website and I just added a new, stand-alone page at
~/Test/Test.aspx.

When I rebuild, I get eight errors:

c:\...\App_Web_6eyyotrv.0.cs(225,16): error CS1518: Expected class,
delegate, enum, interface, or struct
c:\...\App_Web_6eyyotrv.0.cs(226,20): error CS1001: Identifier expected
c:\...\App_Web_6eyyotrv.0.cs(226,22): error CS1518: Expected class,
delegate, enum, interface, or struct
c:\...\App_Web_6eyyotrv.0.cs(230,36): error CS1518: Expected class,
delegate, enum, interface, or struct
c:\...\App_Web_6eyyotrv.0.cs(230,43): error CS1001: Identifier expected
c:\...\App_Web_6eyyotrv.0.cs(231,30): error CS1001: Identifier expected
c:\...\App_Web_6eyyotrv.0.cs(235,13): error CS0116: A namespace does not
directly contain members such as fields or methods
c:\...\App_Web_6eyyotrv.0.cs(236,9): error CS1022: Type or namespace
definition, or end-of-file expected

About all seem related to the following block of code:

        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        public test_test_aspx() {
            string[] dependencies;
            ((global::System.Web.UI.Page)(this)).AppRelativeVirtualPath =
"~/Test/Test.aspx";
            if ((global::ASP.test_test_aspx.@__initialized == false)) {
                global::ASP.test_test_aspx.@__stringResource =
this.ReadStringResource();
                dependencies = new string[1];
                dependencies[0] = "~/Test/Test.aspx";
                global::ASP.test_test_aspx.@__fileDependencies =
this.GetWrappedFileDependencies(dependencies);
                global::ASP.test_test_aspx.@__initialized = true;
            }
            this.Server.ScriptTimeout = 30000000;
        }

Nice. It doesn't tell me any error with my code, but I get a bunch of errors
with code that was apparently generated automatically. Unfortunately, I
don't know enough about Microsoft's code to fix it for them. I've examined
my source file but don't see anything wrong with it. My source file has some
server-side scripting that is in the same file as the HTML.

I have no idea how to proceed on this.

Any tips?

Jonathan


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alexey Smirnov  
View profile  
 More options Nov 9, 8:17 am
Newsgroups: microsoft.public.dotnet.framework.aspnet
From: Alexey Smirnov <alexey.smir...@gmail.com>
Date: Mon, 9 Nov 2009 05:17:29 -0800 (PST)
Local: Mon, Nov 9 2009 8:17 am
Subject: Re: How to Debug ASP.NET Errors?
On Nov 9, 8:00 am, "Jonathan Wood" <jw...@softcircuits.com> wrote:

It looks like you did not define any class. Please read some tutorials
about ASP.NET before you start copying and pasting code. If you use
Visual Studio, try to create new Web Form and see what classes and
methods it will create.

You page class must have following

public partial class test_test: System.Web.UI.Page
{

protected void Page_Load(object sender, EventArgs e)
{
AppRelativeVirtualPath = "~/Test/Test.aspx";
...


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jonathan Wood  
View profile  
 More options Nov 9, 10:41 am
Newsgroups: microsoft.public.dotnet.framework.aspnet
From: "Jonathan Wood" <jw...@softcircuits.com>
Date: Mon, 9 Nov 2009 08:41:45 -0700
Local: Mon, Nov 9 2009 10:41 am
Subject: Re: How to Debug ASP.NET Errors?

"Alexey Smirnov" <alexey.smir...@gmail.com> wrote:
> You page class must have following

> public partial class test_test: System.Web.UI.Page
> {

> protected void Page_Load(object sender, EventArgs e)
> {
> AppRelativeVirtualPath = "~/Test/Test.aspx";
> ...
> }

This is incorrect. When everything is placed in a single file, you do not
need to define the class--in fact you cannot! I have countless pages created
this way.

I am not in need of basic ASP.NET tutorial--I've built dozens of sites. I'm
in need of advanced methods of troubleshooting some of ASP.NET's quirks. I
accept these errors may be the result of my error somewhere, but ASP.NET
should be able to do a little better job of telling me what that error is.

Jonathan


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jonathan Wood  
View profile  
 More options Nov 9, 10:45 am
Newsgroups: microsoft.public.dotnet.framework.aspnet
From: "Jonathan Wood" <jw...@softcircuits.com>
Date: Mon, 9 Nov 2009 08:45:10 -0700
Local: Mon, Nov 9 2009 10:45 am
Subject: Re: How to Debug ASP.NET Errors?
I managed to resolve this. My form page had an extra '}' in the client-side
script area yet the page didn't flag any errors.

"Jonathan Wood" <jw...@softcircuits.com> wrote in message

news:uHvuFpQYKHA.3504@TK2MSFTNGP05.phx.gbl...

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alexey Smirnov  
View profile  
 More options Nov 9, 11:06 am
Newsgroups: microsoft.public.dotnet.framework.aspnet
From: Alexey Smirnov <alexey.smir...@gmail.com>
Date: Mon, 9 Nov 2009 08:06:34 -0800 (PST)
Local: Mon, Nov 9 2009 11:06 am
Subject: Re: How to Debug ASP.NET Errors?
On Nov 9, 4:41 pm, "Jonathan Wood" <jw...@softcircuits.com> wrote:

When you said "I don't know enough about Microsoft's code" it sounds
like you were new in this subject ;-) especially because the error
message was more or less clear and correct. Anyway, glad that you
fixed it now.

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gregory A. Beamer  
View profile  
 More options Nov 11, 10:18 am
Newsgroups: microsoft.public.dotnet.framework.aspnet
From: "Gregory A. Beamer" <NoSpamMgbwo...@comcast.netNoSpamM>
Date: Wed, 11 Nov 2009 07:18:41 -0800
Local: Wed, Nov 11 2009 10:18 am
Subject: Re: How to Debug ASP.NET Errors?
"Jonathan Wood" <jw...@softcircuits.com> wrote in
news:ug8GjOVYKHA.4068@TK2MSFTNGP06.phx.gbl:

> I managed to resolve this. My form page had an extra '}' in the
> client-side script area yet the page didn't flag any errors.

This is a difficult area, however, as the compiler is concerned with
either

a) script blocks with runat=server
b) code files

Other bits in the tagged files are not the major concern. This is
changing, over time, as javaScript (or ECMAScript) is becomming more and
more popular as people create object libraries in JavaScript (jQuery,
etc). And with AJAX becomming more prevalent, you will see even more.

So the IDE is slowly catching up, but tooling always lags behind
technology. It is unfortunate, perhaps, but the bits have to work first
before the devs can understand how the tool should react.

Peace and Grace,
Greg

--
Vote for Miranda's Christmas Story
http://tinyurl.com/mirandabelieve

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
|      Think outside the box!             |
*******************************************


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google