Jump to content


Photo

Problems with deployment of COM and .NEt project


  • Please log in to reply
2 replies to this topic

#1 Toobster

Toobster
  • Members
  • 3 posts

Posted 06 October 2006 - 04:26 PM

Hello,

We have a problem with the ftp-library that we just cant seem to find a soluttion to. We get the following error:


[ArgumentException: The parameter is incorrect.]
sfFTPLib.FTPConnectionMTAClass.set_Protocol(enumProtocol retval) +0
avd3product_mediaspelaren.adminfiles.FTPCreateObject() in C:\Inetpub\wwwroot\bajenplayer\admin\adminfiles.aspx.vb:134
avd3product_mediaspelaren.adminfiles.Page_Load(Object sender, EventArgs e) in C:\Inetpub\wwwroot\bajenplayer\admin\adminfiles.aspx.vb:109
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731


On line 134 we have the code:

objFTP.Protocol = sfFTPLib.enumProtocol.ftpProtocolNormal


The application works fine locally and on other customers servers. We have also tested your sample code and get the same error. However we tested the regular ASP-sample and that works fine.

Can there have been a problem with the registration of the component at their server or what?

Really desperate here!

#2 Toobster

Toobster
  • Members
  • 3 posts

Posted 06 October 2006 - 05:20 PM

The plot thickens..

We changed the code to use Server.CreateObject("sfFTPLib.FTPConnectionMTA") from ASP in the .vb file!! and it woorks! It seem to be some problem instanciating the object in .net ? WTF?

Does not work:
Dom objFTP As sfFTPLib.FTPConnectionMTA

Does work:
Server.CreateObject("sfFTPLib.FTPConnectionMTA")



Now the page works but we are using ASP code in .NET??!

Feels like a really ugly fix! :unsure:

#3 mb

mb

    Developer

  • Administrators
  • 11527 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 06 October 2006 - 08:54 PM

Your application / development environment very likely hasn't recognized a new version of the the dll. In a .NET application you usually have to delete the reference (to SmartFTP FTP Library COM / sfFTPLib.dll) and then readd the reference again.

Regards,
SMartFTP




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users