i created a simple webapi and a simple webpage with different ports to register a new user. when my webpage consume the webapi. it always show This database was create. and it works fine with local host from the same webapi project. i already added my IIS application pool to the mysql security already.
Error 500
CREATE TABLE permission denied in database 'atestDB'
i noticed that if i remove this line in the connection string. it will works fine.
Integrated Security=True
so my question is. can i go without integrated in my sql connection string?
web page
$(document).ready(function()
{
$('#btnregister').click(function ()
{
RegisterBindingModel.Email = $('#Email').val();
RegisterBindingModel.Password = $('#Password').val();
RegisterBindingModel.ConfirmPassword = $('#ConfirmPassword').val();
debugger
$.ajax({
url: 'http://www.azapi.com:81/api/account/register',
type:'Post',
contentType: "application/json; charset=UTF-8",
data: JSON.stringify(RegisterBindingModel),
success: function(data) {
debugger
alert(data)
},
error: function (err) {
alert(err.status)
}
})
})
}
)
</script>
webapi
using standard registeration api from .net with cros enabled.
EnableCorsAttribute cors = new EnableCorsAttribute("*","*","*");
config.EnableCors(cors);