首页 新闻 会员 周边

Ibatis.net 出现Unable to obtain public key for Stron

0
[已关闭问题]
<h2><em>使用Ibatis 框架,用我自己本机IIS发布没问题。但发布到购买的空间,就出这个问题了。不知道大家有没有遇到,帮忙解决。谢谢了。</em></h2> <h2><em></em></h2> <h2><em>Unable to obtain public key for StrongNameKeyPair.</em> </h2> <p><span style="font-family: Arial, Helvetica, Geneva, SunSans-Regular, sans-serif;"><strong><span style="font-family: Verdana;">Description: </span></strong>An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. <br /><br /><strong><span style="font-family: Verdana;">Exception Details: </span></strong>System.ArgumentException: Unable to obtain public key for StrongNameKeyPair.<br /><br /><strong><span style="font-family: Verdana;">Source Error:</span></strong> <br /><br /> <table border="0" width="100%" bgcolor="#ffffcc"> <tbody> <tr> <td><code>An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.</code> </td> </tr> </tbody> </table> <br /><strong><span style="font-family: Verdana;">Stack Trace:</span></strong> <br /><br /> <table border="0" width="100%" bgcolor="#ffffcc"> <tbody> <tr> <td><code> <pre>[ArgumentException: Unable to obtain public key for StrongNameKeyPair.] System.Reflection.StrongNameKeyPair.nGetPublicKey(Boolean exported, Byte[] array, String container) +0 System.Reflection.StrongNameKeyPair.get_PublicKey() +27 System.AppDomain.InternalDefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access, String dir, Evidence evidence, PermissionSet requiredPermissions, PermissionSet optionalPermissions, PermissionSet refusedPermissions, StackCrawlMark&amp; stackMark, IEnumerable`1 unsafeAssemblyAttributes) +732 System.AppDomain.DefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access) +38 Castle.DynamicProxy.Builder.CodeGenerators.ModuleScope.CreateModule(Boolean signStrongName) +104 Castle.DynamicProxy.Builder.CodeGenerators.ModuleScope.ObtainDynamicModule(Boolean signStrongName) +66 Castle.DynamicProxy.Builder.CodeBuilder.EasyType..ctor(ModuleScope modulescope, String name, Type baseType, Type[] interfaces, Boolean serializable) +61 Castle.DynamicProxy.Builder.CodeGenerators.BaseCodeGenerator.CreateTypeBuilder(String typeName, Type baseType, Type[] interfaces) +50 Castle.DynamicProxy.Builder.CodeGenerators.InterfaceProxyGenerator.GenerateCode(Type[] interfaces, Type targetType) +286 Castle.DynamicProxy.Builder.DefaultProxyBuilder.CreateInterfaceProxy(Type[] interfaces, Type type) +69 Castle.DynamicProxy.ProxyGenerator.CreateProxy(Type[] interfaces, IInterceptor interceptor, Object target) +78 IBatisNet.DataAccess.Configuration.DaoProxy.NewInstance(Dao dao) in D:\邦讯\bonseensvn\bonseen\70-Code\web\BonseenNew\IBatisSrc\IBatisNet.DataAccess\Configuration\DaoProxy.cs:85 IBatisNet.DataAccess.Configuration.Dao.Initialize(DaoManager daoManager) in D:\邦讯\bonseensvn\bonseen\70-Code\web\BonseenNew\IBatisSrc\IBatisNet.DataAccess\Configuration\Dao.cs:173 [ConfigurationException: Error configuring DAO. Cause: Unable to obtain public key for StrongNameKeyPair.] IBatisNet.DataAccess.Configuration.Dao.Initialize(DaoManager daoManager) in D:\邦讯\bonseensvn\bonseen\70-Code\web\BonseenNew\IBatisSrc\IBatisNet.DataAccess\Configuration\Dao.cs:177 IBatisNet.DataAccess.Configuration.DomDaoManagerBuilder.ParseDaoFactory(ConfigurationScope configurationScope, Da
Bonseen的主页 Bonseen | 初学一级 | 园豆:200
提问于:2008-10-10 10:17
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册