المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Keep getting error 1314 after calling generic handler?



C# Programming
06-18-2009, 01:00 PM
Hi all,

I keep getting error ID 1314 "An unhanded security exception has occurred" in the event log. However this only happens on the staging servers. If i run it on my local machine it works fine.

What I'm trying to do is run a file uploader (flex) this then calls the handlers (C#.Net 2.0) in the pres layer. This should then call the app layer and do the basic file IO (create a folder and stick the uploaded file into this folder). However when I try to execute this code on any of the staging servers I get error 1314. I've googled loads and looked on here. The one topic I found on here said that I should change the group policy and set it to be able to run as part of the operating system. Did this but the problem is still there.

Some more info, I'm using windows impersonation on all of my IO methods. The account that is being impersonated is in the administrators group (for now). Also this type of IO (create folder and stick something in it) is being done in other parts of the website and is working fine??

The error that the flex returns is as follows: "[IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2038"]" and "[HTTPStatusEvent type="httpStatus" bubbles=false cancelable=false eventPhase=2 status=500]".

In the event log:
Event Type: Information
Event Source: ASP.NET 2.0.50727.0
Event Category: Web Event
Event ID: 1314
Date: 18/06/2009
Time: 09:27:26
User: N/A
Computer: OAXGS22
Description:
Event code: 4010
Event message: An unhandled security exception has occurred.
Event time: 18/06/2009 09:27:26
Event time (UTC): 18/06/2009 08:27:26
Event ID: 4de8de366e684eec959db42fb5231dae
Event sequence: 20
Event occurrence: 2
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/1214093380/Root-1-128897866071562500
Trust level: Full
Application Virtual Path: /
Application Path: D:\xgs_dev_published_web\Xerox_Apps\photo\presentation\
Machine name: OAXGS22

Process information:
Process ID: 5712
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE

Request information:
Request URL: http://pres.photo.xerox.xgsdev.com/handle/ImageUpload.ashx
Request path: /handle/ImageUpload.ashx
User host address: 13.215.60.31
User:
Is authenticated: False
Authentication Type:
Thread account name: NT AUTHORITY\NETWORK SERVICE

Custom event details:

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.


Any ideas?

Thanks
Phil