PC Review


Reply
 
 
silva.sergiomanuel@gmail.com
Guest
Posts: n/a
 
      31st Oct 2005
Hi,


Can my AppDomain ApplicationBase be something like
"http://www.mysite.com/dllstorage/" ?


When some dll was not found in applicationbase, does subfolders
will be checked automatically?


like "http://www.mysite.com/dllstorate/internal/somefile.dll"


Thanks in advance

 
Reply With Quote
 
 
 
 
=?Utf-8?B?U3JlZWppdGggUmFt?=
Guest
Posts: n/a
 
      31st Oct 2005
> When some dll was not found in applicationbase, does subfolders
> will be checked automatically?


Not all subfolders,
This link may help.. checkout "Locating the Assembly through Probing" section
http://msdn.microsoft.com/library/de...sorprobing.asp



"(E-Mail Removed)" wrote:

> Hi,
>
>
> Can my AppDomain ApplicationBase be something like
> "http://www.mysite.com/dllstorage/" ?
>
>
> When some dll was not found in applicationbase, does subfolders
> will be checked automatically?
>
>
> like "http://www.mysite.com/dllstorate/internal/somefile.dll"
>
>
> Thanks in advance
>
>

 
Reply With Quote
 
Richard Grimes
Guest
Posts: n/a
 
      1st Nov 2005
(E-Mail Removed) wrote:
> Hi,
>
>
> Can my AppDomain ApplicationBase be something like
> "http://www.mysite.com/dllstorage/" ?


Yes, sort of.

> When some dll was not found in applicationbase, does subfolders
> will be checked automatically?
>


You can specify that a particular folder should be searched on the local
machine, you can also specify that a file is downloaded from a specific
location on the web. See the sections here about probing:

http://www.grimes.demon.co.uk/workshops/fusionWS.htm

Richard
--
http://www.grimes.demon.co.uk/workshops/fusionWS.htm
http://www.grimes.demon.co.uk/workshops/securityWS.htm


 
Reply With Quote
 
silva.sergiomanuel@gmail.com
Guest
Posts: n/a
 
      2nd Nov 2005
Thanks for your answers.

I have another question

It's possible to load into app domain assemblies from two different
unrelated paths using two
diferent application base?

Example:
C:\ProgramFiles\Company\MySDK
and
\\remoteassembly\script.dll

Thanks

 
Reply With Quote
 
Richard Grimes
Guest
Posts: n/a
 
      4th Nov 2005
(E-Mail Removed) wrote:
> Thanks for your answers.
>
> I have another question
>
> It's possible to load into app domain assemblies from two different
> unrelated paths using two
> diferent application base?
>
> Example:
> C:\ProgramFiles\Company\MySDK
> and
> \\remoteassembly\script.dll


The config file allows you to load a specific version of an assembly
from a specific location (as long as it has a strong name), so if you
have two assemblies one in C:\ProgramFiles\Company\MySDK and the other
in \\remoteassembly\, you can specify these locations in the config file
and (subject to security) they will be loaded.

However, you do have to question why you want to do this. The general
design of .NET is to have private assemblies in the application folder
(to facilitate XCOPY deployment) and to have shared assemblies in the
GAC. You should not share assemblies by providing your own company
folder (like C:\ProgramFiles\Company\MySDK) you gain nothing by doing
that.

Also, it means that you can only have one version of your company's
assembly in that shared folder. A new version would be copied over an
older version which would break older applications, this will be DLL
Hell all over again.

Loading from a remote site means that you download the assembly once -
the first time you access it - and the assembly will be cached locally
from where it will be loaded on the next run of the application. The
objects in this assembly will be run on the local machine. (Note that it
is cached in a user's profile folder, so if you can multiple users on a
machine they will *each* download the assembly once). So again, you have
to question why you want to download it from a remote location. If your
intention is to have the objects run on another machine, then you are
talking about .NET remoting.

Richard
--
http://www.grimes.demon.co.uk/workshops/fusionWS.htm
http://www.grimes.demon.co.uk/workshops/securityWS.htm


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
free domain de vu kostenlose homepage mit eigener domain domain registrierung schweiz domain bei web de email domain sdgvfwe@yahoo.is.com Microsoft Windows 2000 Networking 0 18th Jul 2008 02:58 AM
biz domain registrieren kostenlose eu domains domain alias weiß jemand wo ich eine guenstige domain bekommen kann internet domain sdgvfwe@yahoo.is.com Windows XP Messenger 0 18th Jul 2008 02:58 AM
eigene web domain kostenlose domain registrierung domain driven design homepage de domain samba domain sdgvfwe@yahoo.is.com Microsoft Excel Worksheet Functions 0 18th Jul 2008 02:56 AM
domain lookup guenstige de domain de domain sponsor kostenlose domain adresse de tc domain sdgvfwe@yahoo.is.com Microsoft Excel Discussion 0 18th Jul 2008 02:06 AM
domain reservieren kostenlos guenstige net domain de domain guenstig de domain erstellen kostenlose web domain sdgvfwe@yahoo.is.com Microsoft Windows 2000 Group Policy 0 8th Jul 2008 09:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:01 PM.