Hi Reza,
I think this problem is caused when your role startup, would you like to check your startup task like Vaibhav's suggestion, check all reference's assembly, check if there is any request failed, or you can use Remote desktop connect to VM to see stack or
tracing messages. Local environment is different with Cloud environment, have a check and if you still could not resolve this problem, please post more details and inform me.
Hope this helps.
Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact
msdnmg@microsoft.com
Microsoft One Code Framework