I have two separate servers installed in my machine , SQL Server 2008 R2 and (newly added) SQL Server 2017 , i have two db's running on SQL Server 2008 without any problems , my sites on IIS Manager can access both of them , but when i attached a Data base on my second server(2017) and tried to connect to it from iis , i get dbConnection issue , which i do not have if i use visual studio instead of iis Manager
the error i get is (which i do not get if i set connection string to the sql server 2008)
Server Error in '/' Application.
Can not update database. See Application.log file
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
Exception Details: System.Exception: Can not update database. See Application.log file
Source Error:
Line 52: logger.Write($"Can not update database automatically. Please run this query {Environment.NewLine} {string.Join(",",q1,q2,q3,q4,q5,q5)} ");
Line 53: Line 54: throw new Exception("Can not update database. See Application.log file");Line 55: }
Line 56: } |
Source File: C:\Users\mobile\workspace\kimbi-backend\kimbi\GoodCredit8005\App_Start\DBUtitliy.cs Line: 54
Stack Trace:
[Exception: Can not update database. See Application.log file] GoodCredit8005.App_Start.DBUtility.UpdateDetailsTable() in C:\Users\mobile\workspace\kimbi-backend\kimbi\GoodCredit8005\App_Start\DBUtitliy.cs:54 GoodCredit8005.MvcApplication.Application_Start() in C:\Users\mobile\workspace\kimbi-backend\kimbi\GoodCredit8005\Global.asax.cs:23 [HttpException (0x80004005): Can not update database. See Application.log file] System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +540 System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +186 System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +172 System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +402 System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +343 [HttpException (0x80004005): Can not update database. See Application.log file] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +539 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +125 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +731 |