Virtual PC Guest OS Performance
February 20th, 2006 // 5:50 pm @ Amar
Matt Hester has a nice set of tips for optimising your Virtual PC’s to get the best performance out of the base system. Check them out. They are definitely worth a look.
Matt Hester’s WebLog : Virtual PC Guest OS Performance Tips Part 1 of 3
Category : Miscellaneous
[Virtual Server] could not be started because there is not enough physical memory or system resources available
February 20th, 2006 // 5:40 pm @ Amar
I recently came across a very strange problem. Tried it with both Virtual PC and Virtual Server. It just refused to start a second VM saying that could not be started because there is not enough physical memory or system resources available. I had over 10GB disk space free, and over 1.4 GB ram free. So I was sure resources was not a problem.
After fiddling with it a bit, a quick net search did the trick. If you have InCD software installed ( comes with Nero ) then it somehow causes this problem. If you dont want to uninstall your Nero installation, just go to Control Panel -> Administrative Tools -> Services and stop the InCD Helper service and set it to manual start instead of automatic. This instantly solved my problem and all 3 Windows 2003 VM’s booted up perfectly.
Thanks to Angus Logan’s Blog and Benjamin Day’s Blog for the help.
Category : Miscellaneous
O/R Mapping
February 20th, 2006 // 3:34 pm @ Amar
While doing a research on O/R Mapping and what exactly it is, I came across an excellent post by Frans Bouma at http://weblogs.asp.net/fbouma/archive/2004/10/09/240225.aspx . A excellent piece and explained in a very practical way.
A must read for anyone who uses ADO and database access in the Microsoft world which unfortunately simply ignores these fantastic concepts to work with data applications. Will definitely broaden up your view and give you a new perspective to your application design.
Posted at DotNetJunkies on Tuesday, October 19, 2004 2:26 PM
Category : Miscellaneous
Configuring Word Automation
February 20th, 2006 // 3:32 pm @ Amar
I found some of these links valuable in trying to configure the server to support word automation.
INFO: Considerations for Server-Side Automation of Office
http://support.microsoft.com/kb/257757/EN-US/
How To Configure Office Applications to Run Under the Interactive User Account
http://support.microsoft.com/default.aspx?scid=kb;EN-US;288366
How to configure Office applications to run under a specific user account
http://support.microsoft.com/default.aspx?scid=kb;EN-US;288367
How to configure Office applications for automation from a COM+/MTS package
http://support.microsoft.com/default.aspx?scid=kb;EN-US;288368
Posted at DotNetJunkies on Wednesday, October 13, 2004 4:41 PM
Category : Miscellaneous
Word Automation Code
February 20th, 2006 // 3:30 pm @ Amar
Here
Word.Application wrdApp;
Word._Document wrdDoc;
object oFalse = false;
object oTrue = true;
Word.MailMerge wrdMailMerge;
// Create an instance of Word
wrdApp.Visible = false; // Open the template document.
string TemplateFile = TemplateFilePath + selectedTemplate;
object oFile = Server.MapPath(TemplateFile); wrdDoc = wrdApp.Documents.Open(ref oFile, ref oMissing,ref oTrue, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing);
wrdDoc.Select();
wrdMailMerge = wrdDoc.MailMerge;
object oSql = “Select * from “ + viewName + ” where Account <> ‘NULL’”;
string ODCFile = Server.MapPath(System.Configuration.ConfigurationSettings.AppSettings["ODCFile"]); wrdDoc.MailMerge.OpenDataSource(ODCFile,ref oMissing,ref oMissing,ref oFalse,ref oMissing,ref oMissing,ref oMissing,ref oMissing,ref oMissing,ref oMissing,ref oMissing,ref oMissing,ref oSql,ref oMissing,ref oFalse,ref oMissing);
wrdMailMerge.SuppressBlankLines =
true;// Perform mail merge.
wrdMailMerge.Execute(ref oFalse); if(wrdDoc != null)
{
wrdDoc.Saved =true;
wrdDoc.Close(ref oFalse,ref oMissing,ref oMissing);
}
if(wrdApp != null){
wrdApp.Quit(ref oFalse,ref oMissing,ref oMissing);
}
// Release References.wrdMailMerge = null;
wrdDoc = null;
wrdApp = null;
Posted at DotNetJunkies on Wednesday, October 13, 2004 4:35 PM
Category : Miscellaneous