在Web服务器上部署ClickOnce失败 [英] Deploying ClickOnce is failing on web server

查看:97
本文介绍了在Web服务器上部署ClickOnce失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个.net 2.0 smarclient应用程序,我正在尝试将其部署到IIS,其中

用户可以从中访问它。我在IIS中创建了一个应用程序文件夹,我在那里尝试将部署到我的b $ b。


1)当应用程序文件夹设置为''允许脚本时只有'',我得到一个

错误:


无法连接到''http://192.168.0.5/TransAct/''


,出现以下错误:


无法创建网站''http://192.168.0.5/TransAct/''。


服务器错误:


''TransAct''不引用此网页中的页面或文件夹。

它可能是一个子网站中的页面或文件夹,或者它可能是一个格式错误的URL。


URL没有任何问题,当我部署它时,我被提示

登录,我是以管理员身份登录的。


2)我将应用程序文件夹改为''运行脚本和可执行文件''和我

出现以下错误:


错误3无法复制文件

''D:\ nwis \ Apps \ SampleCode\OneClickDeployment\OneCli ckTest1 \OneClickTest1\bin\Release\OneClickTest1.pu blish\OneClickTest1_1_​​0_0_1\Infragistics2.Shared.v 6.1.dll.deploy''

to

''http://192.168.0.5/TransAct/OneClickTest1_1_​​0_0_1/Infragistics2.Shared.v6.1.dll.deploy''。

无法添加''OneClickTest1_1_​​0_0_1 / Infragistics2.Shared.v6.1.dll.deploy''

到网上。服务器错误:文件夹/ TransAct / OneClickTest1_1_​​0_0_1

标记为可执行文件。您不能将文件放入此服务器上的可执行文件

文件夹中。 1 1 OneClickTest1


我应该如何设置一个网站(IIS中的aplication文件夹)才能正确执行这个




-
mo*******@nospam.nosp am

I have a .net 2.0 smarclient app and am trying to deploy it to IIS where
users can access it from. I created an application folder in IIS where I''m
trying to deployee to.

1) When the application folder was set to ''Allow scripts only'', I get an
error:

Failed to connect to ''http://192.168.0.5/TransAct/''

with the following error:

Unable to create the Web ''http://192.168.0.5/TransAct/''.

Server error:

''TransAct'' does not refer to a page or folder in this web.
It may be a page or folder in a subweb, or it could be a badly formed URL.

There''s nothing wrong with the URL and when I deployed it I was prompted to
login and I did so as Administrator.

2) I changed the applicaiton folder to ''Run scripts and executables'' and I
get the following error:

Error 3 Failed to copy file
''D:\nwis\Apps\SampleCode\OneClickDeployment\OneCli ckTest1\OneClickTest1\bin\Release\OneClickTest1.pu blish\OneClickTest1_1_0_0_1\Infragistics2.Shared.v 6.1.dll.deploy''
to
''http://192.168.0.5/TransAct/OneClickTest1_1_0_0_1/Infragistics2.Shared.v6.1.dll.deploy''.
Unable to add ''OneClickTest1_1_0_0_1/Infragistics2.Shared.v6.1.dll.deploy''
to the Web. Server error: The folder "/TransAct/OneClickTest1_1_0_0_1" is
marked executable. You are not allowed to put files into an executable
folder on this server. 1 1 OneClickTest1

How should I setup a website (aplication folder in IIS) to do this
correctly?

--
mo*******@nospam.nospam

推荐答案

您好moondaddy,


感谢您的帖子!


可以首先检查TransAct是否文件夹是IIS中的虚拟文件夹

manager?您可以使用inetmgr.exe验证这一点。来自cmd.exe。


另外,您是否可以提供有关ClickOnce的部分信息?

您是否将ClickOnce应用程序部署到远程服务器?


我建议您先将应用程序部署到localhost,然后再将
部署到IIS的根虚拟文件夹中。问题是否仍然存在?


祝你好运,

Jeffrey Tan

微软在线合作伙伴支持

安全! - www.microsoft.com/security

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

Hi moondaddy,

Thanks for your post!

Can you first check if "TransAct" folder is a virtual folder in IIS
manager? You can verify this by using "inetmgr.exe" from cmd.exe.

Also, can you provide some deployment information regarding your ClickOnce?
Did you deploy the ClickOnce application to a remote server?

I recommanded you first deploy the application to the localhost first and
the root virtual folder of IIS. Does the problem still exist?

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.


我会在几天后回到这里。这些问题出现在我本地网络上的Win Server 2003

上。当发布到远程服务器时,由于某种原因,我能够在这些问题之后获得
。我现在有其他问题需要解决,其中

将在其他主题中发布。


谢谢。


- -
mo*******@nospam.nosp am

"" Jeffrey Tan [MSFT]"" < JE *** @ online.microsoft.com>在消息中写道

