Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Alternate Webservice BIN Directory

Reply
Thread Tools

Alternate Webservice BIN Directory

 
 
Anthony C
Guest
Posts: n/a
 
      12-18-2003
Is it possible to change the BIN directory to be something else on the
PC?

Namely, we're using single directory deployment for a base app. The
web services allow other clients to get data from the client on my PC.
Since the webservice references a few middle tier objects, I want the
webservice to reside in the same folder (so I do not need to deploy
the middle tier objects twice).

Is this possible?

In other words, instead of having

c:\inetpub\wwwroot\application and
c:\inetpub\wwwroot\application\bin

I want

c:\inetpub\wwwroot\application and
c:\inetpub\wwwroot\application\custombindirectory
 
Reply With Quote
 
 
 
 
Jan Tielens
Guest
Posts: n/a
 
      12-18-2003
Probably the <codebase> element (Specifies where the common language runtime
can find an assembly). can help you out:
http://msdn.microsoft.com/library/de...us/cpgenref/ht
ml/gngrfcodebase.asp
For the runtime to use the <codeBase> setting in a machine configuration
file or publisher policy file, the file must also redirect the assembly
version. Application configuration files can have a codebase setting without
redirecting the assembly version. After determining which assembly version
to use, the runtime applies the codebase setting from the file that
determines the version. If no codebase is indicated, the runtime probes for
the assembly in the usual way.

If the assembly has a strong name, the codebase setting can be anywhere on
the local intranet or the Internet. If the assembly is a private assembly,
the codebase setting must be a path relative to the application's directory.

For assemblies without a strong name, version is ignored and the loader uses
the first appearance of <codebase> inside <dependentAssembly>. If there is
an entry in the application configuration file that redirects binding to
another assembly, the redirection will take precedence even if the assembly
version doesn't match the binding request.


--
Greetz

Jan Tielens
________________________________
Read my weblog: http://weblogs.asp.net/jan


"Anthony C" <> wrote in message
news: om...
> Is it possible to change the BIN directory to be something else on the
> PC?
>
> Namely, we're using single directory deployment for a base app. The
> web services allow other clients to get data from the client on my PC.
> Since the webservice references a few middle tier objects, I want the
> webservice to reside in the same folder (so I do not need to deploy
> the middle tier objects twice).
>
> Is this possible?
>
> In other words, instead of having
>
> c:\inetpub\wwwroot\application and
> c:\inetpub\wwwroot\application\bin
>
> I want
>
> c:\inetpub\wwwroot\application and
> c:\inetpub\wwwroot\application\custombindirectory



 
Reply With Quote
 
 
 
 
MSFT
Guest
Posts: n/a
 
      12-19-2003
I agree with Christian , this is not working in ASP.NET application. We
have to put the assembly in the BIN forder or just define it in asmx file.
Form MSDN:

@ WebService Directive in XML Web Services

Defines XML Web service specific (.asmx file) attributes used by the
ASP.NET parser and compiler.

<%@ WebService attribute="value" [attribute="value"¡*] %>

Attributes

Class

Specifies the class implementing the XML Web service that is automatically
compiled the first time the XML Web service is accessed after changes. This
value can be any valid class name residing in either the same file as the
WebService directive or within a separate file. If the class resides in a
separate file, it must be placed in the \Bin directory underneath the Web
application where the XML Web service resides. This attribute is required
for the XML Web service to compile.

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

 
Reply With Quote
 
 
 
Reply

Thread Tools

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
what's 'alternate' in <link rel=alternate>? Chris ASP .Net 2 03-04-2007 04:45 PM
Alternate initializers or alternate class? transfire@gmail.com Ruby 10 07-17-2006 03:20 AM
#!/usr/bin/ruby , #!/usr/bin/ruby -w , #!/usr/bin/ruby -T?, #!/usr/bin/ruby -T1... anne001 Ruby 1 04-23-2006 03:02 PM
Where do i find the recycle bin? XP PRO with norton protected bin Quiz Time Computer Support 6 06-27-2004 11:13 AM
Can "bin" be changed to "cgi-bin" for asp.net Kevin Mitchell ASP .Net 3 10-19-2003 10:39 PM



Advertisments
 



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