471,605 Members | 1,623 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,605 software developers and data experts.

partial class namespace in ASP.NET 2.0

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\Temp orary ASP.NET Files\rgh\34563b4a\da362b9b\cy0xd045.0.cs 193

also why i can't see the output assembly

Feb 19 '06 #1
2 1396
On Sun, 19 Feb 2006 18:34:31 +1030, "TotySantana"
<To*********@community.nospam> wrote:
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\Temp orary 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
Feb 19 '06 #2
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

Feb 20 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Gomaw Beoyr | last post: by
7 posts views Thread by Patrick | last post: by
9 posts views Thread by Fat Elvis | last post: by
reply views Thread by Dr. Peer Griebel | last post: by
4 posts views Thread by Sami Rehman | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by CCCYYYY | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.