diff --git a/.vs/MP-Site/v14/.suo b/.vs/MP-Site/v14/.suo index a42b47a3..19e77c2d 100644 Binary files a/.vs/MP-Site/v14/.suo and b/.vs/MP-Site/v14/.suo differ diff --git a/.vs/MP/v14/.suo b/.vs/MP/v14/.suo index d17b24c4..47632d15 100644 Binary files a/.vs/MP/v14/.suo and b/.vs/MP/v14/.suo differ diff --git a/MP/Controllers/HomeController.cs b/MP/Controllers/HomeController.cs index 66abf165..5324c6a2 100644 --- a/MP/Controllers/HomeController.cs +++ b/MP/Controllers/HomeController.cs @@ -17,15 +17,20 @@ namespace MP.Controllers ViewBag.Environment = WebConfigurationManager.AppSettings["Environment"]; using (var ctx = new MoonProEntities()) { - // esegue stored procedure come function, recuperando chiave desiderata... - var keyVal = ctx.stp_AKV_getByKey("Environment").ToList(); - ViewBag.Environment = keyVal[0].valString; - // imposto URL dei vari siti - ViewBag.UrlMpSite = ctx.stp_AKV_getByKey("UrlMpSite").ToList()[0].valString; - ViewBag.UrlMpAdmin = ctx.stp_AKV_getByKey("UrlMpAdmin").ToList()[0].valString; - ViewBag.UrlMpIO = ctx.stp_AKV_getByKey("UrlMpIO").ToList()[0].valString; - ViewBag.UrlMpMON = ctx.stp_AKV_getByKey("UrlMpMON").ToList()[0].valString; - ViewBag.UrlMpTAB = ctx.stp_AKV_getByKey("UrlMpTAB").ToList()[0].valString; + try + { + // esegue stored procedure come function, recuperando chiave desiderata... + var keyVal = ctx.stp_AKV_getByKey("Environment").ToList(); + ViewBag.Environment = keyVal[0].valString; + // imposto URL dei vari siti + ViewBag.UrlMpSite = ctx.stp_AKV_getByKey("UrlMpSite").ToList()[0].valString; + ViewBag.UrlMpAdmin = ctx.stp_AKV_getByKey("UrlMpAdmin").ToList()[0].valString; + ViewBag.UrlMpIO = ctx.stp_AKV_getByKey("UrlMpIO").ToList()[0].valString; + ViewBag.UrlMpMON = ctx.stp_AKV_getByKey("UrlMpMON").ToList()[0].valString; + ViewBag.UrlMpTAB = ctx.stp_AKV_getByKey("UrlMpTAB").ToList()[0].valString; + } + catch + { } } return View(); } diff --git a/MP/Web.config b/MP/Web.config index f1ceb52f..53e29661 100644 --- a/MP/Web.config +++ b/MP/Web.config @@ -71,16 +71,10 @@ - -