J
Jayme Pechan
I wrote a very simply web application and I'm having all sorts of problems
with the security getting in the way. All the web application does is load
an out-of-process COM server that is running as a service. The code is here
written for both a WinForm C# application (which works correctly) and a Web
application (which does not work correctly):
// C# application
xtapisvrLib.XtapiConfig x = new xtapisvrLib.XtapiConfigClass();
txtConfig.Text = x.GetConfiguration();
// WEB APPLICATION
xtapisvrLib.XtapiConfig xc = new xtapisvrLib.XtapiConfigClass();
TextBox1.Text = xc.GetConfiguration();
I get an exception : System.UnautorizedAccessException: Access is denied.
So as an attempted to simply get this working, I added the IUSR_CDTBTL1F6
user and the ASPNET user to the administrator account with no effect.
My authorization section in my Web.Config looks like this:
<authentication mode="None" />
<authorization>
<allow users="*" />
</authorization>
This Web Application works fine on my Windows XP development machine but if
I try to put it on my Windows 2000 test machine, it gives me the exception.
Anyone have any ideas where I can go from here? I know of no other security
mechnism for a Web Application to access a local COM object.
Thanks
with the security getting in the way. All the web application does is load
an out-of-process COM server that is running as a service. The code is here
written for both a WinForm C# application (which works correctly) and a Web
application (which does not work correctly):
// C# application
xtapisvrLib.XtapiConfig x = new xtapisvrLib.XtapiConfigClass();
txtConfig.Text = x.GetConfiguration();
// WEB APPLICATION
xtapisvrLib.XtapiConfig xc = new xtapisvrLib.XtapiConfigClass();
TextBox1.Text = xc.GetConfiguration();
I get an exception : System.UnautorizedAccessException: Access is denied.
So as an attempted to simply get this working, I added the IUSR_CDTBTL1F6
user and the ASPNET user to the administrator account with no effect.
My authorization section in my Web.Config looks like this:
<authentication mode="None" />
<authorization>
<allow users="*" />
</authorization>
This Web Application works fine on my Windows XP development machine but if
I try to put it on my Windows 2000 test machine, it gives me the exception.
Anyone have any ideas where I can go from here? I know of no other security
mechnism for a Web Application to access a local COM object.
Thanks