Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

ASP.net web applications and a Com API


  • Please log in to reply
9 replies to this topic

#1 chromebuster

chromebuster

  • Members
  • 899 posts
  • OFFLINE
  •  
  • Gender:Female
  • Location:the crazy city of Boston, In the North East reaches of New England
  • Local time:10:02 AM

Posted 10 March 2011 - 11:37 PM

Hi all,
I am a current user of the email server HMailServer, which has a Com API. It is most often used with VBScript, but since VBScript is fading out, and .net and PowerShell are the more popular ways to go now, how useful will the Com API be when creating an ASP.net web interface for the server? That is a future idea I had for it. Web applications can interact with com too, right? I just don't understand how. The Dll that is wrapped around is HMailServer.dll, but how does that fit into the grand scheme of things? I've seen C# applications used with the server, but how do they use the Com API? Because once I know that, then I can figure out how an ASP.net application can use Com as well. Thanks.

The AccessCop Network is just me and my crew. 

Some call me The Queen of Cambridge


BC AdBot (Login to Remove)

 


#2 Didier Stevens

Didier Stevens

  • BC Advisor
  • 2,753 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:03:02 PM

Posted 11 March 2011 - 03:16 AM

Yes, it is possible with COM Interop: using COM object from .NET, and the opposite, using .NET object via COM in an unmanaged language.
http://en.wikipedia.org/wiki/COM_Interop

Here's a good howto:
http://msdn.microsoft.com/en-us/library/aa645736(v=vs.71).aspx

Didier Stevens
http://blog.DidierStevens.com
http://DidierStevensLabs.com

SANS ISC Senior Handler
Microsoft MVP 2011-2016 Consumer Security, Windows Insider MVP 2016-2019
MVP_Horizontal_BlueOnly.png

 

If you send me messages, per Bleeping Computer's Forum policy, I will not engage in a conversation, but try to answer your question in the relevant forum post. If you don't want this, don't send me messages.

 

Stevens' law: "As an online security discussion grows longer, the probability of a reference to BadUSB approaches 1.0"


#3 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:08:02 AM

Posted 11 March 2011 - 09:22 AM

Who says VBS is fading out? :blink:

#4 chromebuster

chromebuster
  • Topic Starter

  • Members
  • 899 posts
  • OFFLINE
  •  
  • Gender:Female
  • Location:the crazy city of Boston, In the North East reaches of New England
  • Local time:10:02 AM

Posted 11 March 2011 - 02:45 PM

I just assumed it was seeing that the last publications I can find on it are all from 2004. i'd actually like to get good at that language as well if only i could find a good ebook from a recent year on it LOL.

The AccessCop Network is just me and my crew. 

Some call me The Queen of Cambridge


#5 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:08:02 AM

Posted 16 March 2011 - 05:29 AM

The language hasn't changed.

#6 chromebuster

chromebuster
  • Topic Starter

  • Members
  • 899 posts
  • OFFLINE
  •  
  • Gender:Female
  • Location:the crazy city of Boston, In the North East reaches of New England
  • Local time:10:02 AM

Posted 16 March 2011 - 12:33 PM

Oh. okay then. I wasn't sure. I'm glad you clarified that one for me. But I should also tell the HMailServer crew this, that the web service could also be implemented in WCF with the Application server role configured on the server. That's more prevalent than even ASP.net web services is, isn't it?

The AccessCop Network is just me and my crew. 

Some call me The Queen of Cambridge


#7 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:08:02 AM

Posted 16 March 2011 - 12:57 PM

HMail has been around for a long time. I am sure they have reasons for doing things like they do.

#8 chromebuster

chromebuster
  • Topic Starter

  • Members
  • 899 posts
  • OFFLINE
  •  
  • Gender:Female
  • Location:the crazy city of Boston, In the North East reaches of New England
  • Local time:10:02 AM

Posted 16 March 2011 - 12:59 PM

You bet your bottom they do. And their reasoning bothers me LOL. The devs say that they want an IDE not to have to be available, and that's why they stick with COM. But I'm not the only one who wants both Web services and ASP.net in HMailServer.

The AccessCop Network is just me and my crew. 

Some call me The Queen of Cambridge


#9 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:08:02 AM

Posted 16 March 2011 - 01:48 PM

So extend it.

#10 chromebuster

chromebuster
  • Topic Starter

  • Members
  • 899 posts
  • OFFLINE
  •  
  • Gender:Female
  • Location:the crazy city of Boston, In the North East reaches of New England
  • Local time:10:02 AM

Posted 16 March 2011 - 02:11 PM

You better believe I will be doing that.

The AccessCop Network is just me and my crew. 

Some call me The Queen of Cambridge





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users