aspnet_regiis.exe -ir does not work on windows 8 - asp.net-mvc-4

I am trying to deploy an ASP.NET MVC3 app to my Windows 8 box with IIS8. When I try to route to the site I get the following error:
Pretty much everything I can find on this issue says to run:
aspnet_regiis.exe -ir
When I run this on my Windows 8 box, I get the following message:
Microsoft Windows [Version 6.2.9200]
(c) 2012 Microsoft Corporation. All rights reserved.
C:\Users\Justin>C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe
-ir
Microsoft (R) ASP.NET RegIIS version 4.0.30319.17929
Administration utility to install and uninstall ASP.NET on the local machine.
Copyright (C) Microsoft Corporation. All rights reserved.
Start installing ASP.NET (4.0.30319.17929) without changing existing web
applications to use this version of ASP.Net. This option is not supported on
this version of the operating system. Administrators should instead install /
uninstall ASP.NET 4.5 with IIS8 using the "Turn Windows Features On/Off" dialog,
the Server Manager management tool, or the dism.exe command line tool. For more
details please see http://go.microsoft.com/fwlink/?LinkID=216771.
Finished installing ASP.NET (4.0.30319.17929) without changing existing web
applications to use this version of ASP.Net.
ASP.NET 4.5 is already installed on my system.
My application runs correctly in Visual Studio, but I can not deploy it to save my life. I am completely at a loss on where to go from here. I have tried both integrated and classic pipeline modes for this site as well.

Run the following command, which will install and register ASP.NET 4.5 in IIS:
dism /online /enable-feature /featurename:IIS-ASPNET45 /all

I'm having the same problem. So far I only found this forum thread of which one of the answers states that installing via Web Platform Installer solved the problem, though this doesn't work for me. The IIS ASP.NET 4.5 feature is disabled as it is already installed.
UPDATE:
I got it to work finally.
Follow the instructions from this SO question to enable the wcf service in IIS:
WCF on IIS8; *.svc handler mapping doesn't work
Here is also some information about how to get the handler mapping installed

what worked for me is:
- unchecking the 4.5 and 3.5 in remove/add windows features
- restarted the computer
- checked the 4.5 and 3.5 in remove/add windows features.
And from that point it all worked again.

Related

How to install the Microsoft.NET.Sdk on Windows Server 2019 Core?

I want to build my project in a docker desktop windows container.
The OS is Windows Server 2019 Core (no interface, just a console).
If I want to build my solution with MSBuild like that:
msbuild MySolution.sln
I get this error message:
MyProject.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
Which means for me that I need to install Microsoft.NET.Sdk, for which I need to install the 'App Installer' (to get the 'winget' commands).
And for that I need the Microsoft Store which is not supported in Windows Server 2019 Core.
Does anyone know how to solve this problem?
Edit:
projects in the solution are mixed of .NET Framework and .NET Core/.NET
msbuild is installed via 'Build Tools for Visual Studio' installation
How can I install the framework with command line?
In the Microsoft documentation "Install .NET on Windows" there are sections for installations methods that don't use winget:
"Install with Windows Installer"
"Install with PowerShell automation"

Cannot run an ASP.NET Core app on IIS Express

I am working on an application using the ASP.NET Core - I am using latest update for VS2015 and Windows 10. Now I want to deploy some demo version to some other computer.
How can I host my ASP.NET Core application in IIS Express when there is NO VisualStudio installed on the other side? I downloaded the most recent IIS and Microsoft .NET Core SDK from the Microsoft's website. However, I am still getting this error in the event log:
Dynamickou knihovnu C:\Program Files\IIS Express\aspnetcore.dll modulu se nepodařilo načíst. Data obsahují chybu.
That is in czech "...the aspnetcore.dll is missing...".
The error message is definitely right, there is no such file in this folder nor in the x86 version.
Every hint how to fix it contains upgrading VisualStudio toolkit that is not suitable for me since there is no VisualStudio on target machine. If it is important, target machine is running Windows 7 or Server 2012.

