Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASPExec

Status
Not open for further replies.

SmileeTiger

Programmer
Mar 13, 2000
200
US
Hi,<br><br>I am trying to get aspexec to work under IIS and windows 2000. I have allowed the service to interact witht he desktop and I have registered the DLL but I cannot seem to get the notepad window to popup. Has anyone had any luck running aspexec under win 2k?<br><br>Thanks <br>Cory<br><br>BTW If anyone can suggest another way to run a program on the server it would be a great help. FYI I am just opening a console(dos) based app that writes to a text file.<br><br><br>
 
Dear Cory,<br><br>It's difficult to provide a &quot;viable&quot; solution for you since there are so many possible criteria that might be present in your problem domain.<br><br>So here is just a guess at what &quot;might work&quot; for you.<br><br>Just run the application under the CGI implementation of IIS. Let's say your console app executable's file name is &quot;myfilewriter.exe&quot;. Then in a web page you could have the following.<br><br>&lt;a href=&quot;<A HREF=" TARGET="_new"> it&lt;/a&gt;<br><br>One caviat here is that the application should return appropriate http headers and some content (text, html, xml) whatever you like, to be considered 'well behaved'.<br><br>Another is security - permissions and the like. Once again we don't know what your problem domain is.<br><br>Hope this helps<br>-pete
 
I think Pete is on the right track.&nbsp;&nbsp;Problems of this nature are almost always related to permissions, usually with the IUSR_xxx account.<br><br> <p>nick bulka<br><a href=mailto: > </a><br><a href= > </a><br>
 
palbano,<br><br>If I went with your method would it be possable to have a asp page link&nbsp;&nbsp;to the program and have it run and also to the asp page that would display the data?<br><br>I was thinking that maybe after say 10 seconds of running the first link it could direct the user to the second link which would the display the info.<br><br>Do you think that would work?<br><br><br>Cory
 
Dear Cory,<br><br>&gt; If I went with your method would it be possable to have a asp page link&nbsp;&nbsp;to the program and have it run and also to the asp page that would display the data?<br><br>I don't believe so, that's what ActiveX controls are used for in ASP.<br><br>&gt;I was thinking that maybe after say 10 seconds of running the first link it could direct the user to the second link which would the display the info.<br><br>&gt;Do you think that would work?<br><br>I seriously doubt it, and it's a terrible 'hack' anyway.<br><br>First, I am not familiar with the new IIS5 functions like ASPExec. Nick is probably correct about permission related details causing your problem. If so that is your first and fastest solution. Anything else will require a coding effort well beyond ASP pages.<br><br>There is 'almost always' more than one way to achieve your goal. In your case it really sounds as though the Microsoft DNA design would call for you to take the code from your console application and build an ActiveX control out of it by wrapping a COM interface around your internal code. Then an ASP page can use it to accomplish it's task and display resulting data.<br><br>Another approach to accomplishing this would be to use the FileSystemObject and associated objects to do this straight from ASP. You will still have to deal with permissions though, probably in the same way you have to now.<br><br>Keep trying... you will get it working.<br>-pete<br><br>
 
I still haven't been able to figure out what's wrong with ASPExec (ASPExec BTW is an addon dll for IIS not a new feature in IIS). How do I access the security&nbsp;&nbsp;premissions for IUSR_xxx account?<br><br><br>Cory
 
Dear Cory,<br><br>If ASPExec is a third party tool it should have documentation that addresses the permissions issues on NT or Win2k.<br><br>Permissions will have to be granted on the file in NT/WIN2K for the user IUSER_XXXXX. This can be done using Windows Explorer. Then in IIS using the Management Console to access that Web Site or Application which ever it is. On the Properties dialog for the folder containing the .EXE you wish to run, the 'Execute Permissions' attribute needs to be set to &quot;Scripts and Executables&quot;<br><br><br>Hope this helps<br>-pete<br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top