Hello,
I'm trying to get the API to connect to MSSQL and I'm having issues. I can connect through SQL Server Management Studio fine but through ASP.NET on IIS it just will not connect.
Anyone have any idea why I'm getting "WO_5SQL Connect failed"
Fixed. If anyone gets the same issue then leave "public class SQLBase" as this:
I'm trying to get the API to connect to MSSQL and I'm having issues. I can connect through SQL Server Management Studio fine but through ASP.NET on IIS it just will not connect.
Code:
public class SQLBase
{
string server = @".\WARZ,1433";
string user = "TheWarZ";
string pass = "removedpass";
string workdb = "WarZ";
SqlConnection conn_ = null;
public SQLBase()
{
/*
if (ConfigurationManager.AppSettings.Get("WO_Region") == "RU")
{
server = "localhost,11433";
//server = "rudb1.thewarinc.com,11433";
user = "WOAdmin";
pass = "frtV4zAqo";
}
else*/
{
server = @".\WARZ,1433";
user = "TheWarZ";
pass = "removedpass";
}
}
Anyone have any idea why I'm getting "WO_5SQL Connect failed"
Fixed. If anyone gets the same issue then leave "public class SQLBase" as this:
Code:
public class SQLBase { string server = ""; string user = ""; string pass = ""; string workdb = "WarZ";