0 votes
by (120 points)
edited

Hi,

I’ve downloaded the trial version, works like a charm in the development environment, but when I copy the website to a server so that management can see the app, the Rebex component won’t work.

Windows Event Viewer has the following errors… I’ve added a reference to the assembilies in web.config, but I still continue getting the same message… Is there anyone that can think of why the components would keep giving this message in windows event viewer?

Unable to find assembly 'Rebex.Net.Sftp, Version=2.0.3854.0, Culture=neutral, PublicKeyToken=1c4638788972655d'.

FULL ERROR 1: Event Type: Error Event Source: ASP.NET 2.0.50727.0 Event Category: None Event ID: 1334 Date: 10/11/2010 Time: 4:19:25 PM User: N/A Computer: STLWEB006 Description: An unhandled exception occurred and the process was terminated.

Application ID: DefaultDomain

Process ID: 4936

Exception: System.Runtime.Serialization.SerializationException

Message: Unable to find assembly 'Rebex.Net.Sftp, Version=2.0.3854.0, Culture=neutral, PublicKeyToken=1c4638788972655d'.

StackTrace: at System.Runtime.Serialization.Formatters.Binary.BinaryAssemblyInfo.GetAssembly() at System.Runtime.Serialization.Formatters.Binary.ObjectReader.GetType(BinaryAssemblyInfo assemblyInfo, String name) at System.Runtime.Serialization.Formatters.Binary.ObjectMap..ctor(String objectName, String[] memberNames, BinaryTypeEnum[] binaryTypeEnumA, Object[] typeInformationA, Int32[] memberAssemIds, ObjectReader objectReader, Int32 objectId, BinaryAssemblyInfo assemblyInfo, SizedArray assemIdToAssemblyTable) at System.Runtime.Serialization.Formatters.Binary._BinaryParser.ReadObjectWithMapTyped(BinaryObjectWithMapTyped record) at System.Runtime.Serialization.Formatters.Binary._BinaryParser.ReadObjectWithMapTyped(BinaryHeaderEnum binaryHeaderEnum) at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run() at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage) at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage) at System.Runtime.Remoting.Channels.CrossAppDomainSerializer.DeserializeObject(MemoryStream stm) at System.AppDomain.Deserialize(Byte[] blob) at System.AppDomain.UnmarshalObject(Byte[] blob)

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

FULL ERROR 2: Event Type: Error Event Source: .NET Runtime 2.0 Error Reporting Event Category: None Event ID: 5000 Date: 10/11/2010 Time: 4:19:26 PM User: N/A Computer: STLWEB006 Description: EventType clr20r3, P1 w3wp.exe, P2 6.0.3790.3959, P3 45d6968e, P4 mscorlib, P5 2.0.0.0, P6 471ebc5b, P7 4642, P8 4b, P9 rebex.net.sftpexception, P10 NIL.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp. Data: 0000: 63 00 6c 00 72 00 32 00 c.l.r.2. 0008: 30 00 72 00 33 00 2c 00 0.r.3.,. 0010: 20 00 77 00 33 00 77 00 .w.3.w. 0018: 70 00 2e 00 65 00 78 00 p...e.x. 0020: 65 00 2c 00 20 00 36 00 e.,. .6. 0028: 2e 00 30 00 2e 00 33 00 ..0...3. 0030: 37 00 39 00 30 00 2e 00 7.9.0... 0038: 33 00 39 00 35 00 39 00 3.9.5.9. 0040: 2c 00 20 00 34 00 35 00 ,. .4.5. 0048: 64 00 36 00 39 00 36 00 d.6.9.6. 0050: 38 00 65 00 2c 00 20 00 8.e.,. . 0058: 6d 00 73 00 63 00 6f 00 m.s.c.o. 0060: 72 00 6c 00 69 00 62 00 r.l.i.b. 0068: 2c 00 20 00 32 00 2e 00 ,. .2... 0070: 30 00 2e 00 30 00 2e 00 0...0... 0078: 30 00 2c 00 20 00 34 00 0.,. .4. 0080: 37 00 31 00 65 00 62 00 7.1.e.b. 0088: 63 00 35 00 62 00 2c 00 c.5.b.,. 0090: 20 00 34 00 36 00 34 00 .4.6.4. 0098: 32 00 2c 00 20 00 34 00 2.,. .4. 00a0: 62 00 2c 00 20 00 72 00 b.,. .r. 00a8: 65 00 62 00 65 00 78 00 e.b.e.x. 00b0: 2e 00 6e 00 65 00 74 00 ..n.e.t. 00b8: 2e 00 73 00 66 00 74 00 ..s.f.t. 00c0: 70 00 65 00 78 00 63 00 p.e.x.c. 00c8: 65 00 70 00 74 00 69 00 e.p.t.i. 00d0: 6f 00 6e 00 20 00 4e 00 o.n. .N. 00d8: 49 00 4c 00 0d 00 0a 00 I.L.....

Applies to: Rebex SFTP

2 Answers

0 votes
by (148k points)
edited

This looks like the following events occured:

  1. An SftpException was thrown by one of Sftp object's method.
  2. During the processing of this SftpException, another error occured because of some serialization issue. It looks like the SftpException was passed to a different application domain, although I don't know why that might happen.

Would it be possible to use Sftp object's LogWriter property to create a communication and error log at the server and mail it to us for analysis? That should make it possible to tell what is going on.

0 votes
by (140 points)
edited

Looks like the SFTP error was that the website was unable to connect to the FTP server... apparently port 22 was blocked outbound on the production server... Here's the stack trace of nested exceptions...

Rebex.Net.Sftp A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. at Rebex.Net.Sftp.Connect(String serverName, Int32 serverPort, SshParameters parameters) at Rebex.Net.Sftp.Connect(String serverName) at EnergyAssistance.FtpServer.Connect() at EnergyAssistance.FtpServer.InitializeConnection() at EnergyAssistance.FtpServer.DownloadFiles(String localFolder) at EnergyAssistance.IntegrationMonitor.IntegrateFiles(List`1& results) at EnergyAssistance.IntegrationMonitor.Execute()

Nested Exception: 1 Rebex.Net.ProxySocket A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. at wWGvS.BnRMAeZ.YqGDG(IAsyncResult , String ) at wWGvS.BnRMAeZ.cCoahHZ(IAsyncResult , Int32 ) at Rebex.Net.ProxySocket.Connect(String serverName, Int32 serverPort) at Rebex.Net.Sftp.Connect(String serverName, Int32 serverPort, SshParameters parameters)

Nested Exception: 2 Rebex.Net.ProxySocket A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. at wWGvS.BnRMAeZ.kRCyw(String , IPAddress , Int32 )

Nested Exception: 3 System A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond nnn.nnn.nnn.nn:22 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.Connect(EndPoint remoteEP) at wWGvS.BnRMAeZ.kRCyw(String , IPAddress , Int32 )

...