humantag
asked on
ASP.NET : Compiler Error Message: BC30138:
I have been pulling my hair out trying to figure this out.....when I try to create a simple ASP.NET Webform I get the following errors( see below). The location of the temp file its trying to create is extremely odd to me but then again I don't know that much about the ASP.NET server engine and how it works.
I have played around with the permission and I have already checked the machines system variables (TMP & TEMP) and they are both pointing to '%SystemRoot%\TEMP' as they should....help please!
Server Error in '/' Application.
-------------------------- ---------- ---------- ---------- ---------- ---------- ----
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30138: Unable to create temp file in path 'c:\windows\system32\inets rv\%SYSTE~ 1\TEMP\': The directory name is invalid.
Source Error:
[No relevant source lines]
Source File: vbc : Line: 0
Show Detailed Compiler Output:
c:\windows\system32\inetsr v> "C:\WINDOWS\Microsoft.NET\ Framework\ v2.0.50727 \vbc.exe" /t:library /utf8output /R:"C:\WINDOWS\assembly\GA C_MSIL\Sys tem.Web.Mo bile\2.0.0 .0__b03f5f 7f11d50a3a \System.We b.Mobile.d ll" /R:"C:\WINDOWS\assembly\GA C_MSIL\Sys tem\2.0.0. 0__b77a5c5 61934e089\ System.dll " /R:"C:\WINDOWS\assembly\GA C_MSIL\Sys tem.Drawin g\2.0.0.0_ _b03f5f7f1 1d50a3a\Sy stem.Drawi ng.dll" /R:"C:\WINDOWS\assembly\GA C_32\Syste m.Web\2.0. 0.0__b03f5 f7f11d50a3 a\System.W eb.dll" /R:"C:\WINDOWS\assembly\GA C_32\Syste m.Enterpri seServices \2.0.0.0__ b03f5f7f11 d50a3a\Sys tem.Enterp riseServic es.dll" /R:"C:\WINDOWS\assembly\GA C_MSIL\Sys tem.Xml\2. 0.0.0__b77 a5c561934e 089\System .Xml.dll" /R:"C:\WINDOWS\assembly\GA C_MSIL\Sys tem.Web.Se rvices\2.0 .0.0__b03f 5f7f11d50a 3a\System. Web.Servic es.dll" /R:"C:\WINDOWS\assembly\GA C_32\Syste m.Data\2.0 .0.0__b77a 5c561934e0 89\System. Data.dll" /R:"C:\WINDOWS\assembly\GA C_MSIL\Sys tem.Config uration\2. 0.0.0__b03 f5f7f11d50 a3a\System .Configura tion.dll" /out:"C:\WINDOWS\Microsoft .NET\Frame work\v2.0. 50727\Temp orary ASP.NET Files\root\5b70cf5c\ff57aa f0\App_Web _list.aspx .3a1a604e. 6bbvmcnd.d ll" /debug- /define:_MYTYPE=\"Web\" /imports:Microsoft.VisualB asic,Syste m,System.C ollections ,System.Co llections. Specialize d,System.C onfigurati on,System. Text,Syste m.Text.Reg ularExpres sions,Syst em.Web,Sys tem.Web.Ca ching,Syst em.Web.Ses sionState, System.Web .Security, System.Web .Profile,S ystem.Web. UI,System. Web.UI.Web Controls,S ystem.Web. UI.WebCont rols.WebPa rts,System .Web.UI.Ht mlControls "C:\WINDOWS\Microsoft.NET\ Framework\ v2.0.50727 \Temporary ASP.NET Files\root\5b70cf5c\ff57aa f0\App_Web _list.aspx .3a1a604e. 6bbvmcnd.0 .vb" "C:\WINDOWS\Microsoft.NET\ Framework\ v2.0.50727 \Temporary ASP.NET Files\root\5b70cf5c\ff57aa f0\App_Web _list.aspx .3a1a604e. 6bbvmcnd.1 .vb"
Microsoft (R) Visual Basic Compiler version 8.0.50727.42
for Microsoft (R) .NET Framework version 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
vbc : error BC30138: Unable to create temp file in path 'c:\windows\system32\inets rv\%SYSTE~ 1\TEMP\': The directory name is invalid.
-------------------------- ---------- ---------- ---------- ---------- ---------- ----
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
I have played around with the permission and I have already checked the machines system variables (TMP & TEMP) and they are both pointing to '%SystemRoot%\TEMP' as they should....help please!
Server Error in '/' Application.
--------------------------
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30138: Unable to create temp file in path 'c:\windows\system32\inets
Source Error:
[No relevant source lines]
Source File: vbc : Line: 0
Show Detailed Compiler Output:
c:\windows\system32\inetsr
Microsoft (R) Visual Basic Compiler version 8.0.50727.42
for Microsoft (R) .NET Framework version 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
vbc : error BC30138: Unable to create temp file in path 'c:\windows\system32\inets
--------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
ASKER
are you talking about the machine.config file at: 'C:\WINDOWS\Microsoft.NET\ Framework\ v2.0.50727 \CONFIG'?
and if so can you give me a step by step on how to sync the two passwords that you are referncing...I am sorry but I dont understand.
Thanks for you help
and if so can you give me a step by step on how to sync the two passwords that you are referncing...I am sorry but I dont understand.
Thanks for you help
Check your environment variable for TEMP under the OS.
Start --> Run --> command
at the command prompt, type "set"
look for temp, it should look like one of these:
TEMP = C:\temp
TEMP = C:\%systemroot%\temp
TEMP = C:\WINDOWS\temp
TEMP = C:\WINNT\temp
depending on your OS. Grant everyone modify NTFS rights to the folder specified.
Also, the path may be invalid. From the root of C, type "cd %TEMP%" and see where it goes. If you get an error, that's your problem.
Best of luck,
harperse
Start --> Run --> command
at the command prompt, type "set"
look for temp, it should look like one of these:
TEMP = C:\temp
TEMP = C:\%systemroot%\temp
TEMP = C:\WINDOWS\temp
TEMP = C:\WINNT\temp
depending on your OS. Grant everyone modify NTFS rights to the folder specified.
Also, the path may be invalid. From the root of C, type "cd %TEMP%" and see where it goes. If you get an error, that's your problem.
Best of luck,
harperse
ASKER
hmmm....that it appears that when I run the 'set' command and 'cd %temp%' as you suggessted it is pointing to the temp directory within whichever profile I am currently logged in as (via terminal services:)
logged in as user1: 'C:\DOCUME~1\user1\LOCALS~ 1\Temp\1>'
logged in as user2: 'C:\DOCUME~1\user2\LOCALS~ 1\Temp\1>'
I am not sure if this is the actual directory which ASP.NET is attempting to write to....
logged in as user1: 'C:\DOCUME~1\user1\LOCALS~
logged in as user2: 'C:\DOCUME~1\user2\LOCALS~
I am not sure if this is the actual directory which ASP.NET is attempting to write to....
ASKER
Hey folks.....it took me a little while but I figured it out...or at least a workaround. Apparently it had to do with the system temp values - or rather the location of the temp directory.
1. I created a new 'TEMP' directory on my 'D:' drive
2. Changed the systems TEMP and TMP settings to point to the new directory that I created
TEMP = D:\TEMP
TMP = D:\TEMP
3. Gave the NETWORK SERVICE account full access to the new TEMP directory 'D:\TEMP'
Works like a charm now.
If anyone else runs into this problem
1. I created a new 'TEMP' directory on my 'D:' drive
2. Changed the systems TEMP and TMP settings to point to the new directory that I created
TEMP = D:\TEMP
TMP = D:\TEMP
3. Gave the NETWORK SERVICE account full access to the new TEMP directory 'D:\TEMP'
Works like a charm now.
If anyone else runs into this problem
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You can do this by checking what is set in the machine.config file and then setting that password for the ASPNET account in Local Users and Groups.
If these passwords are out of sync it can cause this issue.
Dave Dietz