Click here to Skip to main content
15,905,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Everyone.

I have got an issue with my project and this will rather be a broad question ..but i am running out of options has this is now my second day trying to resolve this issue.

Basically my project works fine when i run it locally , it does not give an errors and the data is submitted successfully into a db. But once i publish the project onto a server, the same project that works fine when running locally gives me the an error (*Status 405 (Method not allowed)*). Some how to me this doesn't make sense as the project works well locally surely it should work when published. Anyway I don't a lot about 405 Status errors so i might be missing something. Is there any one that might know how to resolve this issue?

Thank you.
Posted
Comments
Herman<T>.Instance 30-Oct-14 6:16am    
Are you using Handlers and Modules in the configuration file?

Basically, a 405 error indicates that you are doing (or trying to do) something that is not permitted by your web hosting service. So it works locally because the webserver you use via Visual Studio is not configured to block any actions - but when you publish it to teh live site, it becomes a forbidden operation.

Normally, these errors come with more information, but you really need to take the whole error report and talk to your webhosting service's technical support department. We can't help because we have no access to your code, or any idea what host you are using, much less what they are restricting you from doing!
 
Share this answer
 
Thank you to all who took a chance to help me with this.


But i finally figured out that I was using $http.put and for some reason ISS does not like this so instead I used $http.post which worked like a charm!. hopefully this helps!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900