Questions tagged by ".net-4.5"


0
 bounty
2
answers
Could not load file or assembly 'System.Web.Mvc, Version=5.2.2.0, Culture=neutral
9 years ago • lampego1@qrid
I am not sure what exactly has changed but suddenly I am getting this error when trying to launch a Web Api project. (everything is comiled without errors). Here is the error that I am getting at run time: Could not load file or assembly 'System.Web.Mvc, Version=5.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exceptio
0
 bounty
0
answers
Owin. How can I get current App context?
9 years ago • lampego1@qrid
Hello :) For example. Startup project: I configure and create Owin App. Core project: This project is core. In this project, all the magic happens. But! I want to configure DB connection for Core project in Startup project and have these settings in classes of a Core project project. I believe that it should be done like this: class Strartup { public void Configuration(IAppBuilder app) { app.Properties.Add("ConnectionStri
0
 bounty
2
answers
HttpContext.Current is null in the WebAPI project
9 years ago • lampego1@qrid
Environment: VS2013 .NET 4.5 WebAPI project I try to get a "MapPath" path for some dir, but in the WebAPI project "HttpContext.Current" is NULL How example: string path = HttpContext.Current.Server.MapPath("~/Some/Path"); Please. Help me!
0
 bounty
1
answers
How I can make loop through all the resources in a resource file?
10 years ago • lampego1@qrid
Hello. I need make loop through all the resources in a resource file. But I don't know how do it Please, help
0
 bounty
1
answers
Reference to ConfigurationManager class generates compile errors in .net 4.5
10 years ago • lampego1@qrid
I'm using this namespace: using System.Configuration; and here is my code: private static string _smtpServer = ConfigurationManager.AppSettings["SMTPServer"]; However I am getting a compilation error saying that "ConfigurationManager" does not exist. Thanks
1 from 5