<?xml version="1.0" encoding="utf-8"?>
<feed xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xml:lang="en-ie" xmlns="http://www.w3.org/2005/Atom">
  <title>Tim Mackey's Weblog</title>
  <link rel="alternate" type="text/html" href="http://tim.mackey.ie/" />
  <link rel="self" href="http://tim.mackey.ie/SyndicationService.asmx/GetAtom" />
  <icon>favicon.ico</icon>
  <updated>2013-02-06T15:52:08.9256318+00:00</updated>
  <author>
    <name>Tim Mackey</name>
  </author>
  <subtitle>mostly.Net</subtitle>
  <id>http://tim.mackey.ie/</id>
  <generator uri="http://dasblog.info/" version="2.3.9074.18820">DasBlog</generator>
  <entry>
    <title>Windows Phone 7 update 7.10.8773.98 released for O2 Ireland</title>
    <link rel="alternate" type="text/html" href="http://tim.mackey.ie/WindowsPhone7Update710877398ReleasedForO2Ireland.aspx" />
    <id>http://tim.mackey.ie/PermaLink,guid,51d830dd-9422-4802-9800-8a4c1a35ec00.aspx</id>
    <published>2012-06-28T11:37:43.6961479+01:00</published>
    <updated>2012-06-28T11:37:43.6961479+01:00</updated>
    <category term="General" label="General" scheme="http://tim.mackey.ie/CategoryView,category,General.aspx" />
    <author>
      <name>Tim Mackey</name>
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
A long awaited Windows Phone 7 update has finally been released on the O2 network
in Ireland. The main feature i'm looking for is Wifi tethering, to use the phone as
a wifi hotspot. My data package with O2 includes a few Gb every month and it's handy
to be able to use this for remote access on a laptop etc. My old Nokia E52 used to
have a built-in modem that i could just plug in to the laptop and dial up, this feature
is sadly missing from the Windows Phone 7 operating system. Currently i have to pull
out the sim card and swap it in to a USB modem to plut in to the laptop. I used to
use a wifi tethering app on the E52 called Joiku Spot but it had a remarkably ability
to drain a battery in an hour that would typically last 8 days. Since getting the
Lumia 800 i have joined the rest of the world of smartphone users who must charge
up their phone every day, one step forwards two steps backwards. Well, i usually get
2 days so not as bad as the iphone :)
</p>
        <p>
the first update Zune told me about was 7.10.8112.7, then it went through the update
process again and installed 7.10.8773.98. after the update my phone reports firmware
version 1600.2487.8107.12070. Disappointingly there is no sign of the Internet Sharing
feature in Settings. but wait, apparently i can turn the phone face down to silence
an incoming call, whup-de-doo. false alarm, not even that feature is included with
this update. 
</p>
        <p>
According to the nokia <a href="http://www.nokia.com/global/support/software-update/lumia/europe/availability/?page=2">software
update availability page</a>, O2 Ireland are still waiting for approval for the Lumia
800. but according to their <a href="http://conversations.nokia.com/2012/06/27/new-features-and-apps-with-a-software-update-for-the-nokia-lumia-800-and-nokia-lumia-710/">blog
post yesterday</a> if i have the Tango update i should have all the new features.
i guess this isn't Tango then, false alarm, in the words of the great Mr Myagi "patience
daniel son"...
</p>
        <img width="0" height="0" src="http://tim.mackey.ie/aggbug.ashx?id=51d830dd-9422-4802-9800-8a4c1a35ec00" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Using XStandard dll on a Win 64-bit </title>
    <link rel="alternate" type="text/html" href="http://tim.mackey.ie/UsingXStandardDllOnAWin64bit.aspx" />
    <id>http://tim.mackey.ie/PermaLink,guid,43284f10-90dc-45c9-a8c9-5b6d31be9e10.aspx</id>
    <published>2012-04-24T20:51:07.0088799+01:00</published>
    <updated>2012-04-24T20:51:07.0088799+01:00</updated>
    <category term=".Net Windows Forms" label=".Net Windows Forms" scheme="http://tim.mackey.ie/CategoryView,category,NetWindowsForms.aspx" />
    <author>
      <name>Tim Mackey</name>
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
I have a winforms app that ran into trouble with the XStandard XHTML component on
a 64 bit system. I was registering the OCX file from code if it didn't register via
the MSI. found this <a href="http://support.microsoft.com/kb/282747">kb article</a> useful,
and then called the appropriate version of regsvr32.exe based on the platform.
</p>
        <pre>try
{
    // attempt to load the control 
    this.pageEditor = new PageEditor();
}
catch (System.Runtime.InteropServices.COMException)
{
    // control loading failed
    string ocxPath = Path.Combine(Application.StartupPath, "Xstandard.ocx");
    try
    {
        // OCX is not registered, register it now using the Syswow64 version of regsvr32.exe if we are using a 64 bit system
        Process p = new Process();
        p.StartInfo.FileName = @"regsvr32.exe";
        p.StartInfo.WorkingDirectory = (IntPtr.Size == 8) ? @"%SystemRoot%\Syswow64" : @"%SystemRoot%\system32";  // IntPtr is size 8 on a 64 bit system
        p.StartInfo.UseShellExecute = false;
        p.StartInfo.Arguments = String.Format("/s \"{0}\"", ocxPath);
        p.Start();
        p.Close();
        MessageBox.Show("Please restart... (OCX file registered)", "Restart");
        Application.Exit();
        return;
    }
    catch (Exception ex)
    {
        MessageBox.Show("Unable to register OCX file: " + ex.Message, "Error");
        Application.Exit();
        return;
    }
}<pre><img width="0" height="0" src="http://tim.mackey.ie/aggbug.ashx?id=43284f10-90dc-45c9-a8c9-5b6d31be9e10" /></pre></pre>
      </div>
    </content>
  </entry>
  <entry>
    <title>.Net windows forms Multi-line ComboBox / text-wrapping</title>
    <link rel="alternate" type="text/html" href="http://tim.mackey.ie/NetWindowsFormsMultilineComboBoxTextwrapping.aspx" />
    <id>http://tim.mackey.ie/PermaLink,guid,13058183-db6d-4740-8817-0cd1013d9052.aspx</id>
    <published>2012-01-16T10:08:16.714+00:00</published>
    <updated>2013-02-06T15:52:08.9256318+00:00</updated>
    <category term=".Net Windows Forms" label=".Net Windows Forms" scheme="http://tim.mackey.ie/CategoryView,category,NetWindowsForms.aspx" />
    <author>
      <name>Tim Mackey</name>
    </author>
    <content type="html">seems like the most basic requirement for a list control... but there we are.&amp;nbsp; use this as a replacement for the System.Windows.Forms.ComboBox. &lt;br&gt;
&lt;br&gt;
&lt;pre&gt;
using System;
using System.Drawing;
using System.Linq;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using System.Collections.Generic;

namespace HortLaptopApp
{
    class ComboBoxWrap : ComboBox
    {
        // ref http://stackoverflow.com/questions/1245530/unable-to-set-the-dropdownheight-of-combobox
        [DllImport("user32.dll")]
        [return: MarshalAs(UnmanagedType.Bool)]
        public static extern bool GetWindowRect(IntPtr hwnd, out RECT lpRect);

        [DllImport("user32.dll", SetLastError = true)]
        [return: MarshalAs(UnmanagedType.Bool)]
        private static extern bool SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int x, int y, int cx, int cy, uint uFlags);

        [StructLayout(LayoutKind.Sequential)]
        public struct RECT
        {
            public int Left;        // x position of upper-left corner
            public int Top;         // y position of upper-left corner
            public int Right;       // x position of lower-right corner
            public int Bottom;      // y position of lower-right corner
        }

        public const int SWP_NOZORDER = 0x0004;
        public const int SWP_NOACTIVATE = 0x0010;
        public const int SWP_FRAMECHANGED = 0x0020;
        public const int SWP_NOOWNERZORDER = 0x0200;

        public const int WM_CTLCOLORLISTBOX = 0x0134;

        private int _hwndDropDown = 0;

