我寫了一個託管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