CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Plink ASP.NET

  1. #1
    Join Date
    Oct 2005
    Posts
    4

    Plink ASP.NET

    Hi Gurus,
    I've developed an application that uses plink. Its a window based application and now im trying to create the same application but in ASP.NET. The problem is I get an error when i try to put the instance of my class to a session. Please help me gurus...plsssssssssssssssssssssss

    heres the part of my program.

    Code:
    Dim objSSH As classSSH
    objSSH = New classSSH
    
            Dim sHostName As String
            Dim sUserName As String
            Dim sPassword As String
            sHostName = drpHostName.SelectedValue.Trim
            sUserName = txtUserName.Text
            sPassword = txtPassword.Text
    
            Dim sStatusLogin As String
            sStatusLogin = objSSH.sPuttyLogin(sHostName, "D:\plink.exe", Me.txtPassword.Text,     Me.txtUserName.Text)
            Session("ssh") = objSSH           'This is the line where error starts
    the error is: Unable to serialize the session state. In 'StateServer' and 'SQLServer'
    mode, ASP.NET will serialize the session state objects, and as a result
    non-serializable objects or MarshalByRef objects are not permitted. The same
    restriction applies if similar serialization is done by the custom session
    state store in 'Custom' mode.
    Last edited by HanneSThEGreaT; August 17th, 2010 at 04:20 AM. Reason: Added [CODE] tags

  2. #2
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,284

    Re: Plink ASP.NET

    Please use [CODE] and [/CODE] tags when posting code.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured