e-Deklaracje bez instalacji dodatku Flash Player

Na stronach MF umożliwiających instalację programu e-Deklaracje czytamy, że do instalacji on-line niezbędna jest wtyczka Flash Player. Prawda, że do instalacji on-line Flash Player jest niezbędny, ale nie jest to wymóg by w ogóle zainstalować e-Deklaracje. Można to zrobić bez Flash Player’a, po staroświecku pobierając pliki i instalując off-line: Instalujemy …

Windows Vista digital and analog output at the same time

I thought i have a very simple setup, a home theater system connected to my computer through a optical cable to a digital SPDIF output, and headphones connected to my back analog output. Simple, when I play games I use headphones with home theater system turned off, when I watch …

Non-existent, not used project reference causes error in WinForms VS designer

Today I was struck by another „self-explanatory” 😛 Visual Studio exception: The path is not of a legal form. Hide at System.IO.Path.NormalizePathFast(String path, Boolean fullCheck) at System.IO.Path.GetFullPathInternal(String path) at System.Reflection.AssemblyName.GetAssemblyName(String assemblyFile) at Microsoft.VisualStudio.Design.VSTypeResolutionService.AddProjectDependencies(Project project) at Microsoft.VisualStudio.Design.VSTypeResolutionService.AssemblyEntry.get_Assembly() at Microsoft.VisualStudio.Design.VSTypeResolutionService.AssemblyEntry.Search(String fullName, String typeName, Boolean ignoreTypeCase, Assembly& assembly, tring description) at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchProjectEntries(AssemblyName assemblyName, …

Replace default IPrincipal object in ASNET

There is an easy way to override or provide IPrincipal object exposed by the System.Web.UI.Page.User property. Implement OnAuthenticate handler in the Global.asax public void WindowsAuthentication_OnAuthenticate(Object Source, WindowsAuthenticationEventArgs e) { e.User = new GenericPrincipal(e.Identity, new string[] {„Role1”, „Role2”, „Role3”}); } This way you do not have to implement RoleProvider class, just …

Logging into a W2K3 domain taking forever?

… and the one thing you did is install latest security updates for Windows 2003 Server? WTF?! Someone did forget to mention you that one of the tcp ports used while Active Directory user is logging in have changed from 1025 to 1026 🙁 . Hey MS people! There should …

How to format each GridView row based on data-item

Every now and then, someone requests that a html table with should somehow be customised based on data shown, for eg. each row should have different background color for each „Status” column in data-item. In my knowledge there is no easy way of doing it declarative in ASP.NET using standard …

WatiN cannot start IE

Today my new, Administrator right’s free, ccnet installation gave me „the finger” while trying to run WatiN test fixtures.: Retrieving the COM class factory for component with CLSID {0002DF01-0000-0000-C000-000000000046} failed due to the following error: 80070005. at WatiN.Core.IE.CreateNewIEAndGoToUri(Uri uri, LogonDialogHandler logonDialogHandler, Boolean createInNewProcess) at WatiN.Core.IE..ctor() As it turns out silmple …

Manual NCover setup

Recently I’ve been migrating a ccnet environment, including the NCover installation. I’m lazy so i just copied files hoping that if paths are the same/correct then everything will work auto-magically. It did not, NCover need a small configuration to be put in windows registry: Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOTWow6432NodeCLSID{6287B5F9-08A1-45E7-9498-B5B2E7B02995}] …

How to minimize size of SqlServer database files

Sometimes my development databases use to much space that is not required. Most of my dev sqlserver databaeses are not used – kep for future reference only. Thre is way to keep their size to minimum: backup log MyDbName with truncate_only dbcc shrinkfile(MyDbName_log,2) Second sql statement uses database transaction log …

Simple re-use of QueryString paremetr with BindableHyperLink

When you want to use a query parameter passed to your page you’ll need litle bit of extra coding. There are few ways to accomplish that but in simple cases I like to use data binding expression just inside NavigateUrl attribute on Hyperlik’s and friends: <wc:BindableHyperLink ID=”newItem” runat=”server” Text=”Add” NavigateUrl='<%# …

Back to Top