By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,991 Members | 1,737 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,991 IT Pros & Developers. It's quick & easy.

Compilation error when impersonating

P: n/a
Hi

I've enable impersonation on my ASP.NET site via the web.config file. When I
access the web site using my credentials all works fine. However, when I set
the userName and password attribute to the same user account that I am using
initially and I again hit the web site, I get the following error:

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: BC31019: Unable to write to output file
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary ASP.NET
Files\scrapanalysis\4f37acf1\90b66942\5e5hjrcw.dll ': Access is denied.

I then remove the userName and password attributes from the Web.config. I
then get the following error:

Access to the path "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary
ASP.NET Files\scrapanalysis\4f37acf1\90b66942\hash.web" is denied.

I've checked my IIS settings and have disable anonymous access and am using
Windows authentication. So the problem appears to be that I can logon as a
user as have ASP.NET impersonate that user, but if I force ASP.NET to
impersonate the same user, I get compilation errors. I am running Win 2003
Server.

Thanks in advance

Al

Nov 19 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Thje account you are using have no right on these directories...

--

"Alistair Lacy" <Al**********@discussions.microsoft.com> a écrit dans le
message de news:26**********************************@microsof t.com...
Hi

I've enable impersonation on my ASP.NET site via the web.config file. When I access the web site using my credentials all works fine. However, when I set the userName and password attribute to the same user account that I am using initially and I again hit the web site, I get the following error:

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: BC31019: Unable to write to output file
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary ASP.NET
Files\scrapanalysis\4f37acf1\90b66942\5e5hjrcw.dll ': Access is denied.

I then remove the userName and password attributes from the Web.config. I
then get the following error:

Access to the path "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary
ASP.NET Files\scrapanalysis\4f37acf1\90b66942\hash.web" is denied.

I've checked my IIS settings and have disable anonymous access and am using Windows authentication. So the problem appears to be that I can logon as a
user as have ASP.NET impersonate that user, but if I force ASP.NET to
impersonate the same user, I get compilation errors. I am running Win 2003
Server.

Thanks in advance

Al

Nov 19 '05 #2

P: n/a
Hi

The account has full rights on the folders... :(

"Patrice" wrote:
Thje account you are using have no right on these directories...

--

"Alistair Lacy" <Al**********@discussions.microsoft.com> a écrit dans le
message de news:26**********************************@microsof t.com...
Hi

I've enable impersonation on my ASP.NET site via the web.config file. When

I
access the web site using my credentials all works fine. However, when I

set
the userName and password attribute to the same user account that I am

using
initially and I again hit the web site, I get the following error:

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: BC31019: Unable to write to output file
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary ASP.NET
Files\scrapanalysis\4f37acf1\90b66942\5e5hjrcw.dll ': Access is denied.

I then remove the userName and password attributes from the Web.config. I
then get the following error:

Access to the path "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary
ASP.NET Files\scrapanalysis\4f37acf1\90b66942\hash.web" is denied.

I've checked my IIS settings and have disable anonymous access and am

using
Windows authentication. So the problem appears to be that I can logon as a
user as have ASP.NET impersonate that user, but if I force ASP.NET to
impersonate the same user, I get compilation errors. I am running Win 2003
Server.

Thanks in advance

Al


Nov 19 '05 #3

P: n/a
Have you tried a tool such as filemon (free tool from www.sysinternals.com)
? It should allow to see easily why it fails...

http://support.microsoft.com/kb/317012/en-us may also help.

There are other causes (antivrus, indexed services) but likely not that if
the problem always show up rather than occasionaly...

--

Patrice

"Alistair Lacy" <Al**********@discussions.microsoft.com> a écrit dans le
message de news:0F**********************************@microsof t.com...
Hi

The account has full rights on the folders... :(

"Patrice" wrote:
Thje account you are using have no right on these directories...

--

"Alistair Lacy" <Al**********@discussions.microsoft.com> a écrit dans le
message de news:26**********************************@microsof t.com...
Hi

I've enable impersonation on my ASP.NET site via the web.config file. When
I
access the web site using my credentials all works fine. However, when
I set
the userName and password attribute to the same user account that I am

using
initially and I again hit the web site, I get the following error:

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: BC31019: Unable to write to output file
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary ASP.NET
Files\scrapanalysis\4f37acf1\90b66942\5e5hjrcw.dll ': Access is denied.

I then remove the userName and password attributes from the

Web.config. I then get the following error:

Access to the path "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary ASP.NET Files\scrapanalysis\4f37acf1\90b66942\hash.web" is denied.

I've checked my IIS settings and have disable anonymous access and am

using
Windows authentication. So the problem appears to be that I can logon as a user as have ASP.NET impersonate that user, but if I force ASP.NET to
impersonate the same user, I get compilation errors. I am running Win 2003 Server.

Thanks in advance

Al


Nov 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.