ASP.NET Windows Form

Posted on 2004-11-27
Last Modified: 2010-04-23
I have written a UserControl in VB.NET and I want to host it in Internet Explorer.  I have used the method that is all over the internet which says you do it something like this:

<OBJECT id="Invoice" height="652" width="832" classid="" name="Invoice" VIEWASTEXT>

Where InvoiceDBControl is the namespace and Control is the class.  When I do this, however, I just get a screen with a window that has the same icon as when an image is loading, but that is it.  I have tried to do it by checking "Register for COM Interop".  Then before the class I add a GUID like this <ComClass("3EFA4B90-889C-41ce-8D46-B28AD5BDAE09")>.  After which I change my asp to look like this:

<OBJECT id="Invoice" codeBase="InvoiceDBControl.dll" height="652" width="832" classid="CLSID:3EFA4B90-889C-41ce-8D46-B28AD5BDAE09" name="MyGraffitiWa" VIEWASTEXT>

This works, however, if I try to use it on a different computer or even occasionally on this one (which I completely don't understand) I get the error. "Windows has blocked this software because it can't verify the publisher." Then it says the publisher is unknown.  How can I make this work?  How can I make the publisher (me) know to the program?  Thanks in advance.
Question by:johnywhite

    Author Comment

    On the second object name is also "Invoice" not "MyGraffitiWa".  I accidentally put that there from a suggestion someone else gave me.
    LVL 10

    Accepted Solution

    what you need to do is sign the dll, this supplies the author and publisher information, a quick google of msdn turns up this which may not be a bad starting point

    however when i had to do this before back i used information at verisign. this may also be a good starting point

    certainly more info than at the msdn one

    hope that is of some help


    Author Comment

    The first option didn't work, and the second costs too much.  Is there another option that I could do for less or even free?

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Suggested Solutions

    Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
    If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now