        protected override void WndProc(ref Message m)
        {
            if (m.Msg == WM_CTLCOLORLISTBOX)
            {
                if (_hwndDropDown == 0)
                {
                    _hwndDropDown = m.LParam.ToInt32();

                    RECT r;
                    GetWindowRect((IntPtr)_hwndDropDown, out r);

                    //int newHeight = 0;
                   // for(int i=0; i&amp;lt;Items.Count &amp;&amp; i &amp;lt; MaxDropDownItems; i++)
                    //    newHeight += this.GetItemHeight(i);

                    int total = 0;
                    for (int i = 0; i &amp;lt; this.Items.Count; i++)
                        total += this.GetItemHeight(i);
                    this.DropDownHeight = total + SystemInformation.BorderSize.Height * (this.Items.Count + 2);
           

                    SetWindowPos((IntPtr)_hwndDropDown, IntPtr.Zero,
                        r.Left,
                                 r.Top,
                                 DropDownWidth,
                                 DropDownHeight,
                                 SWP_FRAMECHANGED |
                                     SWP_NOACTIVATE |
                                     SWP_NOZORDER |
                                     SWP_NOOWNERZORDER);
                }
            }

            base.WndProc(ref m);
        }

        protected override void OnDropDownClosed(EventArgs e)
        {
            _hwndDropDown = 0;
            base.OnDropDownClosed(e);
        }

        public ComboBoxWrap() : base()
        {
            // add event handlers
            this.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawVariable;
            this.DrawItem += new DrawItemEventHandler(ComboBoxWrap_DrawItem);
            this.MeasureItem += new MeasureItemEventHandler(ComboBoxWrap_MeasureItem);
        }

        void ComboBoxWrap_MeasureItem(object sender, MeasureItemEventArgs e)
        {
            // set the height of the item, using MeasureString with the font and control width
            ComboBoxWrap ddl = (ComboBoxWrap)sender;
            string text = ddl.Items[e.Index].ToString();
            SizeF size = e.Graphics.MeasureString(text, this.Font, ddl.DropDownWidth); 
            e.ItemHeight = (int)Math.Ceiling(size.Height) + 1;  // plus one for the border
            e.ItemWidth = ddl.DropDownWidth;
            System.Diagnostics.Trace.WriteLine(String.Format("Height {0}, Text {1}", e.ItemHeight, text));
        }

