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

[3132 byte] By [Vaassu] at [2008-2-4]
# 1

Hi Vasu,

Thanks for your note - I think that I have been helping you on this issue on the other forum - is your team still facing issues?

The CSFOHSBE30 database and OHSBE-Service account should have been created by the CSF 3.0 OHSBE installer, which usually works without any issues - so this is not a common error.

The OHSBE-Service account should be the identity used by the IIS application pool. This account should belong to the IIS_WPG group, and it should also have a login to SQLServer, have access to the CSFOHSBE30 database, and belong to the OHSBE_USERS role, so that stored procedures can be executed...

Here are some follow-up questions for you:

(1) Were there any errors during installation? If there were, were you able to capture or record them?

(2) Have you attempted installation on any other server? Is it possible to try running the installer again on another machine?

(3) Can you send us the application, system, and OHSBE event logs for this server?

Many Thanks, Vasu!!!

-Rob.

Rob-MSFT at 2007-10-8 > top of Msdn Tech,Connected Services Framework,Connected Services Framework...