Novo

Forum kao aplikacija na telefonu

Dodajte forum na početni ekran i koristite ga kao aplikaciju, sa menijem na dnu ekrana.

  • 7 odgovora
  • 2.793 pregleda

Najnovija ↓

itextsharp i problem ucitavanja 16.03.2012. u 13:56 · pre 178 meseci #1
Htio bi da koristim itextsharp , za stvaranje pdf dokumenata i to fino radi lokalni ,ali na serveru neće , Stavio sam u web.config što treba i prijav mi ovakvu grešku.::
Code:

Could not load file or assembly 'itextsharp, Version=5.1.1.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca'
 or one of its dependencies. The module was expected to contain an assembly manifest.

Da li ko može pomoći savjetom ???
Re: itextsharp i problem ucitavanja 16.03.2012. u 14:00 · pre 178 meseci #2
Verovatno referencira neki .net assembly tj. noviju verziju .net koja ne postoji na serveru .
Pogledaj sta imas od .net frameworka- na hostingu i uskladi je sa itextsharp-om sto ce reci ili recompile celog lib-a ili da uradis upgrade .net-a na serveru
Potpis
Viva lollapalooza
Re: itextsharp i problem ucitavanja 17.03.2012. u 15:46 · pre 178 meseci #3
Nije baš pomoglo . Evo cijele greške..
Code:




Server Error in '/' Application.
Could not load file or assembly 'itextsharp, Version=5.1.1.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca' or one of its dependencies. 
The module was expected to contain an assembly manifest.
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.BadImageFormatException: Could not load file or assembly 'itextsharp, Version=5.1.1.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca' or one of its dependencies. The module was expected to contain an assembly manifest.

Source Error:

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.

Assembly Load Trace: The following information can be helpful to determine why the assembly 'itextsharp, Version=5.1.1.0,
Culture=neutral, PublicKeyToken=8354ae6d2174ddca' could not be loaded.

WRN: Assembly binding logging is turned OFF.
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\Fusion!EnableLog].


Stack Trace:

[BadImageFormatException: Could not load file or assembly 'itextsharp, Version=5.1.1.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca' 
or one of its dependencies. The module was expected to contain an assembly manifest.]
   bzp.bzp_ponuda.Page_Load(Object sender, EventArgs e) +0
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

Re: itextsharp i problem ucitavanja 28.03.2012. u 19:47 · pre 177 meseci #4
Problem je sa tom kontrolom to sto je ona na lokalnoj masini referencira neke dll-ove u GAC-u v
Moras da ih pronaci i iskopirati u bin folder na serveruv
Potpis
Viva lollapalooza
Re: itextsharp i problem ucitavanja 10.04.2012. u 23:40 · pre 177 meseci #7
Probaj u references u projektu na taj FreeTextBox dll da postavis Copy-Local = True u property dijalogu.
Uradi Rebuild projekta kod sebe na masini pa vidi sta sve ima u bin folderu i uporedi ga sa serverskim bin-om.
Kopirati dodate fajlove koji se pojave u serverski bin folder ako fali.

Ako to ne pomogne onda je u pitanju verovatno developer-licence te kontrole i ne mozes je besplatno koristiti na serveru tj. online.
Potpis
Viva lollapalooza
Prijavite se da biste odgovorili u ovoj temi.PrijavaRegistracija

Premeštanje teme