您好我有一个服务托管在IIS本地服务器上并由asp.net应用程序使用
我在WCF很新,所以我不知道如何知道导致此异常的原因
请求的服务,' http://localhost/Service.svc/HomePageGenerator'无法激活。有关详细信息,请参阅服务器的诊断跟踪日志。
它在
public HomePageGenerator.HomePage homePageGenerator() {
return base.Channel.homePageGenerator();
}
这里是堆栈跟踪
[ServiceActivationException: The requested service, 'http://localhost/Service.svc/HomePageGenerator' could not be activated. See the server's diagnostic trace logs for more information.]
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +10733331
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +336
HomePageGenerator.IHomePageGenerator.homePageGenerator() +0
HomePageGenerator.HomePageGeneratorClient.homePageGenerator() in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\e32eb7ea\44e0d8ae\App_WebReferences.dj5hozd3.0.cs:451
_Default.Button1_Click(Object sender, EventArgs e) in d:\Websites\OffTagWebsite\Default.aspx.cs:18
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +9750842
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +196
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +35
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1724