OHSBE Web Service DB Access Exception
Hi,
I'm getting exception "Access to port is denied" when running OH web service.(http://localhost/OHSBE30/OrderHandling.ashx).
Exception details:
System.UnAuthorizedAccessException and Stack Trace info is
Stack Trace:
[UnauthorizedAccessException: Access to the port is denied.]
System.IO.Ports.InternalResources.WinIOError(Int32 errorCode, String str) +632003
System.IO.Ports.InternalResources.WinIOError() +30
System.Threading.Semaphore..ctor(Int32 initialCount, Int32 maximumCount, String name) +1853355
Microsoft.ConnectedServices.Sbe.OrderHandling.MasterController.Security.DataProtector..ctor(Store tempStore, String certName) +47
Microsoft.ConnectedServices.Sbe.OrderHandling.SbeMasterControllerDatabaseAccess..cctor() +103
[TypeInitializationException: The type initializer for 'Microsoft.ConnectedServices.Sbe.OrderHandling.SbeMasterControllerDatabaseAccess' threw an exception.]
Microsoft.ConnectedServices.Sbe.OrderHandling.SbeMasterController.Initialize() +493
Microsoft.ConnectedServices.Sbe.OrderHandling.SbeMasterController..ctor() +26
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck) +0
System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache) +103
System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) +261
System.Activator.CreateInstance(Type type, Boolean nonPublic) +66
System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +1036
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +114
System.Web.Configuration.HttpHandlerAction.Create() +57
System.Web.Configuration.HandlerFactoryCache..ctor(HttpHandlerAction mapping) +16
System.Web.HttpApplication.GetFactory(HttpHandlerAction mapping) +67
System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +100
System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +120
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
Also,
I have given DB (CSFOHSBE30) access to OHSEB-Service and IIS-WPG users.
Rgs
Vasu

