I've successfully created a web form in asp.net which interacts with Adobe Photoshop. This took me ages to get working because of permission issues etc when running it through IIS. This was done on Windows XP and in the end it was just a case of giving the
aspnet user access to the relevant com server (photoshop). I also changed the identity to "the interactive user" and then it worked fine through IIS.
Now I've just tried to do the exact same thing on Windows Server 2003 but it doesn't work. It works fine through the visual web developer development server though so obviously another security/permissions issue again through IIS.
Now the main difference I can see is that Windows XP uses IIS v5.1 and uses the aspnet account, and Server 2003 uses IIS v6 and uses the network service account. I've tried everything I can think of though in Component Services but still it fails to launch
photoshop with various errors such as "cannot create activex control", "the server did not register with dcom within the required timeout", "faulting application photoshop.exe" etc etc...
Like I said this was working perfect in XP and still works perfect through the development server on 2003 so what am I missing which is different in Server 2003?
This is just some simple code (basically a button which should open photoshop) if somebody with IIS6 could test as well and try and help me figure this out please...
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim appRef
appRef = CreateObject("Photoshop.Application")
End Sub
Thanks to anyone who can help with this because it's driving me mad now.
I've managed to get this working now, but only by having a user account always logged in locally and setting the identity of the COM server to "interactive user". Obviously not ideal but can't seem to get it working any other way.
ColRS
Member
30 Points
49 Posts
run photoshop from web form
Dec 25, 2010 05:44 PM|LINK
Hi all.
I've successfully created a web form in asp.net which interacts with Adobe Photoshop. This took me ages to get working because of permission issues etc when running it through IIS. This was done on Windows XP and in the end it was just a case of giving the aspnet user access to the relevant com server (photoshop). I also changed the identity to "the interactive user" and then it worked fine through IIS.
Now I've just tried to do the exact same thing on Windows Server 2003 but it doesn't work. It works fine through the visual web developer development server though so obviously another security/permissions issue again through IIS.
Now the main difference I can see is that Windows XP uses IIS v5.1 and uses the aspnet account, and Server 2003 uses IIS v6 and uses the network service account. I've tried everything I can think of though in Component Services but still it fails to launch photoshop with various errors such as "cannot create activex control", "the server did not register with dcom within the required timeout", "faulting application photoshop.exe" etc etc...
Like I said this was working perfect in XP and still works perfect through the development server on 2003 so what am I missing which is different in Server 2003?
This is just some simple code (basically a button which should open photoshop) if somebody with IIS6 could test as well and try and help me figure this out please...
Default.aspx
<html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div> <asp:Button ID="Button1" runat="server" Text="Button" /> </div> </form> </body> </html>ColRS
Member
30 Points
49 Posts
Re: run photoshop from web form
Dec 29, 2010 11:42 AM|LINK
I've managed to get this working now, but only by having a user account always logged in locally and setting the identity of the COM server to "interactive user". Obviously not ideal but can't seem to get it working any other way.