我写了一个托管WCF服务的应用程序。 我试着用这个配置运行应用程序。没有UAC /管理员权限的主机WCF应用程序
<?xml version="1.0"?>
<configuration>
<system.serviceModel>
<services>
<service name="MyApp.Service" behaviorConfiguration="ServiceBehavior">
<host>
<baseAddresses>
<add baseAddress="http://localhost:8000/service"/>
</baseAddresses>
</host>
<endpoint address="" binding="wsHttpBinding" contract="MyApp.IService"/>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="ServiceBehavior">
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="False"/>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
但它导致应用程序需要以管理员身份运行。
是否可以在没有管理员权限的情况下运行此应用程序?(如果可能,只更改配置。)另外,我还需要在Visual Studio中添加服务引用来编写客户端程序。如果可能的话,请保持应用程序可以在Visual Studio 2010中
我的目标是让我的程序可以在没有管理员权限的用户帐户上运行,并且没有管理员可以帮助用户。这意味着用户不能添加分配的URL,但这个问题仍然无法解决。 – user554712 2011-04-30 15:45:09