WCFサービスがサーバーで機能していません。次のエラーが発生します
内部エラーのため、サーバーはリクエストを処理できませんでした。エラーの詳細については、サーバーでIncludeExceptionDetailInFaults(ServiceBehaviorAttributeまたは構成動作のいずれかから)をオンにして例外情報をクライアントに送り返すか、Microsoft .NET Framework3.0SDKのドキュメントに従ってトレースをオンにします。サーバーのトレースログを調べます。
ローカルホストで私のために働いています
web.configでエンドポイントアドレスも設定しました
<service name="Myproject.project.Web.UI.SurveyServices">
<endpoint adress="http://www.abc.com/SurveyServices/SurveyServiceWeb.svc"
behaviorConfiguration="Myproject.project.Web.UI.SurveyServices.SurveyServiceWebAspNetAjaxBehavior"
binding="webHttpBinding"
contract="Myproject.project.Web.UI.SurveyServices.SurveyServiceWeb" />
</service>
データアクセスにMicrosoft.Practices.Unityを使用しています。例外の詳細を見ていると、次のエラーが返されました。
Some internal error occured while processing your request please try again later Error:System.NullReferenceException: Object reference not set to an instance of an object.
at MyProject.Project.Web.Extensions.UnityUtiliy.GetContainer() in E:\HostingSpaces\montotec\myproject.domain.com\wwwroot\MyProject.Project.Web.Extensions\UnityUtiliy.cs:line 62
at MyProject.Project.Business.Surveys.SurveyServiceManager.GetSurveyDetailsBySurveyId(Int32 SurveyId) in E:\HostingSpaces\montotec\Myproject.domain.com\wwwroot\Myproject.project.Business.Surveys\SurveyServiceManager.cs:line 31"