Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > .NET COm Interop in IE?

Reply
Thread Tools

.NET COm Interop in IE?

 
 
super todd
Guest
Posts: n/a
 
      07-19-2007
Im trying to package two dll files to be used as a web control.
Im using a C# class that is exposed through com interop that I
created in Visual studio 2005 to add some business functionality.
That depends on a third-party dll: MAPI33.dll http:/
www.mapi33.adexsolutions.com.I'm trying to package them to be embedded
in my webpage to be used with javascript like so:<Html>


<Script Language="javascript" defer="true">

var outlook = new ActiveXObject("Net.Em.Outlook");
//do something with object

</Script>
<Body>

<OBJECT id="test" CLASSID="CLSID:
81C599FB-9C61-4ae6-8866-22397D8D6FA4"
CODEBASE="emoutlook.cab#version=1,0,0,0">
</OBJECT>
</Body>
</html>


Here is the inf file I've created to install the dll's on the
client: [version]
signature="$CHICAGO$"
AdvancedINF=2.0
[Add.Code]
emoutlook.dll=emoutlook.dll
MAPI33.dll=MAPI33.dll
[MAPI33.dll]
FileVersion=4,5,2709,24579
file-win32-x86=thiscab
RegisterServer=yes
[emoutlook.dll]
FileVersion=1,0,0,0
file-win32-x86=thiscab
RegisterServer=yes I've packaged the dll's along with the inf
file in a cab using cabarc.exe cabarc N emoutlook.cab
emoutlook.inf emoutlook.dll MAPI33.dll I've adjusted all my IE
setttings to allow download and installation of an unsigned activex
object, like: download unsigned activex controls: Enable
initialize and script activex controls marked as unsafe: Enable
etc, etc... When I browse my page, IE prompts me to download and
install emoutlook.cab. Using fiddler I see that it does in fact
download the cab. I can go to Tools > Manage Add-ons and see the
entry for Net.em.Outlook, It's type is activex control, and I see that
it is enabled as well. One thing I find odd is that the file
associated with it is mscoree.dll, not either of the dlls in the
cab. I get the following javascript error: "automation server can't
create object"at the line: var outlook = new
ActiveXObject("Net.Em.Outlook");

 
Reply With Quote
 
 
 
 
bruce barker
Guest
Posts: n/a
 
      07-20-2007
because is not signed, nor marked safe for scripting, the browser will
not load it. change your browser security setting to fully trust your
web site.

-- bruce (sqlwork.com)

super todd wrote:
> Im trying to package two dll files to be used as a web control.
> Im using a C# class that is exposed through com interop that I
> created in Visual studio 2005 to add some business functionality.
> That depends on a third-party dll: MAPI33.dll http:/
> www.mapi33.adexsolutions.com.I'm trying to package them to be embedded
> in my webpage to be used with javascript like so:<Html>
>
>
> <Script Language="javascript" defer="true">
>
> var outlook = new ActiveXObject("Net.Em.Outlook");
> //do something with object
>
> </Script>
> <Body>
>
> <OBJECT id="test" CLASSID="CLSID:
> 81C599FB-9C61-4ae6-8866-22397D8D6FA4"
> CODEBASE="emoutlook.cab#version=1,0,0,0">
> </OBJECT>
> </Body>
> </html>
>
>
> Here is the inf file I've created to install the dll's on the
> client: [version]
> signature="$CHICAGO$"
> AdvancedINF=2.0
> [Add.Code]
> emoutlook.dll=emoutlook.dll
> MAPI33.dll=MAPI33.dll
> [MAPI33.dll]
> FileVersion=4,5,2709,24579
> file-win32-x86=thiscab
> RegisterServer=yes
> [emoutlook.dll]
> FileVersion=1,0,0,0
> file-win32-x86=thiscab
> RegisterServer=yes I've packaged the dll's along with the inf
> file in a cab using cabarc.exe cabarc N emoutlook.cab
> emoutlook.inf emoutlook.dll MAPI33.dll I've adjusted all my IE
> setttings to allow download and installation of an unsigned activex
> object, like: download unsigned activex controls: Enable
> initialize and script activex controls marked as unsafe: Enable
> etc, etc... When I browse my page, IE prompts me to download and
> install emoutlook.cab. Using fiddler I see that it does in fact
> download the cab. I can go to Tools > Manage Add-ons and see the
> entry for Net.em.Outlook, It's type is activex control, and I see that
> it is enabled as well. One thing I find odd is that the file
> associated with it is mscoree.dll, not either of the dlls in the
> cab. I get the following javascript error: "automation server can't
> create object"at the line: var outlook = new
> ActiveXObject("Net.Em.Outlook");
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel interop Vishesh ASP .Net 1 12-13-2005 01:11 AM
com interop C# VB6 JerryP ASP .Net 0 10-28-2004 01:22 PM
Catalyst/Extreme Interop Gary Richardson Cisco 0 02-17-2004 06:56 PM
Tab Fails on TextBox using COM Interop Brett Roy ASP .Net 0 09-29-2003 04:11 AM
Microsoft Office Interop word dll bracoute ASP .Net 1 07-05-2003 05:01 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57