简体   繁体   English

ClickOnce应用程序访问Web服务

[英]ClickOnce application accessing web service

I have a ClickOnce application that is installed from the web, configured as a Full Trust application. 我有一个从Web安装的ClickOnce应用程序,配置为“完全信任”应用程序。 The application accesses a web service from a different host than the install URL. 该应用程序从安装URL之外的其他主机访问Web服务。

If I understand this correctly, the application should not be able to access the web service: 如果我正确理解这一点 ,则应用程序将无法访问Web服务:

Web Install: Can only access the Web server from which the application was installed. Web安装:只能访问从中安装了应用程序的Web服务器。

If your ClickOnce application cannot access a Web server because of security restrictions, the application must assert WebPermission for that Web site. 如果您的ClickOnce应用程序由于安全限制而无法访问Web服务器,则该应用程序必须声明该网站的WebPermission。 For more information about increasing security permissions for a ClickOnce application, see Securing ClickOnce Applications. 有关增加ClickOnce应用程序的安全权限的详细信息,请参阅保护ClickOnce应用程序的安全。

I've been able to install the application on several machines with no issues. 我已经能够在多台计算机上安装该应用程序而没有任何问题。 Am I misinterpreting the statement above? 我是否误解了以上陈述? Or am I not running into this restriction for some other reason (such as my user account being in the admin group or something like that)? 还是我由于其他原因(例如我的用户帐户在admin组中或其他原因)没有遇到此限制?

Also, what does it mean to "assert WebPermission for that Web site". 另外,“为该网站声明WebPermission”是什么意思。 If there is a security restriction, does this allow my application to bypass it? 如果存在安全限制,这是否允许我的应用程序绕过它?

I believe the restrictions you quote on where a ClickOnce application can access data refers to data files. 我相信您引用的关于ClickOnce应用程序可以访问数据的位置的限制是指数据文件。 The next section refers to an XML Web Service. 下一节将介绍XML Web Service。

I have several ClickOnce applications that call WCF services for information. 我有几个ClickOnce应用程序,它们调用WCF服务以获取信息。 They are in the same domain as the ClickOnce deployment, but not on the same server. 它们与ClickOnce部署位于同一域中,但不在同一服务器上。

What exactly are you trying to accomplish? 您到底想完成什么?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM