Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I use a command line tool to install .net 4 to IIS

I'm trying to deploy my WCF RIA services application to our in-house server for testing. I've been following the instructions and comments from this blog site: http://timheuer.com/blog/archive/2009/12/10/tips-to-deploy-ria-services-troubleshoot.aspx

At the end someone points to this question:

How to solve a "HTTP Error 404.3 - Not Found" error?

I've been trying to run that same tool with .net 4.0 but it keeps giving me an error:

[Warning]The HTTP namespace reservation already exists.

I am running the version of the exe that I found inside of C:\Windows\Microsoft.NET\Framework\v4.0.21006

There is also C:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation that has (what I assume is) the same exe in it, and I can use it just fine. I've tried to un-install the 3.0 version before installing the 4.0 version, but I am still getting the same warning and failure. Has anyone successfully done this with .net 4.0?

like image 370
thepaulpage Avatar asked Jan 04 '10 20:01

thepaulpage


1 Answers

I finally managed to get this to work. I followed the instructions found Here and I removed an HTTP namespaces that was referencing Temporary_Listen_Addresses. after I did that I was able to successfully run the ServiceModelReg tool and install the stuff with .NET 4.0

In a nutshell:

netsh http show urlacl
netsh http delete urlacl url=INSERT THE RESERVED URL NAME HERE
like image 52
thepaulpage Avatar answered Oct 07 '22 01:10

thepaulpage