trying to access my apphandler through ajax

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

 $.ajax({
            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

mgmhicksAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

leakim971PluritechnicianCommented:
Did you checked your IIS log as mentioned here ?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JSON

From novice to tech pro — start learning today.