473,387 Members | 1,534 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Compilation error when impersonating

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
3 1838
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Ramesh | last post by:
hi, I have created COM when i try to use that instance in C#.net Wep application i am getting following error message. DBUsingCom is my Component name and BusinessObject as a Class name.can...
8
by: Razak | last post by:
Hi, I have a class which basically do Impersonation in my web application. From MS KB sample:- ++++++++++++++++++++code starts Dim impersonationContext As...
4
by: Thomas Scheiderich | last post by:
The following code works fine. It opens file reads the data and then closes. **************************************************************************** **************** Dim objFileInfo As...
2
by: Ross | last post by:
Hi I have an application using asp.net that I am running on my PC. The web form has a text box where you can enter a name for a new Photo category then click on the button. The code is...
14
by: Gianfranco | last post by:
Hi everybody, First of all, sorry for my english if it isn't perfect ;-p I have an error in an asp.net application. I have win2003 server, with iis 6. I'm developping with visual studio...
10
by: robwharram | last post by:
Hi, I'm quite frustrated in the fact that I can't even display a simple "Hello World" message on .Net. I've been through all of the groups and searched all over the place and haven't been able...
23
by: deathtospam | last post by:
A day or two ago, I wrote a quick ASPX page with a CS codebehind using Visual Studio .NET 2005 -- it worked, I saved it and closed the project. Today, I came back to the project, reopened the...
2
by: f0zzyNUE | last post by:
hi everyone, currently we are testing the performance our application (asp.net based CMS) ... for that reason we wrote a "spider" that starts webrequests for all relevant pages which results in...
0
by: Mike | last post by:
When I run my asp.net web app, I keep getting the error message 'Access Denied'. I have all of my web apps running as a particular user id and password which is set in the web.config file but when...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.