0

I have created a web application on Visual Studio 2013 Update 1 with MVC5 ASP.NET. The application is using Identity Authentication. I have tried to launch it on the server in a .netV4.0 Application pool but it keeps giving me an error. I had read in this post that it doesnt matter if your app points to 4.5 and you run it in a 4.0 application pool. But as stated in one of the comments in the post by Gene Reddick my async calls fail as well. My main questions now are:

  • if I will need to upgrade the .net version in my server
  • How it might affect other applications and,
  • how to go about installing the new version in the server to be used by a particular application pool, if not in the normal way

Prompt Answers will be highly appreciated.

Community
  • 1
  • 1
Wairimu Murigi
  • 2,157
  • 2
  • 15
  • 19
  • what exactly is the error reported? What does the event viewer and your logging say? – user1666620 Jul 28 '14 at 14:58
  • I am using identity for logins. When i add the application in IIS, I am able to view my home page and the login page but once I try to login, i get the error `A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 50 - Local Database Runtime error occurred. Cannot create an automatic instance. See the Windows Application event log for error details. )` – Wairimu Murigi Aug 06 '14 at 22:57
  • Are you absolutely certain it is due to the .Net Framework version? Is the database reachable? Try to do an ODBC test to confirm connectivity. – user1666620 Aug 07 '14 at 09:14
  • Hi, It is an ODBC error. Still haven't been able to solve it. All my connections are working but i still seem to not get rid of the error. – Wairimu Murigi Aug 08 '14 at 19:49

1 Answers1

1

Like your link to another SO answer says, there is no .Net 4.5 app pool in IIS. Instead, any version of .Net 4.x shows up as the .Net 4.0 app pool because all versions of .Net 4.5.x are really just upgrades to .Net 4.0. There is not distinction between the two, and you can't have both installed separately.

In order to know if you have .Net 4.5 installed, you may use a tool such as Asoft .Net Version Detector or look in the registry. If you are running on Windows Server 2012/Windows 8 or newer, you already have .Net 4.5. If not, you can upgrade to the latest .Net 4.5.2. Note that the installer for .Net 4.5.2 does apply to Server 2012/Windows 8+ since those versions of Windows only come with .Net 4.5.0.

Once you have the newer .Net CLR installed, your app pool should just work with no further configuration.

Community
  • 1
  • 1
Adam Venezia
  • 2,661
  • 2
  • 16
  • 10