PDA

View Full Version : Can't access a javascript file in another directory /aspnet_client


sbernardi
02-01-2006, 06:21 AM
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?

bruce
02-01-2006, 06:56 AM
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 (http://www.DiscountASP.NET)