问题描述
hi
我对网页设计和制作网站都是全新的。
i只是想知道有没有办法在用户端运行应用程序时点击我网站上的按钮?如果有,请告诉我我该怎么做。
i我的本地电脑安装了IIS。
谢谢你
hi
im completely new to web design and making sites.
i just wondering is there any way to run an application on server side when a user click a button on my web site? and if there is please tell me how can i do that.
i have IIS installed on my local pc.
thank you
推荐答案
解决方案:
运行应用程序的ASPNET用户应具有适当的安全设置。
1.更改APSNET用户的本地政策:
WinXP中的
:运行secpol.msc
转到本地政策 - >用户权利分配
找到拒绝本地登录并从中删除ASPNET用户。
也找到拒绝登录终端并从中删除ASPNET用户。
2.文件安全。
如果您的应用程序还需要处理文件(打开,保存等)你必须更改文件夹的安全设置,以允许用户ASPNET修改nedeed文件。
这样做:
- 在资源管理器右键单击文件夹并选择属性
- 在安全选项卡中,添加ASPNET并提供所需权限(读取,写入,执行等)。 />
要在不启动ASP.NET站点的情况下测试它是如何工作的,您可以尝试在Windows命令行中运行:
runas / user:ASPNETnotepad.exe
它会询问您ASPNET用户的密码。输入密码。
如果一切正常,您将在新窗口中看到打开的应用程序(在我们的示例中为记事本)。
我在我的Windows XP Professsional上试过这个并且它运行正常。
Solution:
ASPNET user under which application is run should have appropriate security settings.
1. change local policies for APSNET user:
in WinXP: run secpol.msc
go to Local Policies->User Rights Assignment
find "Deny logon locally" and remove ASPNET user from it.
also find "Deny logon .. terminal" and remove ASPNET user from it.
2. Security for files.
if your application needs also to work with files (open, save, etc) you have to change security settings for the folders to allow user ASPNET modify nedeed files.
to do this:
- In Explorer right button mouse click the folder and select "Properties"
- In Security tab, add "ASPNET" in and give desired permissions (Read, Write, Execute, etc).
To test how it works without starting ASP.NET site you can try run in Windows command line:
runas /user:ASPNET "notepad.exe"
it asks you for the password of ASPNET user. enter the password.
if everything is done correct you will see opened application (notepad in our example) in new window.
I've tried this on my Windows XP Professsional and it worked fine.
这篇关于帮助从网站运行服务器应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!