Professional Web Applications Themes

Change search path. - ASP.NET Web Services

I have several web services and they all rely on the assemblies in a root directory. Right now I have something like: A web service B web service C...

Sponsored Links
  1. #1

    Default Change search path.

    I have several web services and they all rely on the assemblies in a root
    directory. Right now I have something like:

    A
    web service B
    web service C
    Sponsored Links
    Kevin Burton Guest

  2. #2

    Default RE: Change search path.

    Hi Kevin,

    A few options you have that are pretty simple include copying the DLL's
    into the bin directory for each application, or if you want only one copy
    of the DLL on the system, place it where you like and add it to the GAC.
    To add to the GAC, the assembly will need to have a strong name, and you
    will want to consider whether you want both applications locked around that
    DLL. Once in the GAC, all requests for a particular assembly (not found in
    the local directory) will be resolved to the GAC copy. This means that if
    you want to update the DLL, you'll need to implement a versioning policy or
    take both applications off line.

    Hope this helps,

    Dan Rogers
    Microsoft Corporation
    --------------------
    >Thread-Topic: Change search path.
    >thread-index: AcTBEaggP3zLNHFdQoCidK5WfpGbRg==
    >X-WBNR-Posting-Host: 198.241.217.3
    >From: =?Utf-8?B?S2V2aW4gQnVydG9u?= <KevinBurtondiscussions.microsoft.com>
    >Subject: Change search path.
    >Date: Tue, 2 Nov 2004 11:25:05 -0800
    >Lines: 23
    >Message-ID: <27EC3ACD-643C-43D3-81C7-D81E51E7D702microsoft.com>
    >MIME-Version: 1.0
    >Content-Type: text/plain;
    > cht="Utf-8"
    >Content-Transfer-Encoding: 7bit
    >X-Newsreader: Microsoft CDO for Windows 2000
    >Content-Class: urn:content-classes:message
    >Importance: normal
    >Priority: normal
    >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
    >Newsgroups: microsoft.public.dotnet.framework.aspnet.webservic es
    >NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
    >Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
    >Xref: cpmsftngxa10.phx.gbl
    microsoft.public.dotnet.framework.aspnet.webservic es:26352
    >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservic es
    >
    >I have several web services and they all rely on the assemblies in a root
    >directory. Right now I have something like:
    >
    >A
    > web service B
    > web service C
    > .
    >
    >Where 'web service B' is a sub directory of A containing the .asmx files,
    >the resource files, global asmx, etc. The assemblies that support each of
    the
    >web services are currently in A so in order for 'web service B' to find
    the
    >assemblies I would need to add something like <probing privatePath="..">
    to
    >web.config in order for the assemblies to be found. The <probing> element
    >specifically prohibits specifying anything but sub-directories. Any ideas
    on
    >how I might solve this problem or restructure my app? Could I point the
    >virtual directory to say 'web service B' and have the application base be
    one
    >directory up (in A)? If so how?
    >
    >Thank you.
    >
    >Kevin Burton
    >
    >
    >
    Dan Rogers Guest

Similar Threads

  1. Change location path...
    By ::: robman ::: in forum Coldfusion Flash Integration
    Replies: 0
    Last Post: October 26th, 11:34 AM
  2. PEAR Search Path (PHP's include_path)
    By doyou@g0t-root.com in forum FreeBSD
    Replies: 1
    Last Post: February 21st, 12:06 AM
  3. problem with GCC search path on FreeBSD5.3 AMD64
    By Maicon Stihler in forum FreeBSD
    Replies: 2
    Last Post: February 19th, 08:06 AM
  4. assembly search path
    By Steve C. Orr, MCSD in forum ASP.NET General
    Replies: 1
    Last Post: August 7th, 10:07 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139