Monday, 24 October 2011

Unable to debug the webserver due to policy restriction in IIS.

Error: Unable to debug the webserver due to policy restriction in IIS.

Answer: This problem occurs only, if the default port 80 is blocked by some other application like skype..etc. That's why the IIS server unable to start the website.

To resolve this stop the application which is using the default port and start the webserver. Thats it...!

Thursday, 9 June 2011

CS0433: The type 'bleh' exists in two autogenerated DLLs

CS0433: The type 'bleh' exists in two autogenerated DLLs


Compiler Error Message: CS0433: The type 'ASP.usercontrols_contenteditor_ascx' exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c657138e\4c024206\App_Web_9nagbunm.dll' and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c657138e\4c024206\App_Web_4eaenpar.dll'

Solution: Turn off batch compilation,by setting

<compilation batch="false">
in web.config.

CS0433: The type 'bleh' exists in two autogenerated DLLs

CS0433: The type 'bleh' exists in two autogenerated DLLs


Compiler Error Message: CS0433: The type 'ASP.usercontrols_contenteditor_ascx' exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c657138e\4c024206\App_Web_9nagbunm.dll' and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c657138e\4c024206\App_Web_4eaenpar.dll'

Solution: Turn off batch compilation,by setting in web.config.

Saturday, 28 May 2011

None of the selected features can be installed or upgraded. Setup cannot proceed since no effective change is being made to the machine. To continue,

While installing Microsoft SQl 2005 you may face this message...

TITLE: Microsoft SQL Server Setup------------------------------
None of the selected features can be installed or upgraded. Setup cannot proceed since no effective change is being made to the machine. To continue, click Back and then select features to install. To exit SQL Server Setup, click Cancel.
For help, click: http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft+SQL+Server&ProdVer=9.00.1399.06&EvtSrc=setup.rll&EvtID=SQLSetup90&EvtType=28108
------------------------------BUTTONS: OK------------------------------
To solve this problem:
To get around this issue, run the setup.exe from the SQL installation source from your Run command with the parameter SKUUPGRADE=1 or UPGRADE=1.
For more ref
Hope this helps you people!

Monday, 23 May 2011

How to register a windows service

After creating a windows service application, many of the people will try to run the service directly. But this is absolutely not possible until we register the service.

To register the service, first we need to add a Installer to the service. To do this open the service in the GUI mode,right click on the panel and select Add Installer. This will install the project installer file to the project.

Now open the visual studio command prompt and type the following command

installutil myprojectassembly.exe

This will register the windows service.

To check it, open run and type Services.msc. Now you can find your service in the listed services.

Stop a windows service forcibly

If you want to stop a windows service forcibly, first you need to know the PID of that process.

To know the PID open command-prompt and type the following command

sc queryex servicename

Now we can get the PID of the process. After getting it, to kill the process we need to type the following command

taskkill /F /PID pid

That's it. Now you can see the success message on the screen.