Re: InvalidCastException Using AzMan from ASP.NET

From: Ying-Shen Yu[MSFT] (v-yiy_at_online.microsoft.com)
Date: 02/06/04


Date: Fri, 06 Feb 2004 11:50:22 GMT

Hi Chris,

Thanks for the detail information.

80004002(E_NOINTERFACE) might be caused by many issues, however mostly the
error was caused by
threading model mismatch or permmision denied.

First I'd like you check the sample in this article,

<Role-Based Access Control for Multi-tier Applications Using Authorization
Manager>
http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtechn
ol/windowsserver2003/maintain/security/athmanwp.asp

especially make sure you are running the application server in a service
account. To configure your ASP.NET application server to run in a service
account, you create a separate IIS 6.0 worker process which runs in the
security context of the service account created for the application server.
You can then configure your ASP.NET application to use this dedicated IIS
worker process. For more information on IIS 6.0 worker processes, see the
Microsoft Internet Information Services page on the Microsoft Web site at

http://www.microsoft.com/technet/prodtechnol/iis/default.asp.

Alternatively, you can use ASP.NET to configure the context in which an
application runs using the Web.config file for your ASP.NET application. In
that case, you should configure the ASP.NET application to run as the
dedicated service account.

In Addition, I'd like you try turning on the ASP Compatibility mode, add
the aspcompat=true attribute to the Page Directive. Adding this attribute
accomplishes two things:
1) ASP.NET uses Single-Threaded Apartment (STA) threads when accessing the
COM component. The default is to use Multi-Threaded Apartment, or MTA,
threading.

2) ASP.NET provides access to the ASP-intrinsic objects in a
backward-compatible fashion.

Also, just to confirm does this problem also occur if deployed your program
on some other windows 2003 servers?
Thanks!

Best regards,

Ying-Shen Yu [MSFT]
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security

This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, "online" should be removed before
sending.



Relevant Pages

  • RE: Error ID 32090 Fax
    ... Click Services tab and select Hide All Microsoft Services and Disable ... On the SBS Server, click Start -> Run, type GPMC.MSC and click OK. ... Run Gpupdate /force on both server and client computers. ... sure that the FAX server is using the NT AUTHORITY\Network Service account. ...
    (microsoft.public.windows.server.sbs)
  • Re: Companyweb not avaliable / Server application unavailable
    ... Add the same ACLs for the NT AUTHORITY\NETWORK SERVICE account as those ... IIS 6.0 Web page on a Windows Server 2003-based domain controller ... Microsoft CSS Online Newsgroup Support ... This newsgroup only focuses on SBS technical issues. ...
    (microsoft.public.windows.server.sbs)
  • Re: Running Analysis Server 2000 on seperate box
    ... changing the service account sorted things. ... with 2GB ram on Windows Server 2003. ... The server has both the database and Analysis Services ... >to use Local System which is fine for local databases, ...
    (microsoft.public.sqlserver.olap)
  • Re: SPN for SSL over common name
    ... you can't register those SPNs under the SQL Server's ... service account is the MSSQL SPN. ... That SPN should be registered under ... Lastly, since the SQL Server is not being used for delegation anywhere, ...
    (microsoft.public.inetserver.iis.security)
  • Re: In SSP Admin page Search Setting link fails with access denied
    ... First I modified the permissions of the SSP service account as you said. ... administratie and service accounts (Office SharePoint Server): ... How to change the passwords for service accounts in SharePoint Server ...
    (microsoft.public.sharepoint.portalserver)