1. Este site usa cookies. Ao continuar a usar este site está a concordar com o nosso uso de cookies. Saber Mais.

erro de aplicação web asp.net c#

Discussão em 'Web Development' iniciada por alfinete, 9 de Julho de 2009. (Respostas: 2; Visualizações: 1188)

  1. alfinete

    alfinete Power Member

    Código:
    [I]Could not load file or assembly 'Microsoft.ApplicationBlocks.Data,  Version=2.0.0.0, Culture=neutral, PublicKeyToken=3e824b8d1833a0e0' or one of its  dependencies. The located assembly's manifest definition does not match the  assembly reference. (Exception from HRESULT: 0x80131040)[/I] 
    
    
    [B]Source File: [/B]C:\alfredo\my projects\sourcesave\SIGA\development\project  support class\SACFortisDBAccess\SACFortisDBAccess.cs[B]    Line: [/B]362  
    
    [B]Assembly Load Trace:[/B] The following information can be helpful to  determine why the assembly 'Microsoft.ApplicationBlocks.Data, Version=2.0.0.0,  Culture=neutral, PublicKeyToken=3e824b8d1833a0e0' could not be loaded.
    [B][COLOR=Blue]
    [/COLOR][/B]    [B][COLOR=Blue]WRN: Assembly binding logging is turned OFF.
    [COLOR=White]To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft[/COLOR][/COLOR][/B][COLOR=White]\Fusion!EnableLog].[/COLOR]
    
    [COLOR=Blue][B]Stack Trace:[/B][/COLOR] 
    
    [COLOR=White]   [/COLOR][COLOR=White][FileLoadException: Could not load file or assembly 'Microsoft.ApplicationBlocks.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=3e824b8d1833a0e0' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
       StepAhead.DataAccessLayer.SACFortisDBAccess.StepFortisGetQueryResult() in C:\alfredo\my projects\sourcesave\SIGA\development\project support class\SACFortisDBAccess\SACFortisDBAccess.cs:362
       StepAhead.Web.GIRHProcessos.GIRHProcessosWUControl.wucGIRHProcessosList.ProcessosData() in C:\alfredo\my projects\sourcesave\GIRH\GIRH\GIRHProcessos\GIRHProcessosWUControl\wucGIRHProcessosList.ascx.cs:72
       StepAhead.Web.GIRHProcessos.GIRHProcessosWUControl.wucGIRHProcessosList.btnSearch_Click(Object sender, EventArgs e) in C:\alfredo\my projects\sourcesave\GIRH\GIRH\GIRHProcessos\GIRHProcessosWUControl\wucGIRHProcessosList.ascx.cs:82
       System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
       System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746[/COLOR]
    
    
    
    gostave que me ajudassem a resolver o problema do erro a cima
     
  2. .:vega:.

    .:vega:. Power Member

    Já experimentaste fazer debug para saber em que linha de código é que ele tá a crashar?
     
  3. alfinete

    alfinete Power Member

    ele rebenta na linha quando chamo o metodo (que esta numa classe) que vai fazer a ppesquisa a bd .

    dando esse mesmo erro

    Código:
     teste.DataAccessLayer.SACFortisDBAccess oDocTypes = new teste.DataAccessLayer.SACFortisDBAccess();
                oDocTypes.Query = int.Parse(System.Configuration.ConfigurationSettings.AppSettings["FortisQueryProcessos"].ToString());
                oDocTypes.Where = Filter();
    
                oDocTypes.ExtraFields = "F_DocumentID";
    
               [B][COLOR=Red] DataTable dtDoctypes = oDocTypes.StepFortisGetQueryResult();[/COLOR][/B]
    
    
    na linha a vermelho

    nem fazendo f11 consigo entrar na classe para ir ao metodo
     

Partilhar esta Página