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.
here log file of error (500)
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
Post a Comment