If you have Boot to VHD VM (which leverage all your hardware) and want to convert it to a VMWare virtual machine, please follow the steps:

  1. Download WinImage and install it.
  2. Convert the vhd disk to vmdk following the WinImage instruction.
  3. Create a new VMWare VM and using the converted disk.
  4. You cannot boot the VM directly. Using a Windows installation disk and repair the windows.

That’s it. Hope it helps.Smile

{ 0 comments }

While installing several machine with Sql Server 2008 R2, I encounter the same problem: “Access is denied”.

image

Apparently this error is related to the account privilege.

Here’s the steps to fix this issue:

  1. Log on to the computer as a user who has administrative credentials.
  2. Click Start, click Run, type Control admintools, and then click OK.
  3. Double-click Local Security Policy.
  4. In the Local Security Settings dialog box, click Local Policies, double-click User Rights Assignment, and then double-click Backup Files and Directories.
  5. In the Backup Files and Directories Properties dialog box, click Add User or Group.
  6. In the Debug Programs Properties dialog box, click Add User or Group.
  7. In the Manage auditing and security log Properties dialog box, click Add User or Group.
  8. In the Select User or Groups dialog box, type the user account that is being used for setup, and then click OK two times for steps #5, #6 and #7.
  9. On the File menu, click Exit to close the Local Security Settings dialog box.

Hope it helpsSmile

{ 0 comments }

ASP.Net Application Development and Deployment Configuration Best Practices

by Weijie JIN

Do you have the time when you are deploying your application, first you compile, copy the files to the server, change the web.config on the server. Next time, you want to deploy again, compare the server’s configuration to the development one to figure out which ones should be changed? If you experienced the situation above, […]

Read the full article →

Fix Hyper-V Time Synchronization Issue

by Weijie JIN

We’re running Windows Server 2008 R2 for host and Windows Server 2008 R2 as a virtual machine using Hyper-V. For some reason, the time synchronization doesn’t work well. No matter we disable the hyper-v time synchronization option on the host side or enable it. After the gap is more than 5 seconds, some issues will […]

Read the full article →

Optimize WordPress Speed Hosted on IIS

by Weijie JIN

If you’re interested in getting high score in ySlow or PageSpeed for your blog and your blog happens being hosted on IIS of Windows Server, here are some tips: 1. Enable gzip a. To enable gzip on IIS, first add Dynamic Content Compression Role Services for IIS. b. If your site is running with Application […]

Read the full article →

Fix “The invoked member is not supported in a dynamic assembly.” Error in Tracing and Caching Provider Wrappers for Entity Framework

by Weijie JIN

When using Tracing and Caching Provider Wrappers for Entity Framework in ASP.Net MVC project, you may encounter the following error: The invoked member is not supported in a dynamic assembly.   This error is caused by GetManifestResourceStream method in Assembly does not support dynamic assembly. To fix this error, go to line 184 @ EFProviderWrapperToolkit\EntityConnectionWrapperUtils.cs,  […]

Read the full article →

Use Git to perform daily backup

by Weijie JIN

You can use git to perform scheduled backup for your file, for example, backup a site deploy. For example, I want to backup a site named MVC4 I use git + script + scheduled task to do the backup, the advantage of this approach is that: Each backup can be compared for changes. Save disk […]

Read the full article →

Multi-Language for ASP.Net Website Project using Satellite Assembly

by Weijie JIN

Satellite assembly introduction A satellite assembly is a compiled library (DLL) that contains (“localizable”) resources such as strings, bitmaps, etc. You are likely to use them when creating a multilingual (UI) application. Satellite assemblies provide you with the capability of designing and deploying your solution to multiple cultures, rather than hard coding strings, bitmaps, etc., […]

Read the full article →

.Net Build System for Sublime Text 2

by Weijie JIN

Sublime text 2 is a great text editor that every develop should get a copy at least give a try. I create a build script for .net in sublime text 2. It can do the following things: Build source code into .exe file under your sublime project folder recursively. Add reference DLLs while building source […]

Read the full article →

Step by Step Setup Git Server on Windows with CopSSH + msysGit and Integrate Git with Visual Studio

by Weijie JIN

First of all, let me clarify that Git doesn’t need to specify the side for client and server. Your workstation can be both the client and server. That means you can get code from other computer, you’re the client; while others can also get code from your computer, you’re the server. That’s why Git is […]

Read the full article →