473,386 Members | 1,997 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,386 software developers and data experts.

C# WEB: Identity Impersonation Issues

7
Hey all, I hope someone out there has got a solution to this rather irritating problem :)

Ok here it goes...
I have a Web App that does 2 things. It uploads word-document files to a folder on my server, scans them with a virus-scanner and then using the office dll's I extract the contents of the document and put it in my database to be able to search through it.

The Virus-Scan part works just great, but the Word thing troubles me a bit. I have tried without identity impersonation, with ASPNET and NETWORK SERVICES have full rights to the folder I store the file in, but I keep getting an access denied error.

Then I tried with identity impersonation on, but that resulted in a login box to appear when I try to access the file with Word, eventho the IUSR (the specific one for the server, in this case IUSR_SAM02) had full rights.
Expand|Select|Wrap|Line Numbers
  1. <identity impersonate="true"/>
Lastly I tried impersonating a specific user on the server but that gave me an error in
Expand|Select|Wrap|Line Numbers
  1. Access to the path "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\root\205f48d4\29cf1a87\hash.web" is denied.
Expand|Select|Wrap|Line Numbers
  1. <identity impersonate="true" userName="testsamdk" password="*********"/>
Anyone that has an idea as to how to overcome this problem? As far as I know if identity impersonation is run the corresponding IUSR should just be allowed full righst to the folders in question right?
Jan 21 '08 #1
0 1058

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

Similar topics

6
by: moonriver | last post by:
I write a program accessing files in network drive o:. It is doable as a standalone application. However, if it is running under windows service, the following exception will appear: 13/07/2004...
0
by: William F. Robertson, Jr. | last post by:
On page: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/ht ml/thcmch19.asp Microsoft discusses the drawbacks of impersonating the original caller. I am especially...
4
by: Dan Bart | last post by:
I am using an application which is a modification of IBuySpy Portal. It is using Forms authentication. Users login and their name is added to Context Then I use: ...
5
by: AAguiar | last post by:
I have an asp.net project where the code behind the aspx page calls a c# class which makes calls to a managed static C++ class. The C# class works fine when the asp net worker process starts, when...
4
by: Alvaro Pereira | last post by:
I have a ASP.NET project that prints a report to a NETWORK- PRINTER. I have impersonate=true in my web.config, but all reports are printed under ASPNET user (the one that is setted in...
1
by: nobody101 | last post by:
I have a web service configured with Anonymous access disabled. The calling client, prior to executing a method on the service, sets its network credentials for the IIS to authenticate: ...
0
by: HarryHalpin | last post by:
IRW2006 - Identity, Reference, and the Web http://www.ibiblio.org/hhalpin/irw2006/ Co-located Workshop at WWW2006, Edinburgh Scotland, May First Call for Papers ===========
1
by: bennett | last post by:
In order for my ASP.Net application to access a database using my privileged account, I was told to set up an app using Integrated Windows authentication and to use impersonation. I set the app to...
4
by: Saqib Ali | last post by:
I have some security concerns over storing a Active Directory username/ passwd in a text based web.config file for the identity impersonation definition. I know that web.conf is not accessible...
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: 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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.