System.InvalidOperationException Unable to generate a temporary class error

E

Eric

Hello,

I'm trying to debug a VB.NET dll that calls a web service. I've
customized my References.vb to do some functionality I don't believe
would be possible otherwise.

When I hit the MyBase.New() line in the references.vb file I'm getting
the following message (the name of the cs file changes each time):

System.InvalidOperationException: {"Unable to generate a temporary
class (result=1).
error CS2001: Source file 'C:\WINDOWS\TEMP\ghvplywm.0.cs' could not be
found
error CS2008: No inputs specified

I've tried giving my ASP.NET Machine Account Write access to the
C:\WINDOWS\TEMP directory then full control of this directory, but I'm
still getting the error message. Any idea what to look at next?

-Eric
 
E

Eric

Eric said:
Hello,

I'm trying to debug a VB.NET dll that calls a web service. I've
customized my References.vb to do some functionality I don't believe
would be possible otherwise.

When I hit the MyBase.New() line in the references.vb file I'm getting
the following message (the name of the cs file changes each time):

System.InvalidOperationException: {"Unable to generate a temporary
class (result=1).
error CS2001: Source file 'C:\WINDOWS\TEMP\ghvplywm.0.cs' could not be
found
error CS2008: No inputs specified

I've tried giving my ASP.NET Machine Account Write access to the
C:\WINDOWS\TEMP directory then full control of this directory, but I'm
still getting the error message. Any idea what to look at next?

-Eric

I'm running IIS using my user ID, and I'm an admin on my box, so this
didn't make a whole lot of sense.
From the SysInternals website, I downloaded logonsessions.exe, a
command line utility.

I then ran logonsessions.exe /p > logonsessions.txt and did a search
for process ID 1636, which was the ID of the dllhost.exe process that I
was attached to in the VS 2005 IDE.

It showed that it was running as:

[7] Logon session 00000000:00094e16:
User name: MyMachineName\IWAM_MyMachineName
Auth package: NTLM
Logon type: Batch
Session: 0
Sid: S-1-5-21-1196832610-2522517657-3672563552-1018
Logon time: 12/13/2006 3:24:16 PM
Logon server: MyMachineName
DNS Domain:
UPN:
1636: C:\WINDOWS\system32\dllhost.exe

So I gave MyMachineName\IWAM_MyMachineName read and write permissions
to the C:\WINDOWS\TEMP directory and my error went away.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,954
Messages
2,570,116
Members
46,704
Latest member
BernadineF

Latest Threads

Top