开发者

Calling an application from a server

开发者 https://www.devze.com 2022-12-22 05:58 出处:网络
I have an (consol开发者_开发问答e, .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

I have an (consol开发者_开发问答e, .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)


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号