Using .net windows user controls in to browser

S

Sajjad

Hi,

I am have an application which uses cotnrols and i want to expose it using
browser in an asp.net application.
What happens is if my control has fields declared those are from other dll
(which is strongly named),
It doesnt load.

1. Is there some known issues with refering types from other dlls while
using .net control in html pages
2. Is there issue with strongly named assembly usage (espcially has
referenced assembly)
3. Is there a way to specify referenced assembly in html object tag.

any quick help will be really helpfull any samples :)

Thanks,
Sajjad
 
J

Jeffrey Tan[MSFT]

Hi Sajjad,

Thanks for your post.

Normally, for winform controls hosted in IE, when calling a method or
getting a reference from another assembly, client .Net will dynamically
download the referenced assembly for us.

Can you show me where are the referenced assembly placed?
I have created a sample test. With a usercontrol in hostingcontrol.dll,
which references Form1 class in another assembly named
ReferencedAssembly.dll. When placing these 2 assemblies in the same
directory with the html page, everything works well, client .Net will
dynamically load ReferencedAssembly.dll without any problem.

Actually, .Net locating algorithm is documented in MSDN, please refer to
the link below:
"How the Runtime Locates Assemblies"
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm
l/cpconhowruntimelocatesassemblies.asp

More specifically is "Step 4: Locating the Assembly through Codebases or
Probing"
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm
l/cpconstep4locatingassemblythroughcodebasesorprobing.asp

We should ensure the referenced assembly to reside in the directory .Net
may probe.

Hope this helps.
=================================================
Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
J

Jeffrey Tan[MSFT]

Hi Sajjad,

Does my reply make sense to you? Is your problem resolved? Please feel free
to tell me, thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 

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

Top