Okay, I have a JavaScript file with the following functions:
function AskReason() {
var answer = prompt(\"Please enter a reason for this action:\", \"\")
The url
var url = "/Shared/AskReason.ashx?REASON=" + reason;
Is looking for the file in the root directory [since it is an absolute path], effectively
http://localhost/Shared/AskReason.ashx
You should include the name of the virtual directory OR determine the appropriate structure:
Starting without the / will give you a relative path ... if you need to navigate directories use ../Shared/ style of notation, or finally use your servers Directory command to determine your current path.