        void ComboBoxWrap_DrawItem(object sender, DrawItemEventArgs e)
        {
            if (e.Index &amp;lt; 0)
                return;

            // draw a lighter blue selected BG colour, the dark blue default has poor contrast with black text on a dark blue background
            if ((e.State &amp; DrawItemState.Selected) == DrawItemState.Selected)
                e.Graphics.FillRectangle(Brushes.PowderBlue, e.Bounds);
            else
                e.Graphics.FillRectangle(Brushes.White, e.Bounds);
            
            // get the text of the item
            ComboBoxWrap ddl = (ComboBoxWrap)sender;
            string text = ddl.Items[e.Index].ToString();

            // don't dispose the brush afterwards
            Brush b = Brushes.Black;
            e.Graphics.DrawString(text, this.Font, b, e.Bounds, StringFormat.GenericDefault);
            
            // draw a light grey border line to separate the items
            Pen p = new Pen(Brushes.Gainsboro, 1);
            e.Graphics.DrawLine(p, new Point(e.Bounds.Left, e.Bounds.Bottom-1), new Point(e.Bounds.Right, e.Bounds.Bottom-1));
            p.Dispose();
            
            e.DrawFocusRectangle();
        }
    }
}
&lt;/pre&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://tim.mackey.ie/aggbug.ashx?id=13058183-db6d-4740-8817-0cd1013d9052" /&gt;</content>
  </entry>
  <entry>
    <title>Locating the TypeGuessRows registry key on Windows 64-bit operating systems</title>
    <link rel="alternate" type="text/html" href="http://tim.mackey.ie/LocatingTheTypeGuessRowsRegistryKeyOnWindows64bitOperatingSystems.aspx" />
    <id>http://tim.mackey.ie/PermaLink,guid,b2a5320e-a121-4a33-b15b-924638047fe7.aspx</id>
    <published>2012-01-01T22:19:39+00:00</published>
    <updated>2012-01-13T17:20:57.7309361+00:00</updated>
    <category term=".Net General" label=".Net General" scheme="http://tim.mackey.ie/CategoryView,category,NetGeneral.aspx" />
    <category term="Database" label="Database" scheme="http://tim.mackey.ie/CategoryView,category,Database.aspx" />
    <author>
      <name>Tim Mackey</name>
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p class="title">
Data truncated to 255 characters with Excel Jet/ODBC driver: <a href="http://support.microsoft.com/kb/189897">http://support.microsoft.com/kb/189897</a><br /></p>
Solution: <a href="http://support.sas.com/kb/31/765.html">http://support.sas.com/kb/31/765.html</a><br /><pre><span style="font-family: monospace;"><strong>My Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Jet\4.0\Engines\Excel<br /></strong></span></pre><p>
Set to 0 to avoid the truncation problem!
</p><p></p><img width="0" height="0" src="http://tim.mackey.ie/aggbug.ashx?id=b2a5320e-a121-4a33-b15b-924638047fe7" /></div>
    </content>
  </entry>
  <entry>
    <title>Excel interop with .Net / Server 2008</title>
    <link rel="alternate" type="text/html" href="http://tim.mackey.ie/ExcelInteropWithNetServer2008.aspx" />
    <id>http://tim.mackey.ie/PermaLink,guid,ef1b363f-dc12-4106-a797-6d2c37c7b905.aspx</id>
    <published>2011-12-28T21:16:30.042+00:00</published>
    <updated>2011-12-28T21:16:30.042+00:00</updated>
    <category term=".Net General" label=".Net General" scheme="http://tim.mackey.ie/CategoryView,category,NetGeneral.aspx" />
    <category term="Asp.Net" label="Asp.Net" scheme="http://tim.mackey.ie/CategoryView,category,AspNet.aspx" />
    <author>
      <name>Tim Mackey</name>
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">I'm using Asp.Net to open excel files and
read the values cell by cell, normally i prefer to import Excel files as a datatable,
but some documents don't fit the strict rows/columns format required for importing
into a DataTable.  the code i'm using is based on <a href="http://dotnetperls.com/excel-interop">this
from dotnetperls</a>.  worked fine for the most part on my dev PC but I had a
few issues trying to get this to work on a 32bit version of excel on a 64 bit Windows
2008 server. 
<br />
here's what i had to do to get it working: 
<br /><ul><li>
disable macros (throwing exceptions opening the workbook), requires a reference to
the Microsoft.Office.Core assembly:<br />
excelApp.AutomationSecurity = Microsoft.Office.Core.MsoAutomationSecurity.msoAutomationSecurityForceDisable;  
// disable macros</li><li>
give launch / open permissions to the Excel application in DCOM config, this was tricky
because it isn't shown in a 64 bit OS if the program is 32 bit, i found <a href="http://social.technet.microsoft.com/Forums/en-US/w7itproappcompat/thread/dde69147-a01a-4eb1-8ea9-31adbf874bed/">the
answer here</a>.</li><li>
set the identity in DCOM for Excel to the interactive user.</li></ul><p><br /></p><p></p><img width="0" height="0" src="http://tim.mackey.ie/aggbug.ashx?id=ef1b363f-dc12-4106-a797-6d2c37c7b905" /></div>
    </content>
  </entry>
  <entry>
    <title>Asus P6T deluxe v2 overclock settings with Intel i7 920</title>
    <link rel="alternate" type="text/html" href="http://tim.mackey.ie/AsusP6TDeluxeV2OverclockSettingsWithIntelI7920.aspx" />
    <id>http://tim.mackey.ie/PermaLink,guid,cf9965fa-a763-4aff-8371-b7896dc551fa.aspx</id>
    <published>2011-10-14T13:42:08.8906627+01:00</published>
    <updated>2011-10-14T13:42:08.8906627+01:00</updated>
    <category term="General" label="General" scheme="http://tim.mackey.ie/CategoryView,category,General.aspx" />
    <author>
      <name>Tim Mackey</name>
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">Found a safe/low-temp overclock @ 3.6Ghz
for this board. Using 1600Mhz DDR3 RAM. standard air cooling in a z-machine GT1000
case. 
<br /><br />
RAM set to XMP profile #1. 8/8/8/24/1.66V/1.35v<br />
BCLK:180<br />
PCIE:100<br />
Speedstep/turbotech:enable<br />
RAM:~1450 Mhz<br />
CPU Volt:1.25V<br />
QPI/DRAM:1.35V<br />
DRAM bus:1.66v<br /><br />
everything else auto/default<br />
CPU Fan and chassis fan set to Standard profile. 
<br /><br />
44c @ idle. 66c under orthos CPU stress test.  The 1.25 CPU voltage keeps the
temps nice and low, and it's very stable.  the 920 does this o'c with ease, could
probably go lower but stability is more of a priority for a software dev PC. 
<br /><p></p><img width="0" height="0" src="http://tim.mackey.ie/aggbug.ashx?id=cf9965fa-a763-4aff-8371-b7896dc551fa" /></div>
    </content>
  </entry>
  <entry>
    <title>Playing a DVD remotely from a network share</title>
    <link rel="alternate" type="text/html" href="http://tim.mackey.ie/PlayingADVDRemotelyFromANetworkShare.aspx" />
    <id>http://tim.mackey.ie/PermaLink,guid,d744e74a-f851-4f18-b9d0-91fedb03182a.aspx</id>
    <published>2011-01-24T20:43:52.636375+00:00</published>
    <updated>2011-01-24T20:43:52.636375+00:00</updated>
    <category term="General" label="General" scheme="http://tim.mackey.ie/CategoryView,category,General.aspx" />
    <author>
      <name>Tim Mackey</name>
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">you can rip a DVD and then stream the file
to a remote computer, or with VLC media player you can stream the DVD itself, but
that takes a bit of setting up.  i wanted to pop a DVD into my desktop PC and
then play it remotely from a netbook plugged in to the TV.  so i share out the
DVD drive on the desktop, all well and good, i can see the VIDEO_TS and AUDIO_TS folders
on the netbook, but there isn't an Autoplay option or any way to 'start' the DVD. 
i found a useful tip from the <a href="http://forum.videolan.org/viewtopic.php?t=2132">VLC
forums</a>, you can drag the VIDEO_TS folder into VLC (on the netbook, for example)
and then it will start playing the DVD, with full support for menus and chapters etc. 
The bit i got stuck on was that you have to start the DVD for a few seconds on the
host PC (desktop in my case) which authenticates the disc and allows it to be streamed.  
<br /><br />
not very high tech, but handy, if you ever find yourself without a DVD player. 
<br /><p></p><img width="0" height="0" src="http://tim.mackey.ie/aggbug.ashx?id=d744e74a-f851-4f18-b9d0-91fedb03182a" /></div>
    </content>
  </entry>
  <entry>
    <title>Gridview Delete via LinqDataSource fails with ChangeConflictException: Row not found or changed</title>
    <link rel="alternate" type="text/html" href="http://tim.mackey.ie/GridviewDeleteViaLinqDataSourceFailsWithChangeConflictExceptionRowNotFoundOrChanged.aspx" />
    <id>http://tim.mackey.ie/PermaLink,guid,f64c50ed-6a72-4d18-b966-079bd740282f.aspx</id>
    <published>2010-09-14T12:50:05.3+01:00</published>
    <updated>2010-09-14T15:16:01.346875+01:00</updated>
    <category term=".Net General" label=".Net General" scheme="http://tim.mackey.ie/CategoryView,category,NetGeneral.aspx" />
    <category term="Database" label="Database" scheme="http://tim.mackey.ie/CategoryView,category,Database.aspx" />
    <author>
      <name>Tim Mackey</name>
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">if you use SqlMetal to generate DataContext
classes against an SQL database, you might run into some problems with GridView and
deleting a row, when using a LinqDataSource.<br />
this was a very frustrating problem to track down, apparently there is a bug in the
LinqDataSource with datetime fields.  i kept getting this error: ChangeConflictException:
Row not found or changed<br />
and there was no apparent reason why it was happening, because the same code worked
for other tables.  I eventually narrowed it down to the only difference between
the two tables, a non nullable datetime field. changing this field to nullable removed
the problem. 
<br /><a href="http://forums.asp.net/t/1016914.aspx">this thread</a> was useful in troubleshooting
the problem.<br />
i also found that calling DataBind() on the LinqDataSource before re-binding the GridView
helped get rid of this error message.<br /><p></p><img width="0" height="0" src="http://tim.mackey.ie/aggbug.ashx?id=f64c50ed-6a72-4d18-b966-079bd740282f" /></div>
    </content>
  </entry>
  <entry>
    <title>Nokia Ovi Suite Calendar Sync Cancelled error message</title>
    <link rel="alternate" type="text/html" href="http://tim.mackey.ie/NokiaOviSuiteCalendarSyncCancelledErrorMessage.aspx" />
    <id>http://tim.mackey.ie/PermaLink,guid,f165282b-2995-4b18-97f5-dd9cf1c8a6e2.aspx</id>
    <published>2010-06-17T09:44:58.435375+01:00</published>
    <updated>2010-06-17T09:44:58.435375+01:00</updated>
    <category term="General" label="General" scheme="http://tim.mackey.ie/CategoryView,category,General.aspx" />
    <author>
      <name>Tim Mackey</name>
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">I have a nokia E52 and in general i'm very
happy with the Nokia Ovi Suite software.  But today it refused to synchronise
my calendar with a "Sync Cancelled" error message, other items synchronised fine. 
The solution was to reset the nokia profile/files on my computer.  Make sure
to close Outlook, Ovi Suite, and end the "nokiamserver.exe" process.  Then open
up explorer and browse to C:\Users\Name\AppData\Local and C:\Users\Tim\AppData\Roaming. 
You could delete these files, but just in case i renamed the "Nokia" and "Nokia Ovi
Suite" folders to "xNokia" and "xNokia Ovi Suite".  If anything goes wrong you
can always rename them back to their original names. 
<br />
Then open up Ovi Suite again and reconnect the phone.  It should synchronise
fine then, there must be some bug with the calendar synchronisation that can corrupt
the local database. 
<br /><p></p><img width="0" height="0" src="http://tim.mackey.ie/aggbug.ashx?id=f165282b-2995-4b18-97f5-dd9cf1c8a6e2" /></div>
    </content>
  </entry>
  <entry>
    <title>Excel interop with Asp.Net</title>
    <link rel="alternate" type="text/html" href="http://tim.mackey.ie/ExcelInteropWithAspNet.aspx" />
    <id>http://tim.mackey.ie/PermaLink,guid,4e0a72af-03e6-441d-bcd5-d8ed406d5209.aspx</id>
    <published>2010-06-11T18:32:37.92325+01:00</published>
    <updated>2010-06-11T18:32:37.92325+01:00</updated>
    <category term="Asp.Net" label="Asp.Net" scheme="http://tim.mackey.ie/CategoryView,category,AspNet.aspx" />
    <author>
      <name>Tim Mackey</name>
    </author>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">Ran into a permissions problem today using <a href="http://www.codeproject.com/KB/office/fasterexcelaccesstoc.aspx">Excel
