locked
Getting HTTP (403) Forbidden RRS feed

  • Question

  • User-967720686 posted

    Hi,

    I've a vm role hosting my web application which call's rest management api's. I have generated a management certificate (.cer) in the vm and uploaded it to my subscription. The problem I have is when I call rest api's like "Create Virtual Machine Deployment" i get 403 (Forbidden) from the server.

    This is not happening when I am call the api's using windows forms application (Test app) on the vm role or when I m using my development enviroment (for dev i've generated and uploaded the certificate freom my machine).

    Any help is appreciated.

    Regards,

    Farhan

    Monday, December 10, 2012 7:40 PM

All replies

  • User1423713461 posted

    Couple of questions:

    1. The api's that you are calling, are they hosted as a service? If so, is it WCF/asmx Service?
    2. On the server you are hosting it, are you using IIS? If so, what version?
    Tuesday, December 11, 2012 3:47 AM
  • User-967720686 posted

    Hi,

    Thank you for replying.

    1. The api's are azure rest management api's.

    2. I am using IIS 7.0.

     

    Regards,

    Tuesday, December 11, 2012 4:46 AM
  • User1423713461 posted

    Not sure why exactly that is happening. Run 

    aspnet_regiis -i

    in command prompt on the server and try again perhaps?

    Tuesday, December 11, 2012 6:15 AM