Click here to Skip to main content
16,004,977 members
Home / Discussions / C#
   

C#

 
GeneralRe: Plzz help me in this task Pin
IrfanHaleem11-May-07 0:36
IrfanHaleem11-May-07 0:36 
GeneralRe: Plzz help me in this task Pin
Christian Graus11-May-07 0:53
protectorChristian Graus11-May-07 0:53 
QuestionPrint the content of an object panel Pin
AlexB4710-May-07 22:49
AlexB4710-May-07 22:49 
QuestionFind the path to the .exe of an installed program Pin
blackjack215010-May-07 22:38
blackjack215010-May-07 22:38 
AnswerRe: Find the path to the .exe of an installed program Pin
Christian Graus10-May-07 23:26
protectorChristian Graus10-May-07 23:26 
QuestionLaunch an exe file from a website Pin
Caroline Bornsjö10-May-07 22:30
Caroline Bornsjö10-May-07 22:30 
AnswerRe: Launch an exe file from a website Pin
Colin Angus Mackay10-May-07 22:43
Colin Angus Mackay10-May-07 22:43 
GeneralRe: Launch an exe file from a website Pin
Caroline Bornsjö10-May-07 23:11
Caroline Bornsjö10-May-07 23:11 
The error's I get from the application is

1.System.Security.SecurityException: That assembly does not allow partially trusted callers

When I got this error, I added the ASP-user to the security tab of the exe file.

After that I got the next error message:

2.An unhandled exception ('System.IO.FileLoadException') occurred in BankService.exe

And I was stuck again...

When I run the Scheduler task option I did the following
exeProcess.StartInfo.FileName = "schtask";
exeProcess.StartInfo.Arguments ="/run /tn BankService";
and
exeProcess.StartInfo.FileName = "cmd";
exeProcess.StartInfo.Arguments ="schtask /run /tn BankService";

It didnt do anything...
I checked the scheduler and nothing had happened and I checked the Task manager and no process with the bankservice had started.

The exe im trying to start I have stripped from doing anything but Console.WriteLine and EventLog.WriteEntry.

In the webconfig file it is added (not due to this)
<identity impersonate="true" userName="xxxx" password="yyyy"/>

How do I set the asp net user to access the desktop or can I get the process to run as antoher user but the net user?. The website requires you to log in with your windows credentiels...

/Caroline





AnswerRe: Launch an exe file from a website Pin
Christian Graus10-May-07 23:28
protectorChristian Graus10-May-07 23:28 
AnswerRe: Launch an exe file from a website Pin
subrata.jana11-May-07 0:08
subrata.jana11-May-07 0:08 
GeneralRe: Launch an exe file from a website Pin
Caroline Bornsjö11-May-07 2:29
Caroline Bornsjö11-May-07 2:29 
GeneralRe: Launch an exe file from a website Pin
Caroline Bornsjö14-May-07 3:01
Caroline Bornsjö14-May-07 3:01 
Questionwhy am i getting this error on delegate???? [modified] Pin
neodeaths10-May-07 22:23
neodeaths10-May-07 22:23 
QuestionAccessing Dataconfig file from C# class Pin
Hema Vidyaraj10-May-07 21:54
Hema Vidyaraj10-May-07 21:54 
AnswerRe: Accessing Dataconfig file from C# class Pin
Hema Vidyaraj10-May-07 23:56
Hema Vidyaraj10-May-07 23:56 
QuestionOutput format .ToString() Pin
Goebel10-May-07 21:41
Goebel10-May-07 21:41 
AnswerRe: Output format .ToString() Pin
Martin#10-May-07 21:47
Martin#10-May-07 21:47 
QuestionRe: Output format .ToString() Pin
Goebel10-May-07 22:08
Goebel10-May-07 22:08 
AnswerRe: Output format .ToString() Pin
Martin#10-May-07 22:10
Martin#10-May-07 22:10 
GeneralRe: Output format .ToString() Pin
Goebel10-May-07 22:28
Goebel10-May-07 22:28 
GeneralRe: Output format .ToString() Pin
Martin#10-May-07 22:29
Martin#10-May-07 22:29 
QuestionMS Agent, why Scroll lock Pin
Muammar©10-May-07 20:51
Muammar©10-May-07 20:51 
QuestionPrinting PDF Documents Pin
blackjack215010-May-07 20:33
blackjack215010-May-07 20:33 
AnswerRe: Printing PDF Documents Pin
steffw10-May-07 22:42
steffw10-May-07 22:42 
AnswerRe: Printing PDF Documents Pin
Luc Pattyn11-May-07 2:42
sitebuilderLuc Pattyn11-May-07 2:42 

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.