news:ae ************** @ TK2MSFTNGXA03.phx.gbl ...
I''ll come back to this in a few days. These problems are on Win Server 2003
on my local network. When publishing to a remote server I was able to get
past these issues for some reason. I now have other issues to resolve which
will be posted in other threads.

thanks.

--
mo*******@nospam.nospam
""Jeffrey Tan[MSFT]"" <je***@online.microsoft.com> wrote in message
news:ae**************@TK2MSFTNGXA03.phx.gbl...
嗨moondaddy,

感谢你的帖子!

你能先检查一下TransAct吗?文件夹是IIS
管理器中的虚拟文件夹?您可以使用inetmgr.exe验证这一点。来自cmd.exe。

此外,您是否可以提供有关您的ClickOnce的部署信息?
您是否将ClickOnce应用程序部署到远程服务器?

致以诚挚的问候,
Jeffrey Tan
微软在线合作伙伴支持
获得安全保障! - www.microsoft.com/security
此帖子提供就像没有保证,也没有授予任何权利。
Hi moondaddy,

Thanks for your post!

Can you first check if "TransAct" folder is a virtual folder in IIS
manager? You can verify this by using "inetmgr.exe" from cmd.exe.

Also, can you provide some deployment information regarding your
ClickOnce?
Did you deploy the ClickOnce application to a remote server?

I recommanded you first deploy the application to the localhost first and
the root virtual folder of IIS. Does the problem still exist?

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.



我不知道为什么我可以部署到远程服务器OK和从
安装
那个远程服务器。我正在尝试从本地服务器部署和安装

但没有成功。我在本地服务器上尝试了很多配置

和我的项目属性,并且有很多不同的失败。要多少

来尝试描述所有各种设置和配置。它令人沮丧的是,这些都没有记录或讨论我发现的任何地方。\\ b
。我已经在ClickOnce部署的msdn中阅读了文档,并且

所有子主题。它所做的只是描述当你浏览项目中的属性

部署属性时基本设置

。有人需要编写一本深入的手册或预订

关于点击一次部署和涉及的问题。对于初学者来说,如何描述如何设置IIS。而不是我试图告诉你关于我的IIS如何设置的所有

,如何确切地告诉我如何从IIS开始配置IIS

和IIS中的网站刚安装完毕并且

一切都被关闭并锁定。完成此操作将是一个良好的开端,知道IIS已正确设置,剩下的问题很可能是我的项目配置的b $ b。由于我可以部署到

远程服务器,我猜测项目道具是好的。


哪里可以得到关于此的好文档?


谢谢。


-
mo ******* @ nospam.nosp am

"" Jeffrey Tan [MSFT]"" < JE *** @ online.microsoft.com>在消息中写道

news:ae ************** @ TK2MSFTNGXA03.phx.gbl ...
I don''t know why I can deploy to a remote server OK and the install from
that remote server. I''m trying to deploy and install from a local server
with no success. I have tried many configurations on both the local server
and in my project properties and have got many different failures. To many
to try to describe all the various settings and configurations. Its
frustrating that these are not documented or discussed anywhere that I have
found. I have read the documentation in msdn under ClickOnce deployment and
all of its sub topics. All it does is describe the basic settings which are
mostly self explanatory when you browse the properties in the project
deployment properties. Someone needs to write an in-depth manual or book
about click once deployment and the issues involved. For starters, how
about describing how to setup IIS. Rather than my trying to tell you all
about how my IIS is setup, how about telling EXACTLY how to configure IIS
and a website in IIS starting from the point where IIS is just installed and
everything is turned off and locked down. Having completed this would be a
good start knowing that IIS is properly setup and the remaining issues are
most likely in how my project is configures. Since I can deploy to the
remote server, I am guessing that the Project props are OK.

Where can I get good documentation on this?

Thanks.

--
mo*******@nospam.nospam
""Jeffrey Tan[MSFT]"" <je***@online.microsoft.com> wrote in message
news:ae**************@TK2MSFTNGXA03.phx.gbl...
嗨moondaddy,

感谢你的帖子!

你能先检查一下TransAct吗?文件夹是IIS
管理器中的虚拟文件夹?您可以使用inetmgr.exe验证这一点。来自cmd.exe。

此外,您是否可以提供有关您的ClickOnce的部署信息?
您是否将ClickOnce应用程序部署到远程服务器?

致以诚挚的问候,
Jeffrey Tan
微软在线合作伙伴支持
获得安全保障! - www.microsoft.com/security
此帖子提供就像没有保证,也没有赋予任何权利。
Hi moondaddy,

Thanks for your post!

Can you first check if "TransAct" folder is a virtual folder in IIS
manager? You can verify this by using "inetmgr.exe" from cmd.exe.

Also, can you provide some deployment information regarding your
ClickOnce?
Did you deploy the ClickOnce application to a remote server?

I recommanded you first deploy the application to the localhost first and
the root virtual folder of IIS. Does the problem still exist?

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.



这篇关于在Web服务器上部署ClickOnce失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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