I've just installed SP1 for Visual Studio 2008, and on my ASP .NET 2 project I now get this error where before it used to compile:
Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl).
I've tried Google but none of the solutions relate to me as it's just a standard ASP .NET page. Infact every time I compile the error crops up on a different page (but only one error is ever shown in the list).
It's just a default page. e.g. Add New Item => WebForm
creates Default.aspx .. nothing special here, all standard stuff. Thank god I have VMWare or this SP1 would have screwed me big time; there was no way to uninstall it in the list of installed programs.
Now, create a new web project and target 2.0.. and you should have no problems; well, at least not with that part.. getting it to debug using NTLM is a different matter.
I'm disappointed with this release. The bugs, among other things and the fact that it's called SP1 and not 3.6 especially considering all the
new things added. What ever happened to SP's are only for fixes?
SP1 can be uninstalled from the list of updates (in XP, click 'Show Updates' checkbox in Add/Remove Programs, on Vista, click "View Installed Updates" in Programs and features.
The scenario is very basic and it obviously works for many people. Looks like incorrect framework install to me. Perhaps checking version numbers on .NET 3.5 dlls and compiler version may help.
I'm trying to figure out your NTLM debugging problem on my lab win2k3 box, but could not repro. Could you give me some details on your repro? Thanks!
My repro:
1. create a localhost IIS website, like http://localhost/website1 (.net framework 3.5 or .net2.0 website)
2. change the site virdir security as "Integrated Windows authentication" only.
3. F5 the VS website shows no problem, hitting breakpoing shows no problem
Thanks and Best Regards
Xinyang Qiu, Azure Web Platform and Tools team, Microsoft
I'll wait online. Thanks! BTW, If the client is SP1, and you are doing remote debugging to a server which is not working somehow, I will try to upgrade the server .net framework and use the remote debugger from sp1 release as well (by copying the common7\ide\remote
debugger\x86 binaries to server)...
Thanks and Best Regards
Xinyang Qiu, Azure Web Platform and Tools team, Microsoft
I'm merely changing the startup option to use a custom server which is just a host entry to point to local. Nothing fancy.. but the website is very involved.
weiranz
Member
44 Points
18 Posts
Compilation error after installing Visual Studio 2008 SP1 (Make sure that the class defined in th...
Aug 12, 2008 03:24 PM|LINK
Hi Guys,
I've just installed SP1 for Visual Studio 2008, and on my ASP .NET 2 project I now get this error where before it used to compile:
I've tried Google but none of the solutions relate to me as it's just a standard ASP .NET page. Infact every time I compile the error crops up on a different page (but only one error is ever shown in the list).
Any ideas?
Thanks in advance,
Weiran.
Kodo
Member
263 Points
58 Posts
Re: Compilation error after installing Visual Studio 2008 SP1 (Make sure that the class defined i...
Aug 12, 2008 04:02 PM|LINK
Same problem here. Only happens in web sites targeting 3.5. The work around is to put the CodeFileBaseClass attribute in your page directive.
ex: CodeFileBaseClass="System.Web.UI.Page"
Now if they would fix not being able to run the debugger under IIS 6, I would be a happy camper.
Mikhail Arkh...
All-Star
33139 Points
6083 Posts
Microsoft
Re: Compilation error after installing Visual Studio 2008 SP1 (Make sure that the class defined i...
Aug 12, 2008 06:06 PM|LINK
How does page directive look at the page? Does it have CodeFile= attribute or CodeBehind attribute?
------------------------------------------------------------
This posting is provided "AS IS" with no warranties, and confers no rights.
Kodo
Member
263 Points
58 Posts
Re: Compilation error after installing Visual Studio 2008 SP1 (Make sure that the class defined i...
Aug 12, 2008 06:17 PM|LINK
It's just a default page. e.g. Add New Item => WebForm
creates Default.aspx .. nothing special here, all standard stuff. Thank god I have VMWare or this SP1 would have screwed me big time; there was no way to uninstall it in the list of installed programs.
Now, create a new web project and target 2.0.. and you should have no problems; well, at least not with that part.. getting it to debug using NTLM is a different matter.
I'm disappointed with this release. The bugs, among other things and the fact that it's called SP1 and not 3.6 especially considering all the new things added. What ever happened to SP's are only for fixes?
Mikhail Arkh...
All-Star
33139 Points
6083 Posts
Microsoft
Re: Compilation error after installing Visual Studio 2008 SP1 (Make sure that the class defined i...
Aug 12, 2008 06:28 PM|LINK
SP1 can be uninstalled from the list of updates (in XP, click 'Show Updates' checkbox in Add/Remove Programs, on Vista, click "View Installed Updates" in Programs and features.
------------------------------------------------------------
This posting is provided "AS IS" with no warranties, and confers no rights.
Mikhail Arkh...
All-Star
33139 Points
6083 Posts
Microsoft
Re: Compilation error after installing Visual Studio 2008 SP1 (Make sure that the class defined i...
Aug 12, 2008 06:30 PM|LINK
The scenario is very basic and it obviously works for many people. Looks like incorrect framework install to me. Perhaps checking version numbers on .NET 3.5 dlls and compiler version may help.
------------------------------------------------------------
This posting is provided "AS IS" with no warranties, and confers no rights.
xinqiu
Member
476 Points
116 Posts
Microsoft
Re: Compilation error after installing Visual Studio 2008 SP1 (Make sure that the class defined i...
Aug 12, 2008 06:32 PM|LINK
Kodo,
I'm trying to figure out your NTLM debugging problem on my lab win2k3 box, but could not repro. Could you give me some details on your repro? Thanks!
My repro:
1. create a localhost IIS website, like http://localhost/website1 (.net framework 3.5 or .net2.0 website)
2. change the site virdir security as "Integrated Windows authentication" only.
3. F5 the VS website shows no problem, hitting breakpoing shows no problem
Xinyang Qiu, Azure Web Platform and Tools team, Microsoft
Kodo
Member
263 Points
58 Posts
Re: Compilation error after installing Visual Studio 2008 SP1 (Make sure that the class defined i...
Aug 12, 2008 06:37 PM|LINK
if you allow me a short while I will screen cast it for you. I do want to try something else first.. with my SSL (forgot about that part)
xinqiu
Member
476 Points
116 Posts
Microsoft
Re: Compilation error after installing Visual Studio 2008 SP1 (Make sure that the class defined i...
Aug 12, 2008 06:46 PM|LINK
Xinyang Qiu, Azure Web Platform and Tools team, Microsoft
Kodo
Member
263 Points
58 Posts
Re: Compilation error after installing Visual Studio 2008 SP1 (Make sure that the class defined i...
Aug 12, 2008 06:57 PM|LINK
I'm merely changing the startup option to use a custom server which is just a host entry to point to local. Nothing fancy.. but the website is very involved.