Can't access a javascript file in another directory /aspnet_client

Discussion in 'ASP.NET / ASP.NET Core' started by sbernardi, Feb 1, 2006.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I have an ASP.Net 1.1 application running in a directory /vxo1 designated as a Web Application .
    I'm using a control SqlWhereBuilder that provides a nice user interface for user defined search criteria. It references a javascript file that by default goes in /aspnet_client/UNLV_IAP/SqlWhereBuilder/SqlWhereBuilder.js. I've created the directory structure under /htdocs, uploaded the file, and designated /aspnet_client as a Web Application. I've also made sure that the directory has permissions for anonymous access.
    The file that accesses the javascript is in /vxo1/xchg. I've verified that the control creates a line to register the javascript like so:
    <script language='JavaScript1.2' src='/aspnet_client/UNLV_IAP_WebControls/SqlWhereBuilder/SqlWhereBuilder.js'></script>

    It runs fine on my laptop running IIS where the script is under c:/InetPub/wwwroot/aspnet_client/UNLV_IAP_WebControls/SqlWhereBuilder/. The application is in a virtual directory not under c:\InetPub.

    I'm at my wits' end. I can't see why this shouldn't work. Can somebody give me some suggestions?
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    aspnet_client is setup as a virtual directory to point to a centralized location.

    I highly recommend against putting files in that directory because the last 2 asp.net upgrade, the installer overwrite that directory.

    If you must put files in that directory, email support. We can remove the aspnet_client directory.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page