473,386 Members | 1,668 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Problem calling class that implements a COM interop DLL

Using Interop, I created an assembly DLL that implements some of the methods within the COM DLL. In a WinForm app, it works great. But when I try to implement it in ASP.NET, I get the following error:
System.IO.FileNotFoundException: The specified module could not be found.

I've created a reference to the assembly I created and verified that both my custom DLL and the interop DLL are located in the \bin directory of the ASP.NET app.

Not sure it matters, but the interop is for the CAPICOM.dll. My assembly wraps the functionality and pulls the key from a specified location so the ASP.NET app just has to call my assembly and pass the string to be encrypted/decrypted.

--
-AC
Nov 17 '05 #1
6 1853
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!
Nov 17 '05 #2
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!
Nov 17 '05 #3
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!

Nov 17 '05 #4
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!

Nov 17 '05 #5
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!

Nov 17 '05 #6
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!

Nov 17 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: Patrick | last post by:
I am almost certain that I could use HTTP Post/Get to submit XML Web Service call (over SSL as well, if using Version 3 of MSXML2) from an ASP Application? However, would I only be able to call...
0
by: Alex | last post by:
I am trying to write an Exit module for the Certification server in VB.NET and I cant get the module to be recognised by the Certification MMC snap in. Its function is to capture Serial Numbers of...
0
by: Lokkju | last post by:
I am pretty much lost here - I am trying to create a managed c++ wrapper for this dll, so that I can use it from c#/vb.net, however, it does not conform to any standard style of coding I have seen....
0
by: Andrew Connell | last post by:
Using Interop, I created an assembly DLL that implements some of the methods within the COM DLL. In a WinForm app, it works great. But when I try to implement it in ASP.NET, I get the following...
0
by: Chris V | last post by:
Hello, I'm having problems sending MAPI Mail from an ASP.NET applcation (in VB) (which worked fine in traditional asp) When run on our test server, it returns an COMException (0x80010106): ]]...
12
by: Daniel Klein | last post by:
I think I've done my homework and checked around on Google Groups but this seems to be a situation not yet covered. Here is the scenario... There are two classes, Foo and Bar (actually there...
1
by: Thomee Wright | last post by:
I'm having a problem with a pair of applications I'm developing. I have a server application which interacts with several instruments, and a client app which connects to the server and provides a...
1
by: =?Utf-8?B?c3VydHVyeg==?= | last post by:
Hi, I'm using VB2005 + Office XP Enterprise. If you create a Word.Application object, you risk a memory leak if your application crashes because Word.Application is an unmanaged COM Interop...
0
by: shahiz | last post by:
This the error i get when i try to run my program Error: Unable to realize com.sun.media.amovie.AMController@18b81e3 Basically i have a mediapanel class that initialize and play the media as...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.