Avatar billede hacked Nybegynder
10. oktober 2005 - 13:28 Der er 1 løsning

Opret billeder on the fly - ASP.Net

Hej - Jeg har et problem når jeg prøver at benytte dette plugin til asp.net.

TStreamImage - System.Web.UI.WebControls.Image descendant witch have Memory Stream as a source for image. Create images on the fly and use them on your web page just as you are using plain old image control. Design time support for VS.NET and Delphi 8 for .NET

http://www.antoniob.com/download/PStreamImage.zip

Jeg har oprettet et nyt projekt og tilføjet filerne fra UsageOnForm eksemplet. Derefter har jeg tilføjet referencer til PStreamImage.dll, PDesignTimeTools.dll, Borland.Delphi.dll.

Mit problem er når jeg prøver at starte eksemplet. Når eksemplet startes opstår følgende fejl:

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.IO.FileLoadException: The located assembly's manifest definition with name 'Borland.Delphi' does not match the assembly reference.

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 'Borland.Delphi' could not be loaded.


=== Pre-bind state information ===
LOG: DisplayName = Borland.Delphi, Version=7.1.1523.17956, Culture=neutral, PublicKeyToken=91d62ebb5b0d1b1b
(Fully-specified)
LOG: Appbase = file:///c:/inetpub/wwwroot/TStreamImage_Test
LOG: Initial PrivatePath = bin
Calling assembly : PStreamImage, Version=1.0.0.1, Culture=neutral, PublicKeyToken=null.
===

LOG: Publisher policy file is not found.
LOG: No redirect found in host configuration file (C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet.config).
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
LOG: Post-policy reference: Borland.Delphi, Version=7.1.1523.17956, Culture=neutral, PublicKeyToken=91d62ebb5b0d1b1b
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/tstreamimage_test/27f91a27/16db0047/Borland.Delphi.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/tstreamimage_test/27f91a27/16db0047/Borland.Delphi/Borland.Delphi.DLL.
LOG: Attempting download of new URL file:///c:/inetpub/wwwroot/TStreamImage_Test/bin/Borland.Delphi.DLL.
WRN: Comparing the assembly name resulted in the mismatch: Revision Number



Stack Trace:


[FileLoadException: The located assembly's manifest definition with name 'Borland.Delphi' does not match the assembly reference.]
  StreamImage.Unit..cctor() +0

[TypeInitializationException: The type initializer for "StreamImage.Unit" threw an exception.]
  System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(RuntimeTypeHandle type) +0
  StreamImage.TSIModule..cctor()

[TypeInitializationException: The type initializer for "StreamImage.TSIModule" threw an exception.]

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
  System.RuntimeType.CreateInstanceImpl(Boolean publicOnly) +0
  System.Activator.CreateInstance(Type type, Boolean nonPublic) +66
  System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +655
  System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +200
  System.Web.Configuration.ModulesEntry.Create() +33
  System.Web.Configuration.HttpModulesConfiguration.CreateModules() +103
  System.Web.HttpApplication.InitModules() +45
  System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) +1297
  System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +392
  System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +256
  System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +414

Nogle hints til hvordan det kan komme til at virke ?
På forhånd tak.
Avatar billede hacked Nybegynder
03. december 2005 - 00:50 #1
ingen hjælp :/ :) lukker
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
IT-kurser om Microsoft 365, sikkerhed, personlig vækst, udvikling, digital markedsføring, grafisk design, SAP og forretningsanalyse.

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester