469,623 Members | 1,003 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,623 developers. It's quick & easy.

ASP.NET 1.1: Unable to generate a temporary class (result=1). error CS0011

Hello people.

im back to the forum with another problem:
Unable to generate a temporary class (result=1). error CS0011

It seems this error appeared after installing ServicePack 1 for .net 1.1, and
after some windows updates some people here did to the server. Anyway
it seems to happen when i try to consume a webservice. i really have absolutley no idea whats wrong with this thing. stupid updates...

i did find a similar post on this forum in the past. but the post's date was sometime on 2005, the thing is there was no answer, so here i am 2 years later hoping someone knows how to fix this now.

microsoft seems to know the issue, but did not give any real fix to it. they talk about some hotfix, but you have to contact them. and im kinda faraway in central america so...no real microsoft support around here.

any help is welcome, thanx!
Nov 1 '07 #1
6 2131
Plater
7,872 Expert 4TB
Hmm.
Do you also get this?
Referenced class '<page name>' has base class or interface
'System.Web.UI.Page' defined in an assembly that is not referenced. You must
add a reference to assembly 'System.Web'. error CS0011: Referenced class
'<page name>' has base class or interface 'System.Web.SessionState.IRequiresSessionState' defined in an assembly that
is not referenced. You must add a reference to assembly 'System.Web'.
Nov 1 '07 #2
Hmm.
Do you also get this?
Yup thats it man, if you know how to fix this...youll be my new god dude...im in real trouble, since this issue appeared in about three apps, and its a real chaos.
Nov 1 '07 #3
Plater
7,872 Expert 4TB
Open up the project and add the references they mention?
And if they're there already, remove them and re-add them?

I would guess that it's looking for a hard reference to say "webUI1.0.dll" and you now have "webUI1.1.dll" and it refuses to use it until you add a reference to the new "file"

Hopefully it's pretty easy.
Nov 1 '07 #4
Open up the project and add the references they mention?
And if they're there already, remove them and re-add them?

I would guess that it's looking for a hard reference to say "webUI1.0.dll" and you now have "webUI1.1.dll" and it refuses to use it until you add a reference to the new "file"

Hopefully it's pretty easy.
ok, i tried that.
the thing is everything im doing is on an aspx. so what i do is:

aspx:
Expand|Select|Wrap|Line Numbers
  1. <%@ Import Namespace="System.Web.Services"%>
how do i know to wich "System.Web" is it pointing to(1.0 or 1.1) ?? how can i change this.

one other thing the reason im working on an aspx(no code behind), is that i have no code to this applications(people here expect me to make miracles), so what i do is kind of workaround things, by doing what i need on a seperate aspx file with server code in it. i dont know if working this way(aspx file not belonging to the solution) may be causing this problem...

it was working fine....until the updates were done...
Nov 1 '07 #5
Plater
7,872 Expert 4TB
The project itself should contain a set of references, check those?
Nov 1 '07 #6
The project itself should contain a set of references, check those?
I was able to obtain the applications code....fixed the problem, thanks for your time plater.
Nov 2 '07 #7

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by James Proctor | last post: by
16 posts views Thread by Serdar Kalaycý | last post: by
1 post views Thread by A Traveler | last post: by
1 post views Thread by James Proctor | last post: by
1 post views Thread by Martin Plechsmid | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.