首页 新闻 会员 周边

Sql Server 2005 CLR 调用COM组件出错

0
悬赏园豆:20 [已关闭问题]
<P>我用C#调用SAP的com组件,只要一创建就出错:</P> <P>&nbsp;&nbsp;&nbsp;SAPLogonCtrl.SAPLogonControl slc = new SAPLogonCtrl.SAPLogonControl();<BR>在执行用户定义例程或聚合 'ExistCard' 期间出现 .NET Framework 错误: <BR>System.UriFormatException: Invalid URI: The URI is empty.<BR>System.UriFormatException: <BR>&nbsp;&nbsp; at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)<BR>&nbsp;&nbsp; at System.ComponentModel.Design.RuntimeLicenseContext.GetLocalPath(String fileName)<BR>&nbsp;&nbsp; at System.ComponentModel.Design.RuntimeLicenseContext.GetSavedLicenseKey(Type type, Assembly resourceAssembly)<BR>&nbsp;&nbsp; at System.ComponentModel.LicenseManager.LicenseInteropHelper.GetCurrentContextInfo(Int32&amp; fDesignTime, IntPtr&amp; bstrKey, RuntimeTypeHandle rth)<BR>&nbsp;&nbsp; at Pansoft.Call.SAP.SAPProxy.Init(String appServer, String sys, Int32 sysNum, String client, String user, String pass, String lang)<BR></P> <P>有人知道吗?很急。SAP Connector只支持.NET 1.1,并且要在2003下开发,我不想安装了:(</P>
海阔天空的主页 海阔天空 | 初学一级 | 园豆:185
提问于:2008-06-18 23:41
< >
分享
其他回答(1)
0
感觉是SAP组件在创建时需要从某个URI获取License,但却没有配置这个URI的地址,请确定你这个SAP组件是否需要配置什么License的获取路径之类的东西
eaglet | 园豆:17139 (专家六级) | 2008-06-19 08:01
0
应该不是吧?我用Console程序运行时也没有设置什么URI的啊。再说发现网上有其他人在Sql Server 2005 CLR中使用COM也出现这个问题了
海阔天空 | 园豆:185 (初学一级) | 2008-06-19 09:56
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册