AV in WeOnlyDo.Client.SSH constructor - WeOnlyDo Discussion board

AV in WeOnlyDo.Client.SSH constructor (wodSSH / wodSSH.NET)

by Martin Rakhmanov, Tuesday, December 03, 2013, 23:06 (1447 days ago)

Hello

Is there a known issue with WeOnlyDo.Client.SSH constructor causing Access Violation exception? On our application we observe this:

Access violation - code c0000005 (first/second chance not available)
...
0:007> !CLRStack
OS Thread Id: 0xc (7)
Child SP IP Call Site
0408dec4 0b029b59 .GetLicense(System.ComponentModel.LicenseContext, System.Type, System.Object, Boolean)
0408df08 0b029632 System.ComponentModel.LicenseManager.ValidateInternalRecursive (System.ComponentModel.LicenseContext, System.Type, System.Object, Boolean, System.ComponentModel.License ByRef, System.String ByRef)
0408df34 0b0293e4 System.ComponentModel.LicenseManager.Validate(System.Type, System.Object)
0408df50 0b0285d5 WeOnlyDo.Client.SSH..ctor()

This happens on heavy usage of the component (created/destroyed many times).

WeOnlyDo.Client.SSH.dll 2.5.1.131

Thanks
Martin

AV in WeOnlyDo.Client.SSH constructor

by wodDrazen, Tuesday, December 03, 2013, 23:17 (1447 days ago) @ Martin Rakhmanov

Hi Martin,


We didn't have such report. Is there any chance we can reproduce this on our side?

What happens if you try latest 2.6.1 version of wodSSH.NET?

Let us know how it goes.


Regards,
Drazen

--
_________________________________________________
WeOnlyDo! Software - Internet Security Components
----------=== http://www.weonlydo.com ===----------

AV in WeOnlyDo.Client.SSH constructor

by Martin Rakhmanov, Wednesday, December 04, 2013, 19:00 (1447 days ago) @ wodDrazen

I've tried that version and the AV problem is gone. But there is another one:

Exception object: 0129a450
Exception type: System.InvalidOperationException
Message: The key 'TempAuthorization' does not exist in the appSettings configuration section.
InnerException: <none>
StackTrace (generated):
<none>
StackTraceString: <none>
HResult: 80131509

I got that one using 2.6.1.151 (evaluation) with this sample :

using System;

public class demo
{
public static void Main(String[] args)
{
Console.WriteLine("About to create an instance of WeOnlyDo.Client.SSH");
Console.ReadLine();
WeOnlyDo.Client.SSH ssh = new WeOnlyDo.Client.SSH();
Console.WriteLine("Done.");
}
}

Run it under WinDbg and see the exception. Maybe that is only for Eval version?

Another question: if I want to deploy WeOnlyDo.Client.SSH with my application, is it enough to copy the WeOnlyDo.Client.SSH.dll with the application and then set the license key property in the application code?

Thanks

AV in WeOnlyDo.Client.SSH constructor

by wodSupport, Wednesday, December 04, 2013, 19:45 (1447 days ago) @ Martin Rakhmanov

Hi.

Could it be you enabled in your debugger "break on exception" for System.InvalidOperationException? Otherwise, we catch this error in our code, but if you enabled it to break in debugger, you may see it.

Kreso

AV in WeOnlyDo.Client.SSH constructor

by Martin Rakhmanov, Wednesday, December 04, 2013, 21:24 (1446 days ago) @ wodSupport

Yes, WinDbg shows CLR exceptions in my scenario. So that is expected behavior, correct?

AV in WeOnlyDo.Client.SSH constructor

by wodSupport, Wednesday, December 04, 2013, 21:25 (1446 days ago) @ Martin Rakhmanov

Martin,

I never thought about it, but yes, this looks like expected exception.

Kreso

AV in WeOnlyDo.Client.SSH constructor

by Martin Rakhmanov, Wednesday, December 04, 2013, 22:05 (1446 days ago) @ wodSupport

Thanks. But what about my other question: we have a licensed copy of the component. What is expected way to deploy it - just copy the dll?

AV in WeOnlyDo.Client.SSH constructor

by wodSupport, Wednesday, December 04, 2013, 22:07 (1446 days ago) @ Martin Rakhmanov

Yes, that is correct, remove reference from your project, copy new DLL over old one, and add reference back.

But this 'TempAuthorization' issue should not happen in licensed version, there is no such property there.

Kreso