Thursday, January 6, 2011

HOW TO MAKE A LOCAL WEBSITE USING IIS XP

Hello everyone ,
        Today I am going to show you how you can publish a local website by using iis. To start we need to install IIS first.

1. Click on Start, than Run, and type appwiz.cpl, and than Click on OK


This will bring Add and Remove Programs Wizard

2. Now Click on Add/Remove Windows Components



This will bring Windows Components Wizard

3. Now find Internet Information Services (IIS), and put check mark before it



4. Click on Next


During Installing Windows might ask you to provide some files, see the picture below.


So just browse to I386 folder, there you will be able to find the necessary file.

Upon completion, you will see this message


We have now successfully installed IIS. Its time to configure it

5. Click on Start, than Run, and type inetmgr


This will open Internet Information Services (IIS)

6. Now expand PC name(Local computer), than expand Web sites

Now on the right hand side make sure that Dafault wide site status is Running

Also note the IP Address, if it is All assigned than you can open your website either by typing your IP or by 127.0.0.1


Now close IIS

7. Open Internet Explorer, and in the address bar type either your IP address, or 127.0.0.1



If you see a page like this, than its mean your Web site is configured and working fine.

Saturday, January 1, 2011

ASP.NET: ERROR - FAILED TO INITIALIZE THE APPDOMAIN:/LM/W3SVC/1/ROOT/



This error usually occurs because Network Service account doesn’t have permission on the virtual directory. There might be other reasons as well, however; the reason because of which I was getting this error is Network Service account.

Solution:
       1.       Right click virtual directory folder and select Properties --> Security.
       2.       Click Add… button.
       3.       Type in Network Service and click Check Names button.
       4.       Give it Full control.
       5.       Click Apply then OK.
       6.       Reset IIS.

This solution worked for me, I hope it’ll work for you guys as well.

ASP.NET: HTTP ERROR 404 - FILE OR DIRECTORY NOT FOUND



Because I got my VM corrupted I had to create new VM and installed all the software i.e. IIS, VS 2008 etc. After that I start deploying the web project I created in previous VM because I have taken backup before deleting previous VM.

When I have done with deploying web services and web apps I tried to access a web service to confirm that has everything configured properly. But when I browse my web service I got the above error.

I went into the IIS--> Virtual Directory properties checked all the tabs but everything was OK. I delete the virtual directory and recreated it in IIS but still the was there, then I open that web service in VS and run it. Web Service compiles successfully and run properly.

Then I an HTML page in that virtual directory and try to open it from the IIS and it opened. That time I realized there is something wrong with ASP.NET. I went to Google because that time I was scratching my head that what could the reason. After searching over the internet I found that this issue comes when ASP.NET version you are using in the application is not registered in the IIS Web Server Extensions. So I register ASP.NET version and error resolved.

Hope this post help you guys out there...

Sunday, December 26, 2010

HOW TO RESTRICT ACCESS TO CONTROL PANEL AND ITS COMPONENTS IN XP

If you want your user not to be able to access control panel neither be able to use any component which is located in control panel for any reason than you can easily do this by following these simple steps

1. Click on start, than run, and type gpedit.msc






2. Now expand User Configuration, than Administrative Templates, than click on Control Panel

3. Now on the right side double click on Prohibited access to the Control Panel


4. Now select Enable, and click on OK





Now Control Panel will be remove from your startmenu, no one will be able to access control panel neither any of its components.


To verify this you can perform the following

1. Double click on Date/time in taskbar
2. Type control in Run command

You will receive a error message like this

Tuesday, December 21, 2010

HOW TO DISABLE TASK MANAGER IN XP

If you ever wanted to disable task manager for any user in your local PC, than you can easily do that by following these steps.

1. Click on start, than run and type gpedit.msc






2. Now expand User configurations, than Administrative Templates, than System, than CTRL + ALT +DEL Options

3. Now on the right side double click on Remove Task Manager





4. Now Select Enable, and click on OK


You can check now by pressing CTRL + ALT + DEL, Task Manager wont start instead it will give a error like this