.NET DLL HELL

M

MC

Hi all

I have created a .NET DLL in VB.NET. My first and very proud.

Now i understand the new principles of CLR and .NET Framework.

I want to be able to call this DLL from my existing ASP pages not ASPX. They
are spread over many websites so I need to have this DLL is one common
place.

Now obviously, I can't register the DLL using regsvr32, so the principle of
Server.CreateObject is out I think.

Does anyone know of how I can use this DLL in my webpages without converting
them all to ASPX.

Regards and thanks in advance, and I apologise now for reposting in various
places before anyone tells me off
 
M

Mubashir Khan

assume TestServer.dll is the .NET assembly
tlbexp TestServer.dll
and then
gacutil /i TestServer.dll
Good luck
 
N

Nick Malik [Microsoft]

MC said:
Hi all

I have created a .NET DLL in VB.NET. My first and very proud.

Now i understand the new principles of CLR and .NET Framework.

I want to be able to call this DLL from my existing ASP pages not ASPX.
They are spread over many websites so I need to have this DLL is one
common place.

Now obviously, I can't register the DLL using regsvr32, so the principle
of Server.CreateObject is out I think.

Does anyone know of how I can use this DLL in my webpages without
converting them all to ASPX.

Regards and thanks in advance, and I apologise now for reposting in
various places before anyone tells me off
Actually, you can use CreateObject just fine, once you create a type library
and load the assembly into the GAC. See:
http://support.microsoft.com/default.aspx?scid=kb;en-us;817248


--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
 
N

Nick Malik [Microsoft]

MC said:
Hi all

I have created a .NET DLL in VB.NET. My first and very proud.

Now i understand the new principles of CLR and .NET Framework.

I want to be able to call this DLL from my existing ASP pages not ASPX.
They are spread over many websites so I need to have this DLL is one
common place.

Now obviously, I can't register the DLL using regsvr32, so the principle
of Server.CreateObject is out I think.

Does anyone know of how I can use this DLL in my webpages without
converting them all to ASPX.

Regards and thanks in advance, and I apologise now for reposting in
various places before anyone tells me off

This article is slightly more appropriate for calling the .Net assembly from
VBScript (ASP).

http://www.csharpfriends.com/Articles/getArticle.aspx?articleID=113


--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top