My Blog has been MOVED to https://mfreidge.wordpress.com
Default for posts without categories
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 ......
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" ......
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(); } ......
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 ......
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 ......
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 ......
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 ......
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... ......
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 " "s inserted before output messages send to HttpContext.Current.Response. ......
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 ......
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.
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“ ......
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 ......
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 ......
.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(); ......
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) ......
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 ......
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 ......
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 ......
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... ......
Full None Archive