Showing posts with label Operating System. Show all posts
Showing posts with label Operating System. Show all posts

02 February, 2014

How to register .NET framework in IIS

Please click the link and view the post new domain : http://mahedee.net instead of this. I am not updating blog here. I am writing and updating blog in http://mahedee.net

If you install IIS after installing framework, you have to register framework in IIS. Otherwise you will get following message after hosting asp.net application in IIS.

ASP.NET 4.5 has not been registered on the Web server. You need to manually configure your Web server for ASP.NET 4.5 in order for your site to run correctly.

You may get error of different version instead of 4.5 according to your configuration. So to register framework in IIS, run the following command in command window.
  • Register framework to IIS without changing existing web applications to use this version of ASP.net
C:\windows\Microsoft.NET\Framework\v4.0.30319->aspnet_regiis –ir
  • Or Installing framework to IIS
C:\windows\Microsoft.NET\Framework\v4.0.30319->aspnet_regiis –i

This installed ASP.NET version v4.0.30319 without updating all script maps. After installing Rational

System Architect XT, the following command was run:
C:\windows\Microsoft.NET\Framework\v4.0.30319->aspnet_regiis -s W3SVC/1/ROOT/SAXT

This installed ASP.NET version v4.0.30319 at the specified application root and its subfolders. All existing script maps in the specified path and below were updated.

For the Rational System Architect XT Web Service add-on product, the Registration tool was run with the following command:
C:\windows\Microsoft.NET\Framework\v4.0.30319->aspnet_regiis -sW3SVC/1/ROOT/SAXTWebService

07 July, 2013

Which Service is using which port?

Every day we fell in some difficulties and want to know which service is using by which port? Ports are divided into three ranges: The well-known ports (from 0 to 1023), the registered ports (from 1024 to 49151) and Dynamic (Private) ports (from 49152 to 65535). The Internet Assigned Numbers Authority (IANA) is responsible for the global coordination of the port assignment. Here I will show some tools to figure out the problem. Two well-known utility NETSTAT.EXE and TASKLIST.EXE will be used here.

TASKLIST.EXE is used to know the list of processes with its owing id. When we run >tasklist in command window we see the following output.

Suppose, we want to know which port is used by skype? After running >>tasklist you will see the above output. Here you will see Image Name: Skype.exe with process id or PID: 3224. Now if you want to know which process owes process id or PID 3224? Just run >>tasklist /FI “PID eq 3224”. You will see the following output.



NETSTAT.EXE is used to identify what ports are being used by a particular process. The syntax that we will be using for NETSTAT.EXE is as follows: netstat.exe –a –n –o. Here,
  • -a: listing of all connections and listening ports
  • -n: display address and port numbers in numerical form
  • -o: display the owning PID associated with each connection
Now after running >netstat –a –n –o , you will see the following screen.


If you look at the output, you will see that local address of PID 3224 is 0.0.0.0:55956 which mean process id 3224 used port 55956. You already know that 3224 is the PID of process Skype.exe. So, you came to know that process skype.exe is used port 55956.

07 November, 2012

How to Create Domain Controller in Windows Server 2008 R2


Domain concept is introduced in windows NT. Domain Controller (DC) is a server that is responsible to maintain security within window server domain.  To install Domain Controller (DC) in Windows Server 2008 R2, follow the steps.

Step 1: Click “Start -> Administrative tools -> Server Manager -> Roles -> Add Roles”




Step 2: Click next on the following screen.



Step 3:  Select Server Role - “Active directory domain service” and Click Next.



Step 4: Click “Install”


Step 5: Now install DNS Server and active directory service. Go to “run” and type “dcpromo”




Step 6: In Active Directory Domain Services Installation Wizard. Press “Next” and don’t check on “Use advance mode installation”.



Step 7: Select “Create a new domain in a new forest” and click “Next” on the following screen.


Step 8: Type your domain name and click “Next”.



Step 9: Select Windows Server 2008 R2 and click “Next”


Step 10: If this is the first Domain controller then the following message will be visible. Check “DNS Server” and click “Next”


Step 11:  Press “Yes” to continue.


Step 12: Select the location to keep log of Active Directory Domain Controller.



Step 13: Type administrator password and Confirm password for directory service and click “Next”



Step 14: Click “Next” of Summary window and check reboot the computer of the following screen.




Step 15: Your Domain Controller installed successfully. Now login to the system by domain Id.











06 November, 2012

Configure Windows Server 2008 R2 to install SharePoint 2010


To install SharePoint 2010 on Windows Server 2008 R2 we need to configure server with the following roles and features.

Add Roles: Application Server & Web Server
 
To install SharePoint 2010 we need to configure server with the following roles and features.

Add Roles: Application Server & Web Server
  1. Click “Server Manager”
  2. Click “Roles”
  3. Click “Add Roles”
  4.  Mark “Application Server and Web Server”

 5.       Click “Add Required Features” in the above screen. 
6.        Click Next 
7.       Select Role Services of Application server like below screen.

 8.       Select Role Services of Web Server like below screens.



 9.       Click next & Install

Add Roles: File Services 

1.       Click “Server Manager” 
2.       Click “Roles” 
3.       Click “Add Roles” 
4.       Mark “File Services” 
5.       Click “Next” 
6.       Select “File Server” like below screen.
 

7.       Click Next & Install


Add Features: 

1.       Click “Server Manager” 
2.       Select Features at the left side of the screen 
3.        Click “Add Features” 
4.       Select features like below screens.


  
5.       Click “Next” 
6.       Restart your computer