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 …

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 …

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}] …

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='<%# …