partial class namespace in ASP.NET 2.0

  • Thread starter Thread starter TotySantana
  • Start date Start date
T

TotySantana

Now i am trying to change the namespace for the web page class by putting the page class between namespace myCustomNameSpace {} , but when i do this with a web page class i got the following error

Error 2 'ASP.Default_aspx.FrameworkInitialize()': no suitable method found to override c:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Temporary ASP.NET Files\rgh\34563b4a\da362b9b\cy0xd045.0.cs 193

also why i can't see the output assembly
 
Now i am trying to change the namespace for the web page class by putting the page class between namespace myCustomNameSpace {} , but when i do this with a web page class i got the following error

Error 2 'ASP.Default_aspx.FrameworkInitialize()': no suitable method found to override c:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Temporary ASP.NET Files\rgh\34563b4a\da362b9b\cy0xd045.0.cs 193

also why i can't see the output assembly
You will probably get an answer to your question faster if you post to
the ASP.NET news group.

Regards,

Otis Mukinfus
http://www.otismukinfus.com
http://www.tomchilders.com
 
Hi,

Thanks for posting!

Based on my experience, the current issue is caused by the modification of
compiling mode in ASP.NET 2.0. Since class is partial class, another part
of class is generated dynamically from the aspx page. So, if you want to
add the namespace for the current class. Besides adding the namespace in
the code mode, you also need modify the "Inherits="Default"" to
"Inherits="Namespace.Default"" in the view mode.

After peforming the test, the project is complied well. I hope this will be
helpful!

Regards,

Yuan Ren [MSFT]
Microsoft Online Support
 
Back
Top