Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesExecuting .EXE from a ModuleExecuting .EXE from a Module
Previous
 
Next
New Post
4/28/2014 11:07 AM
 
I'm attempting to run a .EXE on the server (currently testing on local machine) after a user clicks a button. I'm trying to run cmd.exe with a parameter passed in to create an empty text file for test purposes at this time. However, even though the module doesn't crash my error log I read out to says there's an access denied error and I'm wondering what I have to do to fix this.
 
New Post
4/28/2014 3:05 PM
 
There are security issues with this but I think it can still be done if you can get the user calling the exe the proper rights on the server.

Check the IUSR, apppool and/or aspnet account and make sure they have elevated permissions on the server. Some server admins may not be willing to allow it.

If you can't get it done, you may want to consider converting it to code within your module (if possible).

Mark
 
New Post
4/28/2014 3:11 PM
 
That may not be viable, because we're wanting to run this for every user who logs onto the site. Putting it into the code might be the only option.
 
New Post
4/29/2014 3:38 AM
 
Mark is talking about the Windows user being used (configured in extended settings of IIS Application Pool), not DNN user

Cheers from Germany,
Sebastian Leupold (Microsoft MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
4/29/2014 9:16 AM
 
Sebastian is cCorrect. I'm referring to a user account caling the exe. Like I said, server admins may not be comfortable allowing exe's to run on the server.

Unless you're doing something very unique that must be done in the exe, I'd convert it to a module and avoid the exe.

Mark
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesExecuting .EXE from a ModuleExecuting .EXE from a Module


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.

Content Layout

Subscribe to DNN Digest

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  


Copyright 2017 by DNN Corp Terms of Use Privacy
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out