HATA
Süreç üzerinde Services'e basarak Webservice producer ile yeni bir webservice oluşturmaya çalıştığımızda aşağıdaki gibi bir hata alıyorsak;
2015-08-10 17:46:27.9708|FATAL|Web|12|Unhandled exception occured.|System.ServiceModel.ServiceActivationException: The service '/services/process/92e88950-0d87-4c21-84fe-dee6614440af' cannot be activated due to an exception during compilation. The exception message is: The system cannot find the file specified. (Exception from HRESULT: 0x80070002). ---> System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002) at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) at AltiKare.Security.Cryptography.SelfSignedCertificate.CreateSelfSignCertificatePfx(String x500, DateTime startTime, DateTime endTime, SecureString password) at AltiKare.Workflow.Business.Server.Services.ProcessService.GenerateCertificate(String certId, String host) at AltiKare.Workflow.Business.Server.Services.ProcessService.CreateDescription(IDictionary`2& implementedContracts) at System.ServiceModel.ServiceHostBase.InitializeDescription(UriSchemeKeyedCollection baseAddresses) at System.ServiceModel.ServiceHost.InitializeDescription(Object singletonInstance, UriSchemeKeyedCollection baseAddresses) at AltiKare.Workflow.Business.Server.Services.ProcessService..ctor(Guid processId, Uri[] baseAddresses, Application application, String domainName) at AltiKare.Workflow.Web.Services.ProcessServices.CreateServiceHost(String constructorString, Uri[] baseAddresses) at System.ServiceModel.ServiceHostingEnvironment.HostingManager.CreateService(String normalizedVirtualPath, EventTraceActivity eventTraceActivity) at System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(ServiceActivationInfo serviceActivationInfo, EventTraceActivity eventTraceActivity) at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity) --- End of inner exception stack trace --- at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result) at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) at System.Web.HttpApplication.CallHandlerExecutionStep.OnAsyncHandlerCompletion(IAsyncResult ar) 2015-08-10 17:49:51.2201|FATAL|Web|5|Unhandled exception occured.|System.ServiceModel.ServiceActivationException: The service '/services/process/92e88950-0d87-4c21-84fe-dee6614440af' cannot be activated due to an exception during compilation. The exception message is: The system cannot find the file specified. (Exception from HRESULT: 0x80070002). ---> System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002) at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) at AltiKare.Security.Cryptography.SelfSignedCertificate.CreateSelfSignCertificatePfx(String x500, DateTime startTime, DateTime endTime, SecureString password) at AltiKare.Workflow.Business.Server.Services.ProcessService.GenerateCertificate(String certId, String host) at AltiKare.Workflow.Business.Server.Services.ProcessService.CreateDescription(IDictionary`2& implementedContracts) at System.ServiceModel.ServiceHostBase.InitializeDescription(UriSchemeKeyedCollection baseAddresses) at System.ServiceModel.ServiceHost.InitializeDescription(Object singletonInstance, UriSchemeKeyedCollection baseAddresses) at AltiKare.Workflow.Business.Server.Services.ProcessService..ctor(Guid processId, Uri[] baseAddresses, Application application, String domainName) at AltiKare.Workflow.Web.Services.ProcessServices.CreateServiceHost(String constructorString, Uri[] baseAddresses) at System.ServiceModel.ServiceHostingEnvironment.HostingManager.CreateService(String normalizedVirtualPath, EventTraceActivity eventTraceActivity) at System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(ServiceActivationInfo serviceActivationInfo, EventTraceActivity eventTraceActivity) at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity) --- End of inner exception stack trace --- at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result) at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) at System.Web.HttpApplication.CallHandlerExecutionStep.OnAsyncHandlerCompletion(IAsyncResult ar)
ÇÖZÜM
IIS'te ilgili pool'un Advance Settings'inde "Load User Profile" property'sinin "True" yapılması gerekiyor.