我遇到组装错误 [英] I'm getting an error of assembly

查看:83
本文介绍了我遇到组装错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我收到此错误,而我也没有相同的解决方案,请帮助我解决此错误.

Hello All, I am getting this error and I am not getting the solution for the same, please help me with this error.

Server Error in '/ekisan' Application.


Method 'RegisterUser' in type 'RegistrationLibrary.RegistrationHandler' from assembly 'RegistrationLibrary, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.



Description: 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.


Exception Details: System.TypeLoadException: Method 'RegisterUser' in type 'RegistrationLibrary.RegistrationHandler' from assembly 'RegistrationLibrary, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.



Source Error:
Line 389:            tdError.InnerText = m_ExcHndlr.HandleException(ex);
Line 390:        }
Line 391:    }
Line 392:    private void MaintainuserCookie(IDataReader userInfo)
Line 393:    {


Source File: f:\KISAN\NewKisanCom28-1-2011\KisanCom\trunk\src\ekisan\MasterPages\MainMasterPage.master.cs    Line: 391



还是不行.
这是我在BaseLibrary中的界面
---------------------------------



Still not working guys.
This is my Interface in BaseLibrary
---------------------------------

using
System;
namespace
BaseLibrary
{
public interface IRegistration
{
void RegisterUser(int userID, string gender, bool IsOrganization);//Added two para gender and Is orga.by manoj 1-2-11
void RegisterAdmin<T>(T registrationAdminInfo);
void CheckAvailability(string userName, string emailID);
void DeleteRegisteredUser<T>(T userID);
void SendActivationURL<T>(T registrationInfo, string activationKey);
}
}
-------------------------------

and I have Used in RegistrationLigrary

public class RegistrationHandler : DataOperationsBase, IRegistration
{
//All method are defined here
}



会发生什么......请

谢谢



what would have happen...... Please

Thanks

推荐答案

您需要使用具有该实现的较新版本进行更新.删除所有旧文件后,只需重做完整的部署即可.

祝您好运!
You need to update it with the newer version that does have the implementation. Just redo a complete deployment after you removed all the old files.

Good luck!


如果您在一个程序集中有一个接口,而在另一个程序集中有其实现,并且实现程序集是针对该接口的不同版本构建的,则可能会发生这种情况.
http://stackoverflow.com/questions/948785/typeloadexception-says-没有实现但实现了
This can occur if you have an interface in one assembly and its implementation in another, and the implementation assembly was built against a different version of the interface.

http://stackoverflow.com/questions/948785/typeloadexception-says-no-implementation-but-it-is-implemented


这篇关于我遇到组装错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