Re: IndyProtocols.dll Deployment Issue...

Giganews Newsgroups
Subject: Re: IndyProtocols.dll Deployment Issue...
Posted by:  Scott Price (scott.price@no.spamta.virgindotnet)
Date: Tue, 9 Aug 2005

Scott Price wrote:

> Hi there,
>
> Just wondering if anyone has tried to use the Indy D2005 items in an
> ASP.NET website built in D2005?
>
> I have just tried to deploy an application with a page using the
> components, and I am getting some strange error message about a Method
> not found, which you can see below:
>
> =================================================
> Server Error in '/' Application.
> ----------------------------------------------------------------------
> -- --------
>
> Method not found: Borland.Vcl.TStrings
> IdMessage.TIdMessage.get_Body().
>
> 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.MissingMethodException: Method not found:
> Borland.Vcl.TStrings IdMessage.TIdMessage.get_Body().
>
> 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.
>
> Stack Trace:
>
> [MissingMethodException: Method not found: Borland.Vcl.TStrings
> IdMessage.TIdMessage.get_Body().]
>    contact.TContactForm.submit_Click(Object sender, EventArgs e) +0
>    System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
>
> System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.R
> ai sePostBackEvent(String eventArgument) +57
>    System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
> sourceControl, String eventArgument) +18
>    System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
> +33
>    System.Web.UI.Page.ProcessRequestMain() +1292
>
> ----------------------------------------------------------------------
> -- --------
> Version Information: Microsoft .NET Framework Version:1.1.4322.2300;
> ASP.NET Version:1.1.4322.2300
> =================================================
>
> Assembly Version information:
>
> IndyCore.dll:        9.0.1761.24408
> IndyProtocols.dll:    9.0.1761.24408
> IndySystem.dll:        9.0.1761.24408
>
> Any help in this area would be appreciated, as I am unsure what the
> cause of this error is.
>
> Regards,
>
> Scott :)

Fixed.  With the latest D2005 update version assemblies, I needed to do
some mapping.

The following was added to the web.config file to fix the issues
related to calls to routines in the Indy Assemblies (in a new tag
following the close of the </system.web> tag):

  ... The rest of the system web defines are up here ...
</system.web>

<!-- This starts after /system.web> -->
<runtime>
  <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    <dependentAssembly>
      <assemblyIdentity name="Borland.Vcl"
                          publicKeyToken="91d62ebb5b0d1b1b"
                          culture="neutral"/>
      <bindingRedirect oldVersion="9.0.1761.24408"
                          newVersion="9.0.1882.30496"/>
    </dependentAssembly>
    <dependentAssembly>
      <assemblyIdentity name="Borland.VclRtl"
                          publicKeyToken="91d62ebb5b0d1b1b"
                          culture="neutral"/>
      <bindingRedirect oldVersion="9.0.1761.24408"
                          newVersion="9.0.1882.30496"/>
    </dependentAssembly>
    <dependentAssembly>
      <assemblyIdentity name="Borland.Delphi"
                          publicKeyToken="91d62ebb5b0d1b1b"
                          culture="neutral"/>
      <bindingRedirect oldVersion="9.0.1761.24408"
                          newVersion="9.0.1882.30496"/>
    </dependentAssembly>
  </assemblyBinding>
</runtime>

This removed the problem, and all functioned correctly and as expected.

Regards,

Scott :)

Replies

None

In response to

IndyProtocols.dll Deployment Issue... posted by Scott Price on Mon, 8 Aug 2005