Geeks With Blogs

News My Blog has been MOVED to https://mfreidge.wordpress.com
Michael Freidgeim's OLD Blog My Blog has been MOVED to https://mfreidge.wordpress.com None Default for posts without categories
Misleading compiler error "is a 'type' but is used like a 'variable'"
The following C# line to call AutoFixture methodfixture.Create<Lis... Error 63 'System.Collections.Generic... is a 'type' but is used like a 'variable' It wasn't obvious, that closing '>' was missing. I believe that compiler can recognize and provide better error message ......

Posted On Sunday, August 11, 2013 2:45 PM

Cannot register the URL prefix 'https..." when physical folder was deleted
Afrer iisreset on production server I've got the error "Cannot register the URL prefix 'https://*:443/OldFolder/' for site '1'. The site has been deactivated. " The problem was that IIS folder still existed, when physical folder was deleted. Only after I deleted the virtual folder, I was able to start web site. Different reasons to see the same errors are described in http://support.microsoft.co... " You receive a "The process cannot access the file because it is being used by another process" ......

Posted On Sunday, May 29, 2011 12:01 AM

Function to Convert ASP.NET bool to JavaScript bool.
I was generating some JavaScript in the server code and found that bool.ToString() doesn't create string that JavaScript expects as boolean- .Net uses first letter as capital True/False. Then I found in my own class, that I've wrote helper function a long time ago: public static string JSToString(bool bValue) { return bValue.ToString().ToLower(); } ......

Posted On Friday, January 2, 2009 1:48 PM

WaitAll to support calls from WindowsForms
We have multi-threading application that uses WaitHandle.WaitAll methods. It works fine, when called from ASP.NET, but when it is called from WinForms test harness, it causes the error "WaitAll for multiple handles on an STA thread is not supported.". I've included the workaround and moved code to helper function. However I needed to call the function with different parameters List<ManualResetEvent> and List<WaitHandle> . Even if ManualResetEvent is derived from WaitHandle, there is no ......

Posted On Monday, May 28, 2007 5:31 PM

Ability to request e-mail updates for Google Groups thread.
When I am posting question to one of news groups, it always desireable to get notification if anyone replied to the thread.Recently I've noticed, that Google Groups have this facility. As it is described in the Google Groups Tip:At the top of the thread of interest, to the right of the thread title (what you or the author named the thread), click "more options". Then choose "email updates to me". You will now receive an email for any postings to that thread. A small mail icon will appear, next to ......

Posted On Sunday, March 4, 2007 7:20 AM

Gmail Labels do not support hierarchy,as Folders could.
I've started to use GMail. They have Labels instead of folders to organize e-mails. There are certainly benefits in ability to have many labels for one item. However I feel folders are more familiar for me (and other people ). In particular, I am missing ability to organize hierarchy-i.e. sub-folders within folders.I've posted the suggestion to Gmail discussion group. Update Note: I found a special Google Feature requests group. It looks that it is a good place to post suggesetions to Google.But ......

Posted On Saturday, March 3, 2007 7:16 AM

Link to Russian Bard Club in Melbourne.
It's my second personal/social post in this technical blog. I am participationg in Russian Bard Club "Southern Cross" . I've recently noticed that the club's web site is not shown in Google. Even if it is out-of-date and not complete, it's better to have it searchable, because at least some info can be interesting. I hope that this link will help Google to crawl it ......

Posted On Sunday, November 12, 2006 5:24 PM

Links to my photo albums
It's interesting to note,that since I've started this blog more than a year ago,it's my first personal post. I've noticed, that my photo albums on Webshots are not picked up by the Google Images. So I will provide links here and (hopefully) Google indexer will add them.(some comments are in Russian) http://community.webshots.c... http://community.webshots.c... http://community.webshots.c... http://picasaweb.google.com... ......

Posted On Saturday, August 26, 2006 8:39 PM

DotNetNuke ResourceInstaller.Install Method parameters
DotNetNuke ResourceInstaller.Install Method has parameters that are not documented. http://beta.dnndn.com/libra... Public Sub Install( _ ByVal status As Boolean, _ ByVal indent As Integer, _ ByVal type As String _ ) status -if true, it sends output to HttpContext.Current.Response, otherwise it is silent. indent-number of "&nbsp;"s inserted before output messages send to HttpContext.Current.Response. ......

Posted On Wednesday, June 21, 2006 3:46 PM

WebResource Script in VBeXpressWebForms
My application still using VbExpress generated code even if the authors do not do any development/support. When moving to DNN with URL rewriting I had to modify VBeXpressWebForms.VBeXpress... . I've commented out in GenerateJScript 'mnf 26/5/2006 strOut = strOut & "<script Language=""JavaScript"" src=""JScript/Calendar.js""... & vbCrLf Added <Assembly: WebResource("Calendar.js", "application/x-javascript")... , added the “Calendar.js“ file as ......

Posted On Monday, May 29, 2006 10:11 AM

Visual Studio VS 2005 doesn't start debugging of Web Server.

A few times when I re-start debugging of my ASP.NET application from VS 2005 I received

"Unable to start debugging on the Web Server. The operation has timed out".

I had to restart IIS to fix the error. Not sure what causes this.

Posted On Tuesday, April 11, 2006 8:04 AM

How to find my own old blog entry for editing?
I have more then 70 entries im my blog, and I want to edit some old entry. My question is: What is the best procedure to find the old entry? How I am doing now: 1. Search in the Google with “site:geekswithblogs.... and keywords about the article. 2.Open the article or just note the date in the link url of the post. 3. Open my blog in Admin mode(EditPosts.aspx) 4.Estimate in my mind on which page the entry is located and open the page. 5.If I select the page correctly, open “edit“ ......

