J
Jonathan Wood
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
~/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