Web App需要将文件发布到虚拟目录的权限 [英] Web App need permission to post files to a virtual directory

查看:79
本文介绍了Web App需要将文件发布到虚拟目录的权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个虚拟目录,其中存储了所有发布的文件。


ASP应用程序没有对其他服务器上的共享的权限

vir dir驻留。


为asp应用程序提供将文件发布到vir

目录的权利的最佳方法是什么。
< br $>
谢谢


TPS。

I have a virtual directory where all posted files are stored.

The ASP app does not have rights to the share on the other server where the
vir dir resides.

What is the best way to give the asp app the rights to post files to the vir
dir.

Thanks

TPS.

推荐答案

授予权限的唯一方法是更改

文件夹中的安全设置,以允许ASPNET_WP用户完全访问它。


如果你不能这样做,那么你将不得不考虑在您的数据库中存储文件



-

Pete

======== =====
http://www.DroopyEyes.com - 德尔福源代码

音频压缩组件,快速字符串,DIB控件


读取或写几乎任何内容的文章
http://www.HowToDoThings.com


" TPS" < tp*@tps.com>在消息中写道

news:ed ************** @ tk2msftngp13.phx.gbl ...
The only way to give permissions is to alter the security settings on the
folder to allow the ASPNET_WP user full access to it.

If you cannot do this, then you will have to consider storing the files
inside your database.
--
Pete
=============
http://www.DroopyEyes.com - Delphi source code
Audio compression components, Fast Strings, DIB Controls

Read or write article on just about anything
http://www.HowToDoThings.com


"TPS" <tp*@tps.com> wrote in message
news:ed**************@tk2msftngp13.phx.gbl...
我有一个虚拟目录所有发布的文件都存储在哪里。

ASP应用程序没有对其他服务器上的共享权限,其中$ d $是vir dir所在的位置。

什么是给asp应用程序发布文件到
vir dir的权利的最好方法。

TPS。
I have a virtual directory where all posted files are stored.

The ASP app does not have rights to the share on the other server where the vir dir resides.

What is the best way to give the asp app the rights to post files to the vir dir.

Thanks

TPS.



Hey Pete,谢谢你的回复。


我保存文件的服务器不是运行IIS的服务器。

服务器也不在域中。


那么如何从另一个机器中为文件夹提供一台机器的ASPNET_WP权利

机器?


- 再次感谢您的帮助。


TPS
Hey Pete, thanks for your reply.

The server where I am saving the files is NOT the server running IIS. The
servers are not in a domain either.

So how can I give the folder one one machine ASPNET_WP rights from another
machine?

-- Thanks again for your help.

TPS


嗨TPS,


由于您的服务器不在域中,您必须使用本地帐户。


如果您禁用了允许匿名,这种解决方法可以工作:


1.在两台机器上创建一个相同的本地帐户,使用相同的

用户名和密码。

2.您可以模拟此本地帐户以获取

ASP.NET应用程序的所有请求。为此,请在web.config中添加以下行

Web应用程序:


< identity impersonate =" true"的userName = QUOT;帐户名"密码= QUOT;密码" />


如需了解更多信息,请查看:


306158信息:在ASP.NET应用程序中实现模拟
< a rel =nofollowhref =http://support.microsoft.com/?id=306158target =_ blank> http://support.microsoft.com/?id=306158


如果你需要允许匿名访问虚拟目录,试试这个

方法:


1.创建一个两台机器上相同的本地帐户,使用相同的

用户名和密码。

2.禁用允许IIS控制密码 ASP.NET Web应用程序的身份验证

方法对话框中的选项。

3.替换默认用户名IUSR_MachineName与当地账户

您创建的


问候,


Felix Wu

=============

此帖子按原样提供。没有保证,也没有赋予任何权利。

--------------------
Hi TPS,

Since your servers are not in a domain, you have to use local accounts.

If you disabled "Allow Anonymous", this workaround can work:

1. Create an identical local account on both machine, with the same
username and password.
2. You can impersonation this local account for all the requests of an
ASP.NET application. To do this, add the following line in the web.config
of the web appliation:

<identity impersonate="true" userName="accountname" password="password" />

For more informaiton, please check:

306158 INFO: Implementing Impersonation in an ASP.NET Application
http://support.microsoft.com/?id=306158

If you need to allow Anonymous access to the virtual directory, try this
method:

1. Create an identical local account on both machine, with the same
username and password.
2. Disable "Allow IIS to control password" option in the Authentication
Method dialog box of the ASP.NET web application.
3. Replace the default user name "IUSR_MachineName" with the local account
your created

Regards,

Felix Wu
=============
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
来自:TPS ; < tp *@tps.com>
参考文献:< ed ************** @ tk2msftngp13.phx.gbl>
< #r ************** @ TK2MSFTNGP11.phx.gbl>主题:Re:Web App需要获得将文件发布到虚拟目录的权限
日期:周六,2004年2月7日14:52:28 -0600
行数:13
X-Priority:3
X-MSMail-Priority:正常
X-Newsreader:Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE:由Microsoft MimeOLE制作V6.00.2800.1165
消息ID:< On ************** @ TK2MSFTNGP12.phx。 gbl>
新闻组:microsoft.public.dotnet.framework.aspnet
NNTP-Posting-Host:h-66-134-6-74.dllatx37.covad.net 66.134.6.74
路径!!!!!
cpmsftngxa07.phx.gbl cpmsftngxa06.phx.gbl cpmsftng xa10.phx.gbl TK2MSFTNGXA05

.phx.gbl TK2MSFTNGP08.phx.gbl TK2MSFTNGP12.phx.gblXref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.framework.aspnet:208335
X-Tomcat-NG:microsoft.public.dotnet.framework.aspnet

嘿,皮特,谢谢你的回复。

我保存文件的服务器不是运行IIS的服务器。
服务器也不在域中。

那么如何从另一台
机器给文件夹一台机器的ASPNET_WP权利呢?

- - 再次感谢您的帮助。

TPS
From: "TPS" <tp*@tps.com>
References: <ed**************@tk2msftngp13.phx.gbl> <#r**************@TK2MSFTNGP11.phx.gbl>Subject: Re: Web App need permission to post files to a virtual directory
Date: Sat, 7 Feb 2004 14:52:28 -0600
Lines: 13
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <On**************@TK2MSFTNGP12.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.aspnet
NNTP-Posting-Host: h-66-134-6-74.dllatx37.covad.net 66.134.6.74
Path: cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!cpmsftng xa10.phx.gbl!TK2MSFTNGXA05
.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gblXref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.framework.aspnet:208335
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

Hey Pete, thanks for your reply.

The server where I am saving the files is NOT the server running IIS. The
servers are not in a domain either.

So how can I give the folder one one machine ASPNET_WP rights from another
machine?

-- Thanks again for your help.

TPS






这篇关于Web App需要将文件发布到虚拟目录的权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