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.
