Error happened only after when asp.net deployed

I developed asp.net with mvc.
I had error after when I deployed in IIS.
(Windows 10)
Error show me controller is not found when ajax called it.
In using visual studio , it is working fine.
What is problem?
Sat NunaAsked:
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.

Ryan ChongCommented:
have you deployed everything in the bin folder into target folder for your iis website/application?
0
Sat NunaAuthor Commented:
Yes, I deployed everything in the bin folder.
I used visual studio for deployment.
And I can access other controller actions other than the action called from ajax.
0
Ryan ChongCommented:
how's your ajax and controller codes look like?
0
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

Sat NunaAuthor Commented:
ajax call is below

        function sendAjax(ID) {
            var serviceURL = '/ShoppingAjax/FirstAjax';
            var productId = ID;
            $.ajax({
                url: serviceURL,
                type: "POST",
                data: { Id: productId },
                dataType: 'json',
                success: successFunc,
                error: errorFunc
            });
        }

controller is bellow

        [HttpPost]
        public ActionResult FirstAjax(string Id)
        {
              …

Does it have problem?
0
Ryan ChongCommented:
Does it have problem?
your post jquery and controller codes both are ok.

no problem tested locally in my machine.

are you re-built your solution before the deployment?

are you able to do a separate posting to /ShoppingAjax/FirstAjax?

using request tool such as Postman for separate testing to make sure your Action is working fine.

Postman
https://www.getpostman.com/
0

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
Sat NunaAuthor Commented:
are you re-built your solution before the deployment?
Yes, but It doesn't work.

are you able to do a separate posting to /ShoppingAjax/FirstAjax?
It's difficult for me , I'm trying to understand how to use Postman.
0
Ryan ChongCommented:
Yes, but It doesn't work.
if you can't re-build the solution it probably means there are still some issues in your solution. try to solve it, then re-build and deploy accordingly.
0
Sat NunaAuthor Commented:
I think it will need time to understand.
I would like to close this session at this time.
0
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
ASP.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.