.dsy:it.
Show 150 posts per page

.dsy:it. (http://www.dsy.it/forum/)
- Tech (http://www.dsy.it/forum/forumdisplay.php?forumid=189)
-- [ASP.NET - C#] Far partire un processo sul server (http://www.dsy.it/forum/showthread.php?threadid=25478)


Posted by Bloody on 05-05-2006 08:11:

[ASP.NET - C#] Far partire un processo sul server

Ho un problema mentre scrivo una web application con il framework .NET , con il linguaggio c#.

Sto ricevendo un'eccezione di nome System.InvalidOperationException mentre cerco di cominciare un processo sul mio server, tramite un oggetto di classe Process.
L'eccezione viene lanciata e subito "presa", la vedo dal debugger perchè il processo non parte.

Il codice che uso di prova è

code:
Process p = new Process(); p.StartInfo.FileName = "pdfcreator.exe"; string indirizzo = up+filename; p.StartInfo.Arguments = "-PF""+up+filename+"""; p.StartInfo.UseShellExecute=true; p.EnableRaisingEvents = true; p.Start();


Lo stesso codice, sul pc di un collega, funziona: mi viene da pensare che sia un problema di configurazione.
Per ora ho impostato su machine.config, nel tag "processModel" gli utenti userName="SYSTEM" e password="AutoGenerate", e aggiunto il tag <identity impersonate="true" /> al file web.config del mio processo.

Ho provato sia a far partire "notepad" con lo stesso codice, oppure a farlo eseguire da un web service invece che da una web application, ma non succede niente.

Qualcuno ha suggerimenti ? (Anche modi alternativi per far partire l'applicazione sono ben accetti..)

__________________
I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.


Posted by Bloody on 08-05-2006 13:52:

nessuno ha suggerimenti ? :sad:

__________________
I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.


Posted by yeah on 08-05-2006 19:20:

Non sono un esperto di queste tecnologie, dai membri dell'eccezione non riesci a ricavare qualche info utile?

[edit] O avevi già guardato lì?

__________________
?


Posted by Bloody on 19-05-2006 19:55:

ma si può, per una configurazione errata di iisadmin... :wall:
http://support.microsoft.com/defaul...kb;en-us;555134

vabè l'importante è che abbia risolto :)

__________________
I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.


All times are GMT. The time now is 21:30.
Show all 4 posts from this thread on one page

Powered by: vBulletin Version 2.3.1
Copyright © Jelsoft Enterprises Limited 2000 - 2002.