为.exe的不是.dll进程内组件,他老说asp.net没有权限,但在控制台程序(c#)中能行,不知道改怎么解决,请指点,谢谢
[email protected]

解决方案 »

  1.   

    感谢您使用微软产品!
    在Win2k的默认安装下,ASP.NET运行在ASPNET账户下(进程名为aspnet_wp.exe)。ASPNET只是Users组中的一个nonprivilged 用户。另外默认下ASP.NET不使用impersonate.所以默认下你要针对ASPNET配置DCOM权限。你也可以覆盖ASP.NET的安全运行账号。详细信息参看:
    1. Title: INFO: Process and Request Identity in ASP.NET
         URL: http://support.microsoft.com/default.aspx?scid=KB;EN-US;q317012
    2. Authentication in ASP .NET: .NET Security Guidance  
        URL: http://msdn.microsoft.com/library/en-us/dnbda/html/authaspdotnet.asp
    3.  ASP.NET Process Identity
        URL: http://msdn.microsoft.com/library/en-us/vsent7/html/vxconApplicationIdentity.asp- 微软全球技术中心 VC技术支持 本贴子以“现状”提供且没有任何担保,同时也没有授予任何权利。具体事项可参见使用条款 
    (http://support.microsoft.com/directory/worldwide/zh-cn/community/terms_chs.asp)。 
    为了为您创建更好的讨论环境,请参加我们的用户满意度调查 
    (http://support.microsoft.com/directory/worldwide/zh-cn/community/survey.asp?key=(S,49854782))。
      

  2.   

    对了,我调用以前vb写的com,老是有问题