两星用户的问题:c#写的组件在ASP中调用,在win2K没问题,在win2003上却不行,请有经验的高手来看看,分不够可以再加,但我想能解决这问题

gshope 2005-01-07 10:46:46
用C#写了个组件,已经具有强名称,然后用以下命令部署到win2k服务器:
regasm SingleSign-onKey.dll /tbl SingleSign-onKey.tlb
gacutil /I SingleSign-onKey.dll
然后在asp里:set obj=server.createobject(....)
一切OK!
但是当我在server2003上做完全一样的操作时,asp文件运行时报以下错误:
错误 '80070002'

我查了http://support.microsoft.com/default.aspx?scid=kb;en-us;836925#toc,也没说出怎么解决,
谁能这方面经验,谢谢.
...全文
475 42 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
42 条回复
切换为时间正序
请发表友善的回复…
发表回复
mengfanpp 2005-01-08
  • 打赏
  • 举报
回复
北京.net两星了,挺快!!!
只可惜我现在不做.net了,转Java了,可是还是舍不得这里!
你的问题不会,帮顶!
saucer 2005-01-08
  • 打赏
  • 举报
回复
先注销那个组件,重新注册

感觉是权限问题,试着写个VB6(不是VB.NET)的程序,看能否使用你的组件
superlw 2005-01-08
  • 打赏
  • 举报
回复
你支持asp的服务开了没有啊!
superlw 2005-01-08
  • 打赏
  • 举报
回复
靠,楼上有个~~~~~~~~5个~~~~的 怕怕!!
hubinasm 2005-01-07
  • 打赏
  • 举报
回复
可能是权限问题
tengjian1981 2005-01-07
  • 打赏
  • 举报
回复
up
徐家大哥 2005-01-07
  • 打赏
  • 举报
回复
up
happyfamily 2005-01-07
  • 打赏
  • 举报
回复
up
ieooo 2005-01-07
  • 打赏
  • 举报
回复
Symptoms
Registering an ATL server that has a long file name or one that resides in a directory with a long path name, returns a 0x80070002 error:

The system cannot find the file specified.

For DLLs, this error is returned by Regsvr32.exe. For EXEs, the call to Module::RegisterServer (CComModule::RegisterServer) in _tWinMain() returns this error.



Cause
ATL's registration code uses GetShortPathName() to retrieve the short name of the file and uses the short name for registration. GetShortPathName() fails if the file doesn't have a short file name. The default behavior in Windows NT, Windows 95, and Windows 98 is to automatically create short file names (8.3 format) for files with long names. You can turn this option off by using the "System Policy Editor" (Poledit.exe). Certain file systems also don't support creation of short names by default. ATL tries to use the invalid file name returned by GetShortPathName() in a call to LoadLibraryEx(), and fails with 0x80070002.

cctaiyang 2005-01-07
  • 打赏
  • 举报
回复
是你机器配置的问题
goody9807 2005-01-07
  • 打赏
  • 举报
回复
gz
xueqs 2005-01-07
  • 打赏
  • 举报
回复
估计是操作系统设置的问题
gao_771123 2005-01-07
  • 打赏
  • 举报
回复
我觉得一定是iis6.0中的某些设置的原因,你可以找找iis6.0的帮助看看,我上次遇到了类似的问题,没办法,后来找帮助终于解决问题,你可以试试。
gao_771123 2005-01-07
  • 打赏
  • 举报
回复
而且win2003默认安装完iis6.0后不支持asp开发的系统,需要设置成可以访问asp程序才可以。
gshope 2005-01-07
  • 打赏
  • 举报
回复
to gao_771123(星期五)
你说的办法不行
gao_771123 2005-01-07
  • 打赏
  • 举报
回复
在win2003中配置调用com组件的系统,需要设置将 IIS 配置为IIS 5.0 隔离模式
将 IIS 配置为 IIS 5.0 隔离模式

在“IIS 管理器”中,展开本地计算机,右键单击“网站”,然后单击“属性”。
单击“服务”选项卡,选中“以 IIS 5.0 隔离模式运行 WWW 服务”复选框,然后单击“确定”。
要启动 WWW 服务,请单击“是”。
qwjcool 2005-01-07
  • 打赏
  • 举报
回复
up
gshope 2005-01-07
  • 打赏
  • 举报
回复
.NET Wizard我已经找到了
gshope 2005-01-07
  • 打赏
  • 举报
回复
控制面伴里有没有.NET Wizard呀!!
hubinasm 2005-01-07
  • 打赏
  • 举报
回复
你还是先注销掉原来注册的那个吧
加载更多回复(22)

62,243

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