Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - aspx page, C#, trying to instantiate a C++ ATL COM control

 
Thread Tools Search this Thread
Old 11-01-2004, 02:58 PM   #1
Default aspx page, C#, trying to instantiate a C++ ATL COM control


and when I call

MyUtilityLib.MyControl l_oControl = new MyUtilityLib.MyControlClass();

I get an exception thrown with the message "Access Denied."

Now, I wrote the control myself (as a test case when this happened with a
different control) and it is a terribly simply control created via the VS
..Net 2003 "ATL Object" project wizard which creates the library and I add a
single "Simple ATL Control" as a new class to that project. It exposes a
single method on the interface (ITest) which is "Test" and takes no
arguments.

The constructor for the control class does nothing. Now, the only thing
unusual is that I instructed the ATL Object project wizard to support MFC.

Anybody run into this before? Hopefully this is an obvious "how did you not
know this" issue and I can feel like an ass and move on.

WTH





WTH
  Reply With Quote
Old 11-01-2004, 10:36 PM   #2
WTH
 
Posts: n/a
Default Re: aspx page, C#, trying to instantiate a C++ ATL COM control
Ewww, it was stupid. IIS didn't have access, apparently, to the directory
in which the COM object's DLL was located.
I was looking through configuration settings in the IIS manager and didn't
locate a setting for adding directory pathing info. Do I need to create a
virtual folder for this COM object?

WTH




WTH
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sessions in Aspx getting mixed up jet vedi Software 0 07-23-2009 07:25 PM
export aspx page to word format or pdf format as it is display in aspx page getmeaditi Software 0 03-10-2009 07:15 AM
how to access iframe from an aspx page eyal1234 Software 1 07-22-2008 10:57 AM
How to load Two iframe in one aspx page? pratima Software 2 02-02-2008 03:17 AM
Enbedding aspx page into another aspx page and post back Naga_01 Software 0 06-06-2006 06:51 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

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