So I created a C# DLL assembly in VS 2010 which contains a class called NoUIControlClass. set the target framework to .NET 2.0 and made sure to check "Make assembly COM-Visible". I also signed the assembly so it would have a strong name so
I could install it in the GAC. So far so good.
Here is the batch file I run after the project is built to register the control and place it into the GAC:
copy "C:\Users\x\Documents\Visual Studio 2010\Projects\NoUIControl\NoUIControl\bin\Debug\NoUIControl.dll" C:\Exploration\NoUIControl
C:\Windows\Microsoft.NET\Framework\v4.0.30319\regasm NoUIControl.dll /unregister
C:\Windows\Microsoft.NET\Framework\v4.0.30319\regasm NoUIControl.dll NoUIControl.dll
C:\"Program Files (x86)"\"Microsoft SDKs"\Windows\v7.0A\Bin\gacutil.exe /u NoUIControl.dll
C:\"Program Files (x86)"\"Microsoft SDKs"\Windows\v7.0A\Bin\gacutil.exe /i NoUIControl.dll
This works and all is good. Next I've turned the security level in IE all the way down for intranet and trusted sites. Just to make sure that doesn't get in the way. Here is the HTML file I serve from the web server.
View Complete Post