Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

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/29/2014 10:15 AM
 
I have a all my user permissions to have full access. Still not working, unless I'm not understanding where you elevate these permissions. I don't know everything about IIS.
Also I'm working with DNN 6.1.3 with IIS7.5 if that makes any difference.
 
New Post
4/29/2014 2:12 PM
 
it's incredibly dangerous to do such a thing, as any potential hacker will likely be able to then run any arbitrary exe on the machine (e.g. run fdisk and wipe the server). I'd really recommend you reconsider your design.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
4/29/2014 2:33 PM
 
Is it a server at your company, your own or shared hosting? A shared hosting won't let you run an .exe. If it's your company, you might still have some convincing to do to the server admin to let a non interactive user run .exe's.
If it's yours, I guess you can do whatever you want.

Once you have an elevated user set up in Windows, change the identity of the application pool under which the DNN site is running to that user. I am not sure if that's even enough. Make sure only that site is using that pool. You don't want other site to have extra privileges.

If the .exe is from a third party vendor and they don't provide a library, you might be stuck with using the .exe. Otheriwse create a library to do the same functionality and use it in a custom module.
 
New Post
4/30/2014 8:02 AM
 
Like it's been mentioned, you probably have to grant the AppPool ID running the web site execute access. This will NOT be run by the user visiting your web site.

Make sure the App Pool is only running your web site, grant it permissions to run the exe or full permissons on the whole folder and try it again.

If this doesn't work or you have issues getting it done, I would just change it to .net code in your module and call it a day.

Mark
 
New Post
5/2/2014 9:02 AM
 
Still not having any luck. Do I need to set anything up in the sites Authentication settings?
Also, currently for testing purposes I'm doing this on my local machine and I'm trying to run cmd.exe and pass in a paramter to basically create an empty
text file. I'm wondering if it's because I'm trying to run cmd.exe that I keep have issues.
 
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.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out