Uninstalling Windows Server AppFabric Beta1 after VS 10 Beta2/.Net Framework 4 Beta2 has been uninstalled or post VS 10 RC install
When VS 10 RC/.Net Framework 4 RC is installed, the previous version of VS 10 Beta2/.Net Framework 4 Beta2 is uninstalled. If you have Windows Server AppFabric Beta1 installed (Shows up as “Application Server Extensions for .NET4” on the machine that it has been installed), ideally you would uninstall AppFabric Beta1 before uninstalling VS 10 Beta2/.Net Framework 4 Beta2.
If you already uninstalled VS 10 Beta2/.Net Framework 4 Beta2 or upgraded to .Net Framework 4 RC before uninstalling AppFabric Beta1 then uninstall of AppFabric Beta1 will fail, you would need to follow the following steps to uninstall AppFabric Beta1.
AppFabric uninstall requires the following files and you will have to manually create them if they are missing. Note that you may have old_v4.0.21006 folders in your framework directories. Refrain from renaming this directory to v4.0.21006 but instead create new copies of the v4.0.21006 folders.
On 32 bit machine:
%windir%\Microsoft.Net\Framework\v4.0.21006\config\machine.config
%windir%\Microsoft.Net\Framework\v4.0.21006\config\web.config
On 64 bit machine:
%windir%\Microsoft.Net\Framework\v4.0.21006\config\machine.config
%windir%\Microsoft.Net\Framework\v4.0.21006\config\web.config
%windir%\Microsoft.Net\Framework64\v4.0.21006\config\machine.config
%windir%\Microsoft.Net\Framework64\v4.0.21006\config\web.config
The files machine.config and web.config should contain the following line:
machine.config:
<configuration/>
web.config:
<configuration/>
You can also use a simple script to create the files:
@echo off set OLDDOTNETCONFIGDIR=%windir%\Microsoft.Net\Framework\v4.0.21006\config if NOT exist %OLDDOTNETCONFIGDIR% ( echo creating config directory mkdir %OLDDOTNETCONFIGDIR% ) if NOT exist %OLDDOTNETCONFIGDIR%\machine.config ( echo creating machine.config echo ^<configuration/^> > %OLDDOTNETCONFIGDIR%\machine.config ) if NOT exist %OLDDOTNETCONFIGDIR%\web.config ( echo creating web.config echo ^<configuration/^> > %OLDDOTNETCONFIGDIR%\web.config ) |
After creating the files with the content specified above, run setup.exe of AppFabric Beta1 to uninstall AppFabric Beta1. You can achieve the same result by uninstalling KB970622 (Application Server Extensions for .NET4) via Uninstall Windows Update in Control Panel.
After unistalling AppFabric Beta 1, be sure to remove the %windir%\Microsoft.Net\Framework[64]\v4.0.21006 directory and its files.
Restart the machine.
Post AppFabric Beta1 Uninstall Cleanup Instructions
Follow these steps only if you are not installing AppFabric Beta2 and would like to make your applications run on .Net Framework 4 RC without AppFabric installed. NOTE: These steps do not cover changes between .Net Framework 4 Beta2 and RC, changes for WCF/WF between beta2 and RC are listed at https://blogs.msdn.com/endpoint/archive/2010/02/10/4-0-beta2-rc-wcf-wf-breaking-changes.aspx
First you need to locate and clean up your applicationHost.config file:
· Under %windir%\System32\inetsrv\config
· Open the applicationHost.config file in notepad
· Search for serviceAutoStartMode and remove all instances of this attribute in application elements
· Search for previouslyEnabledProtocols and remove all instances of this attribute in application elements
Then, the following clean-up steps need to be performed for every web.config file in 2 basic scopes of IIS hierarchy, site and application.
· Search for microsoft.applicationServer and if there is a match, remove the entire section from <microsoft.applicationServer> to </microsoft.applicationServer>
· Search for workflowInstanceControl and if there is a match, remove the <workflowInstanceControl/> element and all of its attributes.
Steps listed below provide details on how to locate the various config files at specific scopes:
1. Clean your site web.config
a. Launch IIS Manager: start->run-> inetmgr (launch IIS manager using %windir%\system32\inetsrv\inetmgr)
b. Locate and select your web site in the left navigation pane (expand the server node, and expand the Sites node)
c. Right click the web site and select Explore
d. Locate the web.config file in the explorer window that opens up (you are done if there is no web.config file in that directory)
e. Open the file in notepad and follow the cleanup steps described above.
f. Repeat for each of the web sites under the sites node.
2. Clean up your application or virtual directory web.config
a. Launch IIS Manager: start->run-> inetmgr (launch IIS manager using %windir%\system32\inetsrv\inetmgr)
b. Locate and select your application or virtual directory in the left navigation pane (expand the server node, expand the sites node, and expand your application node)
c. Right click the web site and select Explore
d. Locate the web.config file in the explorer window that opens up (you are done if there is no web.config file in that directory)
e. Open the file in notepad and follow the cleanup steps described above.
f. Repeat for each of your applications under each of the sites.
See Also: https://developers.de/blogs/damir_dobric/archive/2010/02/19/uninstalling-of-appfabric-beta-1.aspx