Skip to main content

You must use the Role Management Tool to install or configure Microsoft .NET Framework 3.5 SP1.

If you are installing a product which requires .Net Framework  3.5 or .Net Framework 3.5 SP1, on Windows 2008 operating system, you may get the error : "You must use the Role Management Tool to install or configure Microsoft .NET Framework 3.5 SP1."





Actual cause of this error is: Your application requires .Net Framework 3.5. It tries to install the .Net Framework but Windows 2008 has already pre-installed .Net Framework. So the Operating system doesn't allow product to install the .Net Framework. It says Use Role Management Tool to enable the .Net Framework which is already installed as a feature. So once you enable the .Net Framework feature using Role Management Tool you will not require to install .Net Framework 3.5.


Follow these steps to enable .Net Framework feature using Role Management Tool:
1. Launch Start Menu. Go to All Programs -> Administrative Tools -> Server Manager. (Alternatively you can launch the server Manager by typing ServerManager.msc at Run prompt.)
2. In the Server Manager console, on the left hand side click on Features. It will show you Features Summary window. 


3. On the right hand side you will find Add Features blue colored link. Click on that. It will launch the Add Features Wizard.
4. On the Add Feature Wizard select .Net Framework 3.5.1 Features. It will launch a dialog for Add role confirmation. Click on Add Required Role Service.


5. Clicking on Next  will take you to Introduction to Web Server(IIS) page, click on Next here.
6. Now on Role Services Page you can select services you want. Don’t click on anything here keep all defaults. Click Next.
7. It will show Install Confirmation page. Click on install and wait till install finishes. It will install the selected features and when if finishes click on close.

Now you can start installation of your product. These steps are verified on Windows 2008 R2 operating system. 

Comments

Popular posts from this blog

How to boot Samsung Galaxy SL( GT-I9003) in recovery mode

** I Will Not responsible for any damage done with use of below mentioned methods. ** Power off your Samsung Galaxy SL (GT- I9003) to start in recovery mode. Once you have power off the phone, press and Hold Volume UP and Home button. Make sure you have hold volume up, don't press in  the middle of the volume buttons.  Now keep pressing these two buttons(VOL UP + HOME) and presspower button for 2-3 seconds. Release only power button, but keep pressing Volume Up + Home Button, until you see the screen shown below. Once you see recovery screen release the Home button else your phone will restart as first selected option will be restart and pressing home will make that happen.

In the recovery mode, volume up & down act as a up scroll and down scroll buttons, by pressing Home button you will be able to click the selected option.

How to flash CWM Recovery to Samsung Galaxy SL( GT-I9003) using Odin

** I Will Not responsible for any damage done with use of below mentioned methods. ** To flash the CWM recovery to your Samsung Galaxy SL you will require to following things in place: Odin  : you can download it from here.CWM Recovery image : you can download it from here. Thanks to XDA-developers. USB driver to connect your phone with computer. Install Samsung Kias so it will install the USB driver. Once you have downloaded above required items and installed the USB driver, reboot you phone to download mode. You can read how to reboot phone in download mode from here. Now connect the phone with USB cable to computer. 
Extract the Odin from the zip file that you have downloaded at some location on your computer and launch the Odin executable by double clicking it. Wait for Odin to detect your phone.You will be able to see it in yellow once detected on odin screen as shown below.
Click the PDA button to select the CWM recovery image. Once you have selected the recovery image, check the od…

Exception handling with RestTemplate

Spring framework offers RestTemplate for consuming RESTful services. Recently I used RestTemplate for consuming one of the third party RESTful service.

RestTemplate offers 'ResponseErrorHandler'; which you can extend to decide which are errors for you and how to handle those error. You can override hasError and handleError methods of ResponseErrorHandler.
In handleError you can throw customException if you want, as outlined in below code.

import org.springframework.http.HttpStatus; import org.springframework.http.client.ClientHttpResponse; import org.springframework.web.client.ResponseErrorHandler; import java.io.IOException; public class RestTemplateErrorHandler implements ResponseErrorHandler { @Override public void handleError(ClientHttpResponse response) throws IOException { throw new MyCustomException(response.getStatusText(), response.getStatusCode()); } @Override public boolean hasError(ClientHttpResponse response) throws IOException …