?
Solved

ASP.NET Windows Form

Posted on 2004-11-27
3
Medium Priority
?
190 Views
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="http://www.whitetech.net/InvoiceCreatorWeb/InvoiceDBControl.dll#InvoiceDBControl.Control" name="Invoice" VIEWASTEXT>
</OBJECT>

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>
</OBJECT>

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.
0
Comment
Question by:johnywhite
  • 2
3 Comments
 

Author Comment

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

Accepted Solution

by:
james-ct16 earned 2000 total points
ID: 12686616
hi
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

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconAssigningAssemblyStrongName.asp

however when i had to do this before back i used information at verisign. this may also be a good starting point http://www.verisign.com/support/signing/authenticode/index.html

certainly more info than at the msdn one


hope that is of some help

james
0
 

Author Comment

by:johnywhite
ID: 12692275
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?
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Screencast - Getting to Know the Pipeline
Suggested Courses

862 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