Archive for category Windows

Could not load type ‘System.ServiceModel.Activation.HttpModule’ from assembly …

This error usually happens if .NET 4.0 is recently installed or followed by enabling .NET 3.0/3.5 WCF.

Follow these instructions to fix the problem:

  • Open Command Prompt and browse to the following path depending on the version of Operating System you have.

    • 32-bit: %windir%\Microsoft.NET\Framework\v4.0.30319
    • 64-bit: %windir%\Microsoft.NET\Framework64\v4.0.30319
    If you are using Windows 7 or Server 2008 then you must open the command prompt as Administrator.

  • Run aspnet_regiis.exe /iru

  • Test and make sure .NET 4.0 is enabled in the IIS configurations.

No Comments

How to disable Open File Security popup through Group Policy?

To disable the warning through Group Policy follow these instructions:

  1. Start Group Policy Editor (Start > Run, type – gpedit.msc- and press OK)

  2. Go to User Configuration > Administrative Templates > Windows Components > Attachment Manager

  3. Set “Inclusion list for low file types” to Enabled and enter the file types you don’t want to be warned about in the box (for example: .exe).

No Comments

Are you trying out a website on Windows Phones?

If you need to try out how a website looks on a windows phone or need to develop a Windows application then you can download the Windows Phone Development tools and try it out for free..

http://www.microsoft.com/download/en/details.aspx?id=13890

No Comments

Installshield Error 0×80004005 – Unspecified Error

Error:

  • Error 0×80004005

  • Unspecified Error

Solution
The problem occurs when the resolution is set to 256 colors. Nowadays having a 256 colors resolution is very unlikely however it comes into play where you’re doing a Remote Desktop or VNC to a server/workstation across the world and you don’t want to use up too much bandwidth. To resolve the error simply change the resolution to 16-bit or higher. This is most commonly seen with installers created with Installshield 2011 and apparently resolved with Installshield 2012.

http://kb.flexerasoftware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&externalId=Q212301&sliceId=1&docTypeID=DT_ERRDOC_1_1&dialogID=111488957&stateId=0%200%20111486483

No Comments

LDAP Problems?

Here’s a great tool to test out the LDAP configurations and connection issues: LDAP Browser

LDAP Browser is free but the Administrator that comes with more features is paid.

http://www.ldapbrowser.com/download.htm

No Comments

Setting Outlook settings through Group Policy

Here’s a great article that includes links and instructions on how to set outlook settings through group policy.

http://www.howto-outlook.com/howto/policies.htm

No Comments

Windows 7 SP1 Update Error

Error Message: Error_Invalid_Data (0×8007000D)

Solutions:

It took me few hours to figure out why out of all the development machines I had upgraded to SP1 we were getting errors on this one. This one wasn’t much different form the others. It has SQL Server, Progress, internal applications and third party tools such as Adobe Reader on it.

I did a lot of research and tried out many different ways that people have resolved issues such as this. Interestingly enough I was looking a forum on Vista SP1 error that was similar to that and found the solution to this one. Below I’ve listed all the items I tried and has resolved issues for others.

  1. SFC /SCANNOW checks Windows files and reports any issues. If any issues are reported then research separately and resolve.

  2. Disconnect all external devices such as devices connected using USB, reboot and try again

  3. Shutdown the machine, disconnect from the power cable, connect the power cable back after a minute, restart and try again

  4. Run Troubleshooter for Windows Update – Found under Control Panel – Search for Troubleshooting – System and Security – Fix Problems with Windows Update

  5. Run System Readiness tool for Windows 7 SP1 and review the report for any errors.

  6. Empty Temporary Internet Files, reboot and try again

  7. For more advance users:

    • Look into the System event log viewer and check for errors resulted as part of the error

    • Look into C:\Windows\Logs\CBS. There should be two files: CheckSUR.log and CBS.log. CheckSUR.log shows the report from System Readiness tool that you probably have run already. CBS.log is the log of the update. The second log file is where I found my issue. I found the line SPI: (CSelfExpander::InternalExpandFile:382)Checksum of downloaded file (0x713bf627) does not match expected (0xc39712ab) er=0xd at the bottom of the log file followed by SPI: (CSelfExpander::ExpandFiles:227)Failed to internal expand file windows6.1-KB976932-X64.cab hr=0x8007000d. This told me that somehow the checksum of the file is not correct and I tried downloading the package from the server one more time and ran it. That solved the error. All the work was because somehow a bit or byte gone missing and as result the cab file was corrupted.


No Comments

SecurityException: Request for the permission of type ‘System.Web.AspNetHostingPermission

http://blogs.msdn.com/b/narahari/archive/2010/06/03/system-security-securityexception-request-for-the-permission-of-type-system-web-aspnethostingpermission-system-version-2-0-0-0-culture-neutral-publickeytoken-b77a5c561934e089-failed.aspx

SecurityException: Request for the permission of type ‘System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’ failed.]

Platform: Windows Server 2008 R2

This is the most common error you would get when you host your content on a UNC share. http://support.microsoft.com/?id=320268 describes the problem, resolution. However in this specific case content is not hosted on UNC share.

Cause:

This issue would happen when you download a file from Internet or Network Location, etc. Windows now preserves the zone information for file(s). This identifies where the file came from and displays appropriate warning messages, indicating you to be careful.

Note: Also when you copy the zip file from network location /Internet and extract the same, all the files contained in the zip file also will get this attribute set.

Resolution:

You can resolve this issue by following any of the following methods.

Method#1 Go to the properties of precompiled dll’s, check to see if it has following security message (at the bottom of the window): “This file came from another computer and might be blocked to help protect this computer.” If present, click “Unblock”, “Apply” and “OK”.

If you have multiple dlls in your application, you would need to perform this step to all dlls one by one.

Method#2 Run the below caspol command to resolve the issue Drive:WINDOWSMicrosoft.NETFrameworkv2.0.50727caspol.exe -m -ag 1 -url “file:////c:mysitecontent*” FullTrust -exclusive on

Note: Please substitute “c:mysitecontent*” with actual path where ASP.net pre compiled dlls are located.

Alternatively, you can use below methods to get around the issue.

To avoid the “This file came from another computer and might be blocked to help protect this computer.” You can use one of the following methods depending on your scenario.

1) Move all the files to non NTFS partition i.e. FAT and move them back to NTFS partition. When you move the files to non NTFS partition, it will not maintain zone information.

2) Use the “Strems v 1.56” tool to remove streams

a. Download “Streams v1.56” from http://technet.microsoft.com/en-us/sysinternals/bb897440.aspx

b. Execute the following command from command line:

“streams -s -d directory”

3) If you have copied a zip file to your machine that has the above attribute, before you extract, just unblock the zip file( as mentioned in resolution section) and then proceed with extraction.

4) There is a Group Policy, that you can Enable to make sure zone information is not preserved.

a. Run gpedit.msc ( From Run Prompt or CMD prompt)

b. Navigate to Local Security Policy > User Configuration > Administrative Templates >Windows Components >Attachment Manager

c. Enable “Do not preserve zone information in file attachments” setting.

This will only make sure that zone information is not present for the files that you copy after the policy is enabled. For Existing files, you would still need to use one of the above methods. Also, please consult with your Administrator, Team before you enable this setting, as this might be needed for other applications and might break those, if you enable it without taking consent from Administrator(s)/your team.

No Comments

How to create a Windows bootable USB drive?

http://www.intowindows.com/how-to-install-windows-7vista-from-usb-drive-detailed-100-working-guide/

No Comments

How to use Powercfg.exe in Windows Server 2003

http://support.microsoft.com/kb/324347

No Comments