Posted On Sunday, March 12, 2006 4:13 AM

Support Forms and Windows authentication on the same ASP.NET Application.
I 've posted some details of my implementation of Richard Dudley's solution How to Make Windows Authentication and Forms Authentication Work Together. Please see them here ......

Posted On Thursday, October 27, 2005 8:27 AM

WinForms ComboBox SelectedIndexChanged event and SelectedValue assignment.
I am using WinForms.ComboBox and wanted to handle SelectedIndexChanged events. I found that when DataSource is assigned adding each row caused SelectedIndexChanged. It is a known and aknowledged by Microsoft problem and there are possible workarounds(e.g see http://www.bobpowell.net/Co... or http://www.windowsitpro.com... ). I desided that I don't need to set DataSource but will use lst.Items.Clear(); lst.Items.AddRange(coln.ToA... It helped with SelectedIndexChanged ......

Posted On Tuesday, October 25, 2005 11:36 AM

Storing User Configurations in .Net 1.1
.Net 2.0 will introduce My.Settings to store user preferences. For .Net 1.1 i wanted to use approach described by Rockford Lhotka in MSDN article “Storing User Configurations”. It requires to create derived class with properties that you want to store. I found 2 tips when created the derived class that is using IsolatedStorage. 1. Ignore FileNotFoundException error when load storage the first time.2. Use assignment with cast when Load class from storage, e.g. MySettings=MySettings.Load(); ......

Posted On Tuesday, October 25, 2005 8:56 AM

ADO RecordSet.Status value after AddNew is not adRecNew
In ADO I wanted to test if the current record existing or has been added with AddNew. I 've checked RecordSet.Status value and expected that after AddNew command the Status will be adRecNew(1) but it returned adRecOK(0). Possibly the value depends on cursor settings , in my code I had adOpenKeyset, adLockOptimistic. Fortunately I found that I can use EditMode and check if value is adEditAdd (2) ......

Posted On Wednesday, October 19, 2005 12:30 PM

Helper methods for running Access generated reports from ASP.NET
I am using Access reports exported as xml/xsl and show them in ASP.NET as it is described in Access: Your New .NET Report Writer by Danny J. Lesandrini. There are a few methods then can be useful for others who want to use the same technicque. Note that the original article uses DataSetName = "dataRoot" which causes problems for generated xsl files, because XML is case-sensitive and MS access generate XML with “dataroot“ element-all low case. 'TODO create COM wrapper and use early binding ......

Posted On Thursday, October 6, 2005 1:37 PM

Configuration class for Session Data Management Tool
I've posted a code of Configuration class for Session Data Management Tool created by Xiangyang Liu to store data between different threads in ASP.NET asyncronous application. The source code of the tool has SessionService web site where configuration is done in global.asax. To make it easier to incorporate it into existing ASP.Net web application, it was moved to a separate class. The changes also were done to store trace and data folders in Temp directory, which is easier for deployment ......

Posted On Thursday, October 6, 2005 12:25 PM

Export Registry in C#
I wanted to export registry in C# .Net project. First of all I noticed that the Microsoft.Win32.Registry doesnt' provide this function.I've searched a web and found VB.NET implementation at http://www.controlled-insan... Unfortunately the code calls a few functions that were not included on the page and I wrote ( or copied from others web sites) them to make the code compilable. Because my particular project is in C# and I ......

Posted On Friday, September 30, 2005 3:14 PM

Indexing service CreateRecordset error "Access is denied" can be caused by disabled Delegation.
I am using IXSSO from ASP.NET to access remote Indexing Services Catalog (See also my posts COM CleanUp when using IXSSO in .Net and Fill Dataset with rows in a specified range http://thespoke.net/blogs/m... . When testing it from workstation I started to receive "Access is denied" exception in CreateRecordset call. According to Hilary Cotter http://groups.google.com.au... ......

Posted On Tuesday, September 27, 2005 1:48 PM

COM CleanUp when using IXSSO in .Net
I am using IXSSO to access Index Server similar to described in article “Query Index Server with IXSSO in .NET” on ASP101. (See also my post how to use Fill Dataset with rows in a specified range http://thespoke.net/blogs/m... Recently I found a useful tip to dispose COM objects after the use. I noticed that it is required to check for null before calling ReleaseComObject. So the finally section should be like this finally { // recommended in http://www.eggheadcafe.com/... ......

Posted On Friday, September 23, 2005 8:56 AM

Author MSDE 2000 Setup Packages with Merge Modules -bad approach
Microsoft has an a KB article HOW TO: Author MSDE 2000 Setup Packages by Using Visual Studio .NET that described how to create own Setup. Our company uses this approach and now have problems with applying SQL Server 2000 SP4. The latest advice from MS - The Setup utilities for new applications must be written to call the MSDE 2000 Setup utility rather than directly consuming the MSDE 2000 merge modules. More details about disadvanages of using Merge Modules are on page Using SQL Server Desktop Engine ......

Posted On Tuesday, August 23, 2005 3:35 PM

How to make TechRepublic blog searchable in Google?
I have a mirror of my old blogs in TechRepublic http://techrepublic.com.com... I am sure that the TechRepublic blog pages were searchable in Google on some stage, but the search doesn't show them now. It is possible that the link to the TechRepublic blog was on one list page(e.g somethink like New TechRepublic Bloggers) but later link was removed by newely joined authors. Now I want to check would the link from this post help to make my techrepublic blog searchable ......

Posted On Tuesday, August 23, 2005 12:48 PM

Copyright © Michael Freidgeim | Powered by: GeeksWithBlogs.net