Questions on hosting .net control in web page

L

Lei Jiang

I have several questions on hosing .net controls in web page :

1. Why only .net control instead of .net form could be hosted in web page?
If I want to embed a .net form in web page, how can I achieve that?

2. If my .net control uses some unmanged DLLs(through MC++), could these
unmanged DLLs be automatically download to client machine? It seems I have
to explicitly copy these DLLs to client machine.

3. I do have all unmanged DLLs in the path of client machine, but when the
ASP.NET page run, it reports :

----------------------------------------------------------------------------
---------------------------------------------

Configuration Error :

Access denied : BTHPMS.DLL

Line 196£º <add assembly="System.EnterpriseServices,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 197£º <add assembly="System.Web.Mobile, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 198£º <add assembly="*"/>
Line 199£º </assemblies>
Line 200£º </compilation>
Source file: c:\win\microsoft.net\framework\v1.1.4322\Config\machine.config
Line: 198



=== Pre-bind state information ===
LOG: DisplayName = BTHPMS
(Partial)
LOG: Appbase = file:///C:/DMS2002Dev/src/DWM/DWMWeb
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Post-policy reference: BTHPMS
LOG: Attempting download of new URL
file:///C:/WIN/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/dwmweb/175a0a1d/68bc7dea/BTHPMS.DLL.
LOG: Attempting download of new URL
file:///C:/WIN/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/dwmweb/175a0a1d/68bc7dea/BTHPMS/BTHPMS.DLL.
LOG: Attempting download of new URL
file:///C:/DMS2002Dev/src/DWM/DWMWeb/bin/BTHPMS.DLL.
LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Post-policy reference: BTHPMS, Version=0.2.0.0, Culture=neutral,
PublicKeyToken=null





----------------------------------------------------------------------------
----

Microsoft .NET Framework version:1.1.4322.573; ASP.NET version:1.1.4322.573

----------------------------------------------------------------------------
--------------------------------------------

This is a server error. BTHPMS.DLL is a managed DLL written in MC++ to
access functions in unmanged DLLs. This DLL, and unmanged DLLs it used, are
all copied into the root of my web application(DWMWeb). I have granted the
IUSER_MyMachine account have READ/RUN/List Directory/ right on that
directory. In fact, in order to avoid "access denied" problem, I have
granted "EveryOne" have the same permission on that directory, but the IIS
still report that error.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top