...

View Full Version : How config launch permission by programming?



bhguo
05-12-2005, 03:12 PM
Dear Sirs:
I am developing a web application with "ASP--DLL COM--DB" structure. In the DLL COM, it need launch Excel by CreateObject("Excel.Application"), it works fine in win2000,WinXP SP1, but doesn't work in WinXP SP2, say "permission deny". I know it's caused by the launch perimission issue of Excel application for IUSR_XXX, so I config it in dcomcnfg.exe and grant IUSR_XXX the Excel Launch Permission, it works fine again.
But, this web application is distributed to end users, obviously it's not a good idea for every user to config it manually, so I hope config it in my Config tool- a .EXE application installed during setup, I don't know which API or other function can do it. Please help me, thanks!

bob
2005 5 12

bhguo
05-14-2005, 09:25 AM
Is there any VB code that do the same thing of DCOMPerm?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum