trying to access my apphandler through ajax

mgmhicks used Ask the Experts™
I have an apphandler.ashx file in the app_code folder.  The script to access it is.  The file is there and works on development but on production machine I get:

Failed to load resource: the server responded with a status of 404 (Not Found)   http://localhost:49630/App_Code/UnitAvailability.ashx 

It worked in the route on the development but not on production.  Since moving it to app_code folder it no longer works and I get the above error.

I see the file sitting there not sure whats up

            url: 'App_Code/UnitAvailability.ashx',
            type: 'POST',
            dataType: 'json',
            //  data: JSON.stringify($('form').serializeObject()),
            data: JSON.stringify(test2),

            success: function (data) {
             var oTable =   $('#example').DataTable({
                    data: data, //this is your JSON object, which is what is showing in your post above with console.log(data)
                    "bLengthChange": false,
                    searching: false,
                    select: {  etc,,,,,  

Open in new window

Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2014
Did you checked your IIS log as mentioned here ?

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial