D
Dominick Baier [DevelopMentor]
Hello z,
yes you have to pre-register the COM+ component - annotate as much as possible
with attributes in your ServicedComponent and use regsvcs.exe from the command
line at install time.
---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com
yes you have to pre-register the COM+ component - annotate as much as possible
with attributes in your ServicedComponent and use regsvcs.exe from the command
line at install time.
---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com
Hi,
using enterprise services from dot-net:
on windows application it did OK.
on ASP.NET i get the folowing error. (see in the end)
Access to the registry key
HKEY_CLASSES_ROOT\EntSrvcTest1_direct.Global is denied
if i use the components services MMC snap in to create a new
application with the required DLL, the ASP.NET call does fine.
what are the steps in order for the ASP.NET process to make the COM+
(enterprise services) registration successfully as a windows
application?
should this be the way?
or should it be pre-configured in the com+ catalog? and if so what is
the
recomended way to use a command line tool for this?
also is there some XP/Win2003 server differences that should be
considered?
TIA!
Server Error in '/EntSrvcTest1-direct' Application.
----------------------------------------------------------------------
----------
Access to the registry key
HKEY_CLASSES_ROOT\EntSrvcTest1_direct.Global is
denied.
Description: An unhandled exception occurred during the execution of
the
current web request. Please review the stack trace for more
information
about the error and where it originated in the code.
Exception Details: System.UnauthorizedAccessException: Access to the
registry key HKEY_CLASSES_ROOT\EntSrvcTest1_direct.Global is denied.
ASP.NET is not authorized to access the requested resource. Consider
granting access rights to the resource to the ASP.NET request
identity. ASP.NET has a base process identity (typically
{MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if
the application is not impersonating. If the application is
impersonating via <identity impersonate="true"/>, the identity will be
the anonymous user (typically IUSR_MACHINENAME) or the authenticated
request user.
To grant ASP.NET write access to a file, right-click the file in
Explorer, choose "Properties" and select the Security tab. Click "Add"
to add the appropriate user or group. Highlight the ASP.NET account,
and check the boxes for the desired access.
Source Error:
Line 45:
Line 46: Private Sub Button1_Click(ByVal sender As System.Object,
ByVal
e As System.EventArgs) Handles Button1.Click
Line 47: Dim oTran As New cTran
Line 48: oTran.MakeChange()
Line 49:
Source File: c:\inetpub\wwwroot\EntSrvcTest1-direct\WebForm1.aspx.vb
Line: 47
Stack Trace:
[UnauthorizedAccessException: Access to the registry key
HKEY_CLASSES_ROOT\EntSrvcTest1_direct.Global is denied.]
Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)
+74
Microsoft.Win32.RegistryKey.CreateSubKey(String subkey) +503
System.Runtime.InteropServices.RegistrationServices.RegisterManagedTyp
e(Type
type, String strAsmName, String strAsmVersion, String strAsmCodeBase,
String
strRuntimeVersion) +216
System.Runtime.InteropServices.RegistrationServices.RegisterAssembly(A
ssembly
assembly, AssemblyRegistrationFlags flags) +258
System.EnterpriseServices.RegistrationDriver.ClassicRegistration(Assem
bly
asm) +100
[RegistrationException: Failed to register assembly
'EntSrvcTest1-direct,
Version=1.0.2084.17791, Culture=neutral,
PublicKeyToken=1734505f1056dd4f'.]
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
reqMsg, IMessage retMsg) +264
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
msgData, Int32 type) +877
System.EnterpriseServices.RegistrationHelperTx.InstallAssemblyFromConf
ig(RegistrationConfig&
regConfig, Object sync) +0
System.EnterpriseServices.RegistrationHelper.TryTransactedInstall(Regi
strationConfig
regConfig) +215
System.EnterpriseServices.RegistrationHelper.InstallAssemblyFromConfig
(RegistrationConfig&
regConfig) +241
System.EnterpriseServices.RegistrationHelper.InstallAssembly(String
assembly, String& application, String partition, String& tlb,
InstallationFlags installFlags) +116
System.EnterpriseServices.RegistrationHelper.InstallAssembly(String
assembly, String& application, String& tlb, InstallationFlags
installFlags)
+19
System.EnterpriseServices.RegistrationHelper.System.EnterpriseServices
.Thunk.IThunkInstallation.DefaultInstall(String
asm) +43
System.EnterpriseServices.Thunk.Proxy.RegisterAssembly(Assembly
assembly)
+99
System.EnterpriseServices.Thunk.Proxy.LazyRegister(Guid id, Type
serverType, Boolean checkCache) +200
System.EnterpriseServices.Thunk.Proxy.CoCreateObject(Type
serverType,
Boolean bQuerySCInfo, Boolean& bIsAnotherProcess, String& uri) +215
System.EnterpriseServices.ServicedComponentProxyAttribute.CreateInstan
ce(Type
serverType) +181
System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContext
OK(Type
serverType, Object[] props, Boolean bNewObj) +74
EntSrvcTest1_direct.WebForm1.Button1_Click(Object sender, EventArgs
e) in
c:\inetpub\wwwroot\EntSrvcTest1-direct\WebForm1.aspx.vb:47
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.R
aisePostBackEvent(String
eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
+33
System.Web.UI.Page.ProcessRequestMain() +1292
----------------------------------------------------------------------