asp.net mvc - Requesting to controller throws 500 Internal error when deployed to azure -


i deploying web service on azure. in azure, have mysql db , have fed connection string web.config file. working fine in local environment. when deploy azure, controller don't work. here screenshots of local , remote working scenarios. have traced remote log file of request in screenshot.

controller's operation remote db(mysql) in local environment works fine scenario in terms of remote deployment


here log file of error (500) enter image description here

while surfing through internet, came across lot of solutions using identity, change authorization none , on. confused right been 2 days , still stuck in it. right guidance highly appreciated.

i have found solution problem. problem simple. added reference of mysql.data.dll in project, forgot add inside bin folder (by checking copylocal=true).
after updated web.config file adding these markups in <system.web></system.web>tags.

<dbproviderfactories>       <remove invariant="mysql.data.mysqlclient" />       <add name="mysql data provider" invariant="mysql.data.mysqlclient" description=".net framework data provider mysql" type="mysql.data.mysqlclient.mysqlclientfactory, mysql.data, version=6.8.3, culture=neutral, publickeytoken=c5687fc88969c44d" />     </dbproviderfactories> 


enabled custom errors="off", in way able production level errors on deployed code. `


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -