A bit of additional info... when I debug and stop on line 56, I can see that the 'capicom' variable is definately set to an object type... just confusing to me... the object definately looks like it's being created, but it isn't being seen as such.
-AC
"Andrew Connell" <sp**@aNO-SPAM-MEconnell.com> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl...
Sure (i replaced my namespace and project name/directory... but that shouldn't change the issue). I tried accessing any method/property in the object on line 57 with no luck (line 57 is throwing the error). The Util object is in my custom assembly ([MyNamespacePrefix].Security.Cryptography.Capicom). That object references methods/properties exposed in my interop of the CAPICOM.dll.
-AC
Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 55: Dim capicom As Util = New Util
Line 56: Dim decryptedQS As String
Line 57: capicom.Key = GetSecureKey()
Line 58: decryptedQS = capicom.DecryptData(Request.QueryString(0))
Line 59: Response.Write(decryptedQS & "<br />")
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
[MyNamespacePrefix].Security.Cryptography.Capicom.Util.set_Key(String value)
[MyNamespacePrefix].[Project].Inbound.Page_Load(Object sender, EventArgs e) in C:\Projects\[project]\portalAuthentication\Inbound.aspx.vb:57
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731
"Natty Gur" <na***@dao2com.com> wrote in message news:ua**************@TK2MSFTNGP10.phx.gbl...
Hi,
Can you send the full error description? It usually contains the
assembly name, version.
Natty Gur[MVP]
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!