1

I have an (console, .NET 3.5, C#) application that I'm trying to call from a Windows Server (2003, with .NET 3.5) from a system (Windows server 2003 with .NET 2.0) via a scheduler (the scheduler app is called 24x7, it's a script based scheduler, in this case, it calls the executable strait up, no parameters, etc). The issue is when it tries to call it, it sees it as a file and tries to "download" it. I've tried running the app from the command prompt, only to get the same results. I've tried everything I can think of, even writing a launchpad type application and using that to call the app, but I get the same results every time.

Am I missing something? Is there a security flag or something I've overlooked? I've never seen this before.

Edit: Sorry, forgot to mention that the app is being called via full UNC path (\myserver\myfolder\myapp.exe)

2
  • 1
    Sorry, but I didn't understood the question: you are trying to execute an application from Windows Server 2003 through a scheduler? Which scheduler is it, and what command? Commented Mar 3, 2010 at 14:23
  • Yes, I am trying to execute an application from Windows server. The scheduler is called 24x7, the command it runs is simply the UNC path to the application (\\myserver\myfolder\myapp.exe) Commented Mar 3, 2010 at 14:32

1 Answer 1

1

hmm.... how exactly are you "calling" this application? via SMB? (i.e. by executing the command \\myserver\sharepath\foo.exe from a command line)

If so, your application doesn't run with the same permissions and you can run into code access issues, but that'll come as an error message, rather than a file download.

The fact that you're getting a file download leads me to believe that you're trying to "run" the console application over http, but I don't have enough information to know for sure, hence my question.

Sign up to request clarification or add additional context in comments.

11 Comments

I am calling the app via UNC pathing, which is how I have many other apps running. The security permissions (should be) set correctly, although it seems like I am missing something.
So you've done this successfully with other programs before? Then what's changed? What's different about this program specifically? Or perhaps the issue is with the scheduling script call itself.
Well the issue still occurs when I run a manual call from a command prompt. No matter what I try (calling the program directly, or via a launchpad style app) it always comes up with the "download" dialog. There is nothing different, except the servers. (I work on several servers, all of which SHOULD have identical configurations). My other apps all run from the same style command, except this one.
What happens if you run the application from your local machine rather than over the network?
Running from the local machine works perfectly fine. I'm so baffled, it's incredibly frustrating!!
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.