Questions on hosting .net control in web page
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > IIS server support > IIS Server Security > Questions on hosting .net control in web page




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Questions on hosting .net control in web page  
Lei Jiang


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-26-04 03:16 PM

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.








[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 08:40 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register