Click here to Skip to main content
15,881,938 members
Home / Discussions / C#
   

C#

 
Questiondebug sql with parameters Pin
jogisarge18-Jun-09 0:06
jogisarge18-Jun-09 0:06 
AnswerRe: debug sql with parameters Pin
Rob Philpott18-Jun-09 0:20
Rob Philpott18-Jun-09 0:20 
AnswerRe: debug sql with parameters Pin
DoctorMick18-Jun-09 0:23
DoctorMick18-Jun-09 0:23 
GeneralRe: debug sql with parameters Pin
jogisarge18-Jun-09 1:25
jogisarge18-Jun-09 1:25 
GeneralRe: debug sql with parameters Pin
Mirko198018-Jun-09 3:47
Mirko198018-Jun-09 3:47 
Questionhow to Upgrade visual studio 2005 windows application project to 2008? Pin
amit_8317-Jun-09 23:59
professionalamit_8317-Jun-09 23:59 
AnswerRe: how to Upgrade visual studio 2005 windows application project to 2008? Pin
crayzeecoder18-Jun-09 0:08
crayzeecoder18-Jun-09 0:08 
QuestionKeep getting error 1314 after calling generic handler? Pin
Phillip Donegan17-Jun-09 22:53
Phillip Donegan17-Jun-09 22:53 
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
QuestionCreate Control on RunTime Pin
Socheat.Net17-Jun-09 22:52
Socheat.Net17-Jun-09 22:52 
AnswerRe: Create Control on RunTime Pin
OriginalGriff17-Jun-09 23:14
mveOriginalGriff17-Jun-09 23:14 
GeneralRe: Create Control on RunTime Pin
Michael Bookatz17-Jun-09 23:37
Michael Bookatz17-Jun-09 23:37 
GeneralRe: Create Control on RunTime Pin
OriginalGriff17-Jun-09 23:53
mveOriginalGriff17-Jun-09 23:53 
QuestionRegarding DataGridView Pin
Muammar©17-Jun-09 21:34
Muammar©17-Jun-09 21:34 
AnswerRe: Regarding DataGridView Pin
Christian Graus17-Jun-09 21:51
protectorChristian Graus17-Jun-09 21:51 
AnswerRe: Regarding DataGridView Pin
I Believe In GOD17-Jun-09 21:55
I Believe In GOD17-Jun-09 21:55 
AnswerRe: Regarding DataGridView Pin
himanshu256117-Jun-09 21:58
himanshu256117-Jun-09 21:58 
GeneralRe: Regarding DataGridView Pin
Muammar©17-Jun-09 22:36
Muammar©17-Jun-09 22:36 
AnswerRe: Regarding DataGridView Pin
MatthysDT17-Jun-09 22:00
MatthysDT17-Jun-09 22:00 
QuestionTrying to call a c++ function in C# code using PInvoke Pin
siddy1717-Jun-09 21:16
siddy1717-Jun-09 21:16 
AnswerRe: Trying to call a c++ function in C# code using PInvoke Pin
Colin Angus Mackay17-Jun-09 21:39
Colin Angus Mackay17-Jun-09 21:39 
GeneralRe: Trying to call a c++ function in C# code using PInvoke Pin
siddy1717-Jun-09 23:00
siddy1717-Jun-09 23:00 
GeneralRe: Trying to call a c++ function in C# code using PInvoke Pin
dan!sh 17-Jun-09 23:19
professional dan!sh 17-Jun-09 23:19 
QuestionUse interface to force inheritance? Pin
Tobias Norlund17-Jun-09 21:13
Tobias Norlund17-Jun-09 21:13 
AnswerRe: Use interface to force inheritance? Pin
Colin Angus Mackay17-Jun-09 21:35
Colin Angus Mackay17-Jun-09 21:35 
AnswerRe: Use interface to force inheritance? Pin
dan!sh 17-Jun-09 21:43
professional dan!sh 17-Jun-09 21:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.