在开发机器上运行,而不是在服务器上运行? [英] Runs on development machine, not on server?

查看:58
本文介绍了在开发机器上运行,而不是在服务器上运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试部署一个我在Visual Studio 2003中开发的asp.net应用程序,它是一台XP Professional机器。它在开发机器上运行良好,但是当我尝试在服务器上本地运行它时,它就是
(即 http:// myserver / myappdir

我收到这样的错误:


访问路径 C:\ WINDOWS \ MicroStoswork \Framework\v1.1.4322 \Temp orary

ASP.NET Files\myappdir\71a79d23\a4a00da7 \hash.web"被拒绝。


当我查找该路径时,在Temporary ASP.NET Files下没有myappdir

这样的子目录。所以,我查看了我的开发机器,

,果然,树的其余部分都在那里,所以我把整个东西

移到了服务器上。就在那时我注意到两个最底层的目录

(71a7923和a4a00da7)实际上是不同的值。我将它们重命名,然后

进入并为IUSR_myserver提供了对整个目录

结构的完全权限,然后将其应用到hash.web中。


错误信息仍然存在。


任何想法都会受到赞赏。


谢谢。


Joe


-

发布于NewsDemon.com - 高级未经审查的新闻组服务

--- ---->>>>>> http://www.NewsDemon.com<<<<<< ------

无限制访问,匿名帐户,未经审查的宽带访问

解决方案

如果您正在使用**假冒** ...那么您需要提供临时

目录下的priv''。到模仿帐户(不是IUSR_帐户)。


那是我遇到这个问题的地方。


如果这个请发布解决你的问题。


" Joe Befumo" < jo*@befumo.com>在消息中写道

news:43 *********************** @ news.newsdemon.com。 ..

我正在尝试在XP Professional机器上部署我在Visual Studio 2003
中开发的asp.net应用程序。它在开发机器上运行良好,但是当我尝试在服务器上本地运行它时(即
http:// myserver / myappdir 。)我收到这样的错误:

访问路径C:\ WINDOWS \ Microsoftoft.NET \ Framework \v1.1.4322 \Temp orary
ASP.NET Files\myappdir\71a79d23\a4a00da7 \hash.web"被拒绝。

当我查找该路径时,在Temporary ASP.NET Files下没有myappdir
这样的子目录。所以,我查看了我的开发机器,确实,树的其余部分都在那里,所以我把整个
的东西移到了服务器上。就在那时我注意到两个最底层的目录(71a7923和a4a00da7)实际上是不同的值。我将它们重命名为
然后进入并为IUSR_myserver提供了对整个目录结构的完全权限,然后将其应用到hash.web。

错误消息仍然存在。

任何想法都会受到赞赏。

谢谢。



-
通过NewsDemon发布.com - 高级未经审查的新闻组服务
------->>>>>> http://www.NewsDemon.com<<<<<< ------
无限制访问,匿名帐户,未经审查的宽带访问



re:

进入并给了IUSR_myserver整个目录的完全权限


如果IUSR_myserver不是你的ASP.NET帐户,那么给予IUSR_myserver权限的
不会解决你的问题。


您需要向*运行的帐户授予ACL权限* *

" C:\ WINDOWS \ Microsoft \Framework\v1。 1.4322\Temp orary ASP.NET Files \"


运行:


<%

Response.Write(ASP.NET作为帐户运行: &安培;环境。用户名)

%>


在任何aspx文件中,并给*该帐户*访问权限:

C:\ WINDOWS \ Macrooft.NET \ Framework \v1.1.4322 \Temp orary ASP.NET Files \"


Juan T. Llibre,asp .net MVP

aspnetfaq.com: http://www.aspnetfaq。 com /

asp.net faq: http: //asp.net.do/faq/

foros de asp.net,en espa?ol: http://asp.net.do/foros/

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

" Joe Befumo" < jo*@befumo.com>在留言新闻中写道:43 *********************** @ news.newsdemon.com。 ..我正在尝试在XP Professional
机器上部署我在Visual Studio 2003中开发的asp.net应用程序。它在开发机器上运行良好,但是当我尝试在服务器上本地运行它时(例如, http:// myserver / myappdir 。)我收到如下错误:

访问路径C:\ WINDOWS \ MicrosoftMosrosoft.NET \ Framework \v1 .1.4322#Temp orary ASP.NET
Files\myappdir\71a79d23\a4a00da7 \hash.web"被拒绝。

当我寻找那条路时,没有像myappdir这样的子目录。在临时ASP.NET
文件下。所以,我查看了我的开发机器,果然,树的其余部分都在那里,
所以我把整个东西都移到了服务器上。那是我注意到两个最底层的目录(71a7923和a4a00da7)实际上是不同的值。我重命名了它们,然后进入了
并为IUSR_myserver提供了对整个目录结构的完全权限,然后将其应用到了
hash.web。

错误信息仍然存在。

任何想法都会受到赞赏。

谢谢。



-
通过NewsDemon发布.com - 高级未经审查的新闻组服务
------->>>>>> http://www.NewsDemon.com<<<<<< ------
无限制访问,匿名帐户,未经审查的宽带访问



我是否理解模仿是指到帐户

在IIS管理员的启用匿名用户对话框中识别?


我检查了它是IUSR_MYMACHINE。我尝试将其更改为管理员,

并且还可以访问几乎所有人的目录。


仍然没有变化。


Joe

" sloan" < SL *** @ ipass.net>在留言中写道

新闻:%2 **************** @ TK2MSFTNGP11.phx.gbl ...

如果你''使用**模仿** ...然后你需要给那个临时的
目录下的priv''。到模仿帐户(不是IUSR_
帐户)。

这就是我遇到这个问题的地方。

如果这解决了你的问题,请发帖。


Joe Befumo < jo*@befumo.com>在消息中写道
新闻:43 *********************** @ news.newsdemon.com。 ..

我正在尝试在

XP Professional机器上部署我在Visual Studio 2003中开发的asp.net应用程序


。它在开发机器上运行良好,但是当我尝试在服务器上本地运行它时(例如,


http:// myserver / myappdir 。)

我收到如下错误:

访问路径
" C:\ WINDOWS \ MicroSoft \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\被拒绝。

当我查找该路径时,在Temporary ASP.NET Files下没有myappdir
这样的子目录。所以,我查看了我的开发机器,
当然,树的其余部分都在那里,所以我把整个


的东西

移到了服务器上。就在那时我注意到两个最底层的目录(71a7923和a4a00da7)实际上是不同的值。我重命名了它们,


然后

进入并为IUSR_myserver提供了整个目录
结构的完全权限,然后将其应用到hash.web。 br />
错误信息仍然存在。

任何想法都会受到赞赏。

谢谢。



-
发布于NewsDemon.com - 高级未经审查的新闻组服务
------->>>>>> http://www.NewsDemon。 com<<<<<< ------
无限制访问,匿名帐户,未经审查的宽带访问




-

通过NewsDemon.com发布 - 高级未经审查的新闻组服务

------->>>>> > http://www.NewsDemon.com<<<<<< ------

无限制访问,匿名帐户,未经审查的宽带访问


I''m trying to deploy a asp.net app that I developed in Visual Studio 2003 on
an XP Professional machine. It runs fine on the development machine, but
when I try to run it locally on the server (i.e., http://myserver/myappdir.)
I get an error like this:

Access to the path "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary
ASP.NET Files\myappdir\71a79d23\a4a00da7\hash.web" is denied.

When I looked for that path, there was no such subdirectory as "myappdir"
under "Temporary ASP.NET Files". So, I looked on my development machine,
and sure enough, the rest of the tree was there, so I moved the whole thing
to the server. That''s when I noticed that the two bottommost directories
(71a7923 and a4a00da7) were actually different values. I renamed them, then
went in and gave IUSR_myserver full permissions for the entire directory
structure, and then applied it to hash.web as well.

The error message persists.

Any ideas would be appreciated.

Thanks.

Joe

--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access

解决方案

If you''re using **impersonation**...then you need to give that temporary
directory the priv''s. to the impersonation account (not the IUSR_ account).

That''s where I ran into this issue.

Please post if this addresses your issue.


"Joe Befumo" <jo*@befumo.com> wrote in message
news:43***********************@news.newsdemon.com. ..

I''m trying to deploy a asp.net app that I developed in Visual Studio 2003 on an XP Professional machine. It runs fine on the development machine, but
when I try to run it locally on the server (i.e., http://myserver/myappdir.) I get an error like this:

Access to the path "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary
ASP.NET Files\myappdir\71a79d23\a4a00da7\hash.web" is denied.

When I looked for that path, there was no such subdirectory as "myappdir"
under "Temporary ASP.NET Files". So, I looked on my development machine,
and sure enough, the rest of the tree was there, so I moved the whole thing to the server. That''s when I noticed that the two bottommost directories
(71a7923 and a4a00da7) were actually different values. I renamed them, then went in and gave IUSR_myserver full permissions for the entire directory
structure, and then applied it to hash.web as well.

The error message persists.

Any ideas would be appreciated.

Thanks.

Joe

--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access



re:

went in and gave IUSR_myserver full permissions for the entire directory
If IUSR_myserver is not your ASP.NET account,
giving IUSR_myserver permissions won''t solve your problem.

You need to give ACL permissions to *the account ASP.NET is running as* to
"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary ASP.NET Files\"

Run this :

<%
Response.Write("ASP.NET is running as the account : " & Environment.Username)
%>

in any aspx file, and give *that account* access permission to:
"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary ASP.NET Files\"

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espa?ol : http://asp.net.do/foros/
===================================
"Joe Befumo" <jo*@befumo.com> wrote in message news:43***********************@news.newsdemon.com. .. I''m trying to deploy a asp.net app that I developed in Visual Studio 2003 on an XP Professional
machine. It runs fine on the development machine, but when I try to run it locally on the server
(i.e., http://myserver/myappdir.) I get an error like this:

Access to the path "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary ASP.NET
Files\myappdir\71a79d23\a4a00da7\hash.web" is denied.

When I looked for that path, there was no such subdirectory as "myappdir" under "Temporary ASP.NET
Files". So, I looked on my development machine, and sure enough, the rest of the tree was there,
so I moved the whole thing to the server. That''s when I noticed that the two bottommost
directories (71a7923 and a4a00da7) were actually different values. I renamed them, then went in
and gave IUSR_myserver full permissions for the entire directory structure, and then applied it to
hash.web as well.

The error message persists.

Any ideas would be appreciated.

Thanks.

Joe

--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access



Am I correct in understanding that ''impersonation'' refers to the account
indentified in the ''Enable Anonymous User'' dialog in IIS Administrator?

I checked and it was IUSR_MYMACHINE. I tried changing it to administrator,
and also giving access to the directory to virtually everyone.

Still no change.

Joe
"sloan" <sl***@ipass.net> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...

If you''re using **impersonation**...then you need to give that temporary
directory the priv''s. to the impersonation account (not the IUSR_
account).

That''s where I ran into this issue.

Please post if this addresses your issue.


"Joe Befumo" <jo*@befumo.com> wrote in message
news:43***********************@news.newsdemon.com. ..

I''m trying to deploy a asp.net app that I developed in Visual Studio 2003


on

an XP Professional machine. It runs fine on the development machine, but
when I try to run it locally on the server (i.e.,


http://myserver/myappdir.)

I get an error like this:

Access to the path
"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary
ASP.NET Files\myappdir\71a79d23\a4a00da7\hash.web" is denied.

When I looked for that path, there was no such subdirectory as "myappdir"
under "Temporary ASP.NET Files". So, I looked on my development machine,
and sure enough, the rest of the tree was there, so I moved the whole


thing

to the server. That''s when I noticed that the two bottommost directories
(71a7923 and a4a00da7) were actually different values. I renamed them,


then

went in and gave IUSR_myserver full permissions for the entire directory
structure, and then applied it to hash.web as well.

The error message persists.

Any ideas would be appreciated.

Thanks.

Joe

--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access




--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access


这篇关于在开发机器上运行,而不是在服务器上运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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