Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

System.Diagnostics.Process does not work~~~
Royhwa
#1 Posted : Tuesday, August 1, 2006 8:01:59 PM(UTC)
Groups: Member
Joined: 6/29/2006(UTC)
Posts: 10
Location: China

I am using Office.Excel to get text from an excel document.

You know that excel process will not exit in asp.net.
So i have to use System.Diagnostics.Process to kill excel process.

But it does not work.

Thanks very much!
Royhwa
#2 Posted : Tuesday, August 1, 2006 8:06:05 PM(UTC)
Groups: Member
Joined: 6/29/2006(UTC)
Posts: 10
Location: China

Exception Details: System.ComponentModel.Win32Exception: Access is denied
Royhwa
#3 Posted : Tuesday, August 1, 2006 8:08:04 PM(UTC)
Groups: Member
Joined: 6/29/2006(UTC)
Posts: 10
Location: China

permission ?

I have added <identity impersonate="true" userName="administrator" password="password" /> in web.config.
Ultidev Team
#4 Posted : Tuesday, August 1, 2006 8:27:23 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi!

Is this issue specific to Cassini? Can you do that from an application running under IIS?

Regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Royhwa
#5 Posted : Tuesday, August 1, 2006 8:29:08 PM(UTC)
Groups: Member
Joined: 6/29/2006(UTC)
Posts: 10
Location: China

YES, IIS is ok.

I got it.
<identity impersonate="true" userName="administrator" password="password" />
should be
<identity impersonate="true" />

That is:
In IIS <identity impersonate="true" userName="administrator" password="password" />
In Cassini <identity impersonate="true" />
Ultidev Team
#6 Posted : Wednesday, August 2, 2006 5:25:31 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi there!

We are glad you have resolved the issue.

In general, whenever you are tempted to run your entire application under a user account more powerful than ASP.NET's default (which are either NETWORK SERVICE or ASPNET), it is a good idea to consider using .NET ServicedComponent - what used to be COM+ component before .NET. That is a more diverse solution because it would not rely on hosting web server's access rights, and it would be more secure because only small portion of your application logic would work under a user account with elevated access rights.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Rss Feed  Atom Feed
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.