interop code</a> from within ASP.Net, which had worked fine from a windows forms application.<br />
Thanks to '<a href="http://www.mofeel.net/61-microsoft-public-dotnet-framework-interop/6941.aspx">Frosty</a>'
for his post which explains how to enable the appropriate permissions, reproducing
it here in case the link ever goes down:<br /><br /><blockquote>From command prompt / start-&gt;run... type dcomcnfg<br /><br />
Select Component Services-&gt;Computers-&gt;My Compter-&gt;DCOM Config<br /><br />
Scroll down and select Microsoft Excel Applicaton<br /><br />
Right click on Microsoft Excel Applicaton and select properties.<br /><br />
Select the Security tab<br /><br />
In Launch Permissions group box click Edit button.<br /><br />
Add the appropriate user for your particular situation. In my case, I<br />
selected MyDomainName\Domain Users.<br /><br />
Make sure that Allow check box is checked for your appropriate user.<br /><br />
Click OK<br /><br />
In Access Permissions group box click Edit button.<br /><br />
Add the appropriate user for your particular situation. In my case, I<br />
selected MyDomainName\Domain Users.<br /><br />
Make sure that Allow check box is checked for your appropriate user.<br /><br />
Click OK<br /><br />
Excel interop will now work via asp.net<br /></blockquote><p></p><img width="0" height="0" src="http://tim.mackey.ie/aggbug.ashx?id=4e0a72af-03e6-441d-bcd5-d8ed406d5209" /></div>
    </content>
  </entry>
</feed>