jump to navigation

Permissions for Opening Office Documents with ASP.NET October 26 2005

I was having an issue when trying to open an M$Word document with ASP.NET through the Office and Word COM library references. The message would consistently be “Access is denied” eventhough the file and the directory had permissions for the ASPNET account.

What needed to be done was grant launch permissions to the webserver and ASP.Net accounts. This was done with the following:

1. Run DCOMCNFG
2. Component Services > Computers > My Computer > DCOM Config
3. Find Microsoft Word Document
4. Make sure the default permissions are applied
5. Right click on My Computer and select Properties > DCOM Security
6. Grant Launch …

Miro’s Dirty Volume October 21 2005

Turns out Miro’s computer kept telling him at bootup that his drive volume was dirty. The checkdisk utility would fire every bootup which caused many delays.

His problem turned out to be related to a pagefile on one of his disk partitions. The fix was to turn off virtual memory for that drive.

Adding Web Controls at Runtime October 20 2005

A quick and easy way to add WebControls at runtime is to use the Me.Controls.Add(myWebControl)

This is a simple way to throw in Datagrids on the fly.

Windows Update Problems

It seems that I keep having windows update problems involving userdata persistence.

Here is the fix for my machine:

E:\>sc sdset wuauserv D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWD
WO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)