home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 40 / IOPROG_40.ISO / SOFT / NETFrameworkSDK.exe / comsdk.cab / samples.exe / QuickStart / howto / doc / searchpath.aspx < prev    next >
Encoding:
Text File  |  2000-06-09  |  2.1 KB  |  61 lines

  1.  
  2. <!-- #include virtual="/quickstart/howto/include/header.inc" -->
  3.  
  4. <%
  5.     runsample = Server.MapPath("/quickstart/howto/samples/assemblies/searchpath")
  6.     icon = "/quickstart/images/genicon.gif"
  7.     caption = "math.exe"
  8. %>
  9.  
  10. <h4>How Do I...change the search path for private assemblies?</h4>
  11.  
  12. <div class="indent" style="WIDTH: 660px">
  13. This sample demonstrates how to use an application configuration file to specify a custom search path for private assemblies...
  14. </div>
  15.  
  16. <h4>Example</h4>
  17.  
  18. <p>
  19. <div class="indent">
  20. <a target="_blank" href="<%=runsample%>">
  21. <img style="border-color:black" border=1 src="<%=icon%>"><br>
  22. </a>
  23. <div class="caption"><%=caption%></div><br>
  24. </div>
  25.  
  26. <h4>Assembly Search Paths</h4>
  27. <div class="indent" style="WIDTH: 660px">
  28. <P>The default search path for private assemblies includes the 
  29. "AppBase" - the directory the application resides in - plus subdirectories 
  30. thereof that follow naming conventions based on assembly name and culture.  
  31. You can customize this behavior using an application configuration file.  
  32. For an executable, the configuration file resides in the same directory as the 
  33. exe and has the same name (minus ".exe") with a ".cfg" extension.  For this 
  34. sample the executable is called math.exe and the configuration file is called 
  35. math.cfg.  The cfg file looks like this: </P>
  36. <P><?xml version = "1.0"?></P>
  37. <P><configuration></P>
  38. <P>    <AppDomain PrivatePath="parser" /></P>
  39. <P></configuration></P>
  40. <P>The "PrivatePath" attribute of the "AppDomain' tag is a semi-colon delimited 
  41. list of directories in which to search for private assemblies.  These 
  42. directory names are relative to the AppBase - they cannot point outside the 
  43. AppBase.  The directories on "PrivatePath" will be searched after the 
  44. AppBase itself.</P>
  45.                      
  46.                      
  47.                         
  48.                     
  49.  
  50.   
  51.  
  52.                       
  53.                    
  54.  
  55.    
  56.  
  57.                        
  58.                          
  59.                        
  60. </div><!-- #include virtual="/quickstart/howto/include/footer.inc" --></BODY></HTML>
  61.