Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

IIS not "finding" deployed of DLL in a search path

287 views
Skip to first unread message

Sunil Menon

unread,
Dec 23, 2002, 3:54:51 AM12/23/02
to
Dear All,
We keep all our DLLs in the bin directory. We do not want to do this
for iQS
dlls. So we want to deploy some dlls in bin and some in
\iqs\bqsv51\bin
directory.

We have found out that if we add the following to web.config,
then it works with files created as class libraries. (i.e. IIS finds
them)

==============================
<runtime
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"
<probing privatePath="bin;iQS\BQSv51\bin"/
</assemblyBinding
</runtime
=============================================
BUT - that does not work for dlls created as ASP.NET or Web
Service projects
(DLLs associated with aspx/asmx files). The reason is that such files
have
an associated "Codebase".

"WHAT DO WE HAVE TO DO SO THAT even such DLLs are found by IIS".

See for more details:
ms-help://MS.VSCC/MS.MSDNVS/cpguide/html/cpconstep4locatingassemblythroughco
debasesorprobing.htm

and

ms-help://MS.VSCC/MS.MSDNVS/Cpqstart/html/cpsmpnetsamples-howtoassemblies.htm

Thanks a lot in advance.
Many Regards
Sunil

Dan Clark

unread,
Dec 23, 2002, 11:08:44 AM12/23/02
to
Did you create a virtual directory in IIS?
dclark
>.
>

Sunil Menon

unread,
Dec 23, 2002, 10:50:12 PM12/23/02
to
Dear Dan,
I have a Virtual directory iMedWS in which I have a sub directory
ModNr233 under which I have kept my aspx page...Do I need to create a
Virtual directory for ModNr233 too???...this would be tedious as I
have a subdirectory under iMedWS for every module aspx page...Is there
a easy way out...

Thanks a lot in advance...
Many Regards
Sunil

"Dan Clark" <drc_...@yahoo.com> wrote in message news:<043301c2aa9d$917f1f50$8af82ecf@TK2MSFTNGXA03>...

Sunil Menon

unread,
Dec 24, 2002, 5:30:02 AM12/24/02
to
Dear Dan,
Is there some way where I can set the source of the dll in my aspx page...
somewot like this <%@ Register TagPrefix="domval" Namespace=DomValidators
Assembly=DomValidators%>

Thanks a lot in advance.
Many Regards
Sunil

su...@itb-india.com (Sunil Menon) wrote in message news:<de18ec83.02122...@posting.google.com>...

Dan Clark

unread,
Dec 25, 2002, 11:42:14 AM12/25/02
to
Try altering the src attribute of the @page directive in
the aspx file.
dc
>.
>

Sunil Menon

unread,
Dec 25, 2002, 11:15:51 PM12/25/02
to
Dear Dan,
I tried to set the src path but it gave me the following error:

Parser Error
Description: An error occurred during the parsing of a resource
required to service this request. Please review the following specific
parse error details and modify your source file appropriately.

Parser Error Message: The virtual path '/iqs/bqsv51/bin' maps to
another application, which is not allowed.

Source Error:

Line 1: <%@ Page Language="vb" AutoEventWireup="false"
Codebehind="WebExpPage.aspx.vb" src="\iqs\bqsv51\bin"
Inherits="WebExceptionPage.WebExpPage"%>

Can u tell me where I am wrong?

Thanks a lot in advance.
Many Regards
Sunil

"Dan Clark" <drc_...@yahoo.com> wrote in message news:<004401c2ac34$9419c970$d2f82ecf@TK2MSFTNGXA09>...

Dan Clark

unread,
Dec 26, 2002, 10:03:52 AM12/26/02
to
I think you are trying to do something that is not
allowed. The code behind and the aspx pages need to be in
the same web app. Code behind is usally located in the bin.
>.
>

Sunil Menon

unread,
Dec 26, 2002, 11:03:48 PM12/26/02
to
Dear Dan,
I think it is possible to specify the dll in a different directory
other than bin...I guess we have to change the Web.Config of the aspx
file and use the Assembly attribute. But I don't know how to do
it...if anyone has tried it...it could be nice if they could share
this information with us...

Thanks a lot in advance.
Many Regards
Sunil

"Dan Clark" <drc_...@yahoo.com> wrote in message news:<048c01c2acf0$009fdb00$d6f82ecf@TK2MSFTNGXA13>...

0 new messages