RE: Move to vs2005 causes errors in external controls

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi

Thanks for the reply.... hopefully I can answer your questions.

Ok, the website code is all located on my Win2k3 server, in a directory on
the W: drive. W:\Intranet to be precise. All the dlls and everything are
located in the \bin folder below that (W:\Intranet\Bin).

IIS 6 has a website with it's home directory set to W:\Intranet.

The machine running Visual Studio is connected via the normal router setup,
with W:\ on the server being mapped as W:\ on the client machine (to keep
things simple!), and when I open my solution, I'm opening it directly from
the mapped W: (W:\Intranet\Intranet.sln).

It would appear that the dll is being recognised, as if I comment out the
Register line..

<%@ Register TagPrefix="obout" Namespace="OboutInc.Calendar"
Assembly="obout_Calendar_Pro_Net" %>

then the following line...

<obout:Calendar runat="server" ID="calDate" />

gives me the error "Unrecognized tag prefix or device filter 'obout'."

Whereas, if I leave that line in, I get the error.. "Element 'Calendar' is
not a known element. This can occur if there is a compilation error in the
Web site."

Either way, I still get the System.Web.AspNetHostingPermission error.

The control I'm using doesn't have a design time implementation, and if I
try and drag the DLL onto the form, I just get an <a href /> element :)

I hope this helps? The control I'm using has a trial version available at
www.obout.com if that will help.

Hoping you can fix this!!

Cheers



Dan



""Yuan Ren[MSFT]"" wrote:

> Hi Dan,
>
> Thanks for your supply more information!
>
> I think maybe I ignore some information actually. Could you please tell me
> about the relationship between your web application and the custom control?
> What I mean is whether the .dll file of the customer control is in the same
> machine with the web application. If not, please give me more details.
>
> Additionally, can you add the custom control in the web page in design time?
>
> Regards,
>
> Yuan Ren [MSFT]
> Microsoft Online Support
>
>
.



Relevant Pages

  • Re: Custom Control & Dll Hell
    ... I dont why this is the "DLL Hell". ... resources in the resource chain. ... A dll with a dialog using the custom control ... An exe that uses the dialog from DialogDll.dll ...
    (microsoft.public.vc.mfc.docview)
  • Using custom control from dlls
    ... My goal is to create some CPropertyPage objects and doc/view template ... contained in a diferent dll. ... I've got a custom control created by me which works correctly if I use ...
    (microsoft.public.vc.mfc)
  • Re: CreateDialogIndirect()s silent failure...
    ... 1> MFC extension DLL having dialog with its class exported from this ... DLL - say DLL#2. ... CreateDialogIndirect() to return Handle? ... kind of "custom control" is being exported from the other DLL? ...
    (microsoft.public.vc.mfc)
  • Re: How to write a custom control in MFC ??
    ... yes you can easily wrap your custom control in activex or you can create a ... google for creating activex control in MFC and creating dll in mfc. ...
    (microsoft.public.vc.mfc)
  • Re: There was an error loading types... when adding toolbox items
    ... I would check to make sure you have all referencing types of your custom control with the dll of the custom control. ... Shaun McDonnell ...
    (microsoft.public.vsnet.general)