wix burn installer requirements

I was looking for some documentation which will explain what requirements of my installer will be if I made it with wix and burn...
I`m still not sure about that because that information is hard to get...
When I was looking for an answer i found dependency of VC++redist... so it is telling me if I wrote custom action in c++ I need to have these on my target machine?
Also If I want to have my own UI, using burn... automatically I need .net framework 3.5?
I want to write installer, with custom actions and custom UI, I don`t mind which language use to write custom action (c++ or c#) but I want to be able to use my installation on winxp...
So if anybody have some info about requirements of installers... I did just couple of simple installers... all of them are running on win7 all right... but what about winxp? Thanks
Note that WiX is not an installation environment of its own. To put it simply, it is a comfortable, XML-style way to describe your installation requirements that gets translated into Windows Installer .msi databases by its compiler and linker. In this respect, WiX is a relatively thin wrapper around Windows Installer technology, and while it does provide extra features to help the setup developers, its abilities are dictated by the underlying technology and its limitations are not of its own but the limitations of Windows Installer itself.
System Requirements from Windows Installer 3.1 shows this:
Supported Operating System
Windows 2000 Service Pack 3, Windows 2000 Service Pack 4, Windows Server 2003, Windows XP, Windows XP Service Pack 1, Windows XP Service Pack 2
Windows Installer 3.1 Redistributable supports Windows 2000 with Service Pack 3 or later, Windows XP, Windows XP Service Pack 1, Windows XP Service Pack 2 and Windows Server 2003. Windows Server 2003 Service Pack 1 contains Windows Installer 3.1 and therefore can't be installed or upgraded by this redistributable.
So it should work like a charm on xp machines.
Sources:
WIX Tutorial
MSDN

How to install 32bit Microsoft Online Services Module for Windows PowerShell on 64bit workstation?

I have Microsoft Online Services Module of 64-bit version for Windows PowerShell installed and working correctly.
I ran into problems when using Visual Web Developer Express 2010 to create WCF web service(32bit), which uses those cmdlets. Exception just tells me that
The term 'Import-Module MSOnline' is not recognized as the name of a cmdlet.
Default installer does not permit installation of 32bit version.

Targeting .NET 4.0 in VS 2012 on Windows 8

I just installed VS 2012 Ultimate RTM on Windows 8 Pro RTM and tried to open a solution containing several projects (class libraries and WinForms) targeting .NET 4.0.
When the solution is loaded, VS prompts that .NET 4.0 isn't supported. It gives me the chance to update my projects to 4.5 (and promises that I could change the target later) or install a "Multi targeting pack" for 4.0 from this page.
I decided to update my projects to 4.5 because I had no luck installing the offered Multi targeting pack (errors see below).
Unfortunately, VS does not show 4.0 as a target by default (when changing the target for an updated project), but redirects me to the page where I can download the Multi targeting pack.
So far so good, but I wasn't able to install any of the offered downloads (neither runtime nor targeting pack) again.
The error message says in case of .NET Framework 4.0.3 Targeting Pack:
Setup has detected that this computer does not meet the requirements to install this software. The following blocking issues must be resolved before you can install KB2600213 software package.
Installation Requirements:
Microsoft .NET Framework 4 Multi-Targeting Pack was not found. Please repair your installation for Microsoft Visual Studio 2010 in order to get this update.
Strange enough since I have no VS2010 installed.
.NET Framework 4.0.3 Runtime Installation stops with the following error:
KB2600211 does not apply, or is blocked by another condition on your computer.
I've checked that .NET 4.0 is installed (using the .NET Installation verification tool), I've tried to repair VS2012 but nothing let me target .NET 4 and the Event log does not contain any related reports. Any suggestions or hints (besides going back to Win7/VS2010)?
I'm honestly not sure what's going on. I have VS 2012 Ultimate RTM and all versions of .NET are supported.
I'm almost positive I never installed any .NET frameworks manually, though I did install Visual Studio 2010 Express for Windows Phone from http://create.msdn.com.