.net

Where the MSI file is copied after the installation?

I have to replace it because of a bug that blocks the software uninstallation, but Windows can't find the MSI file if I use the file search utility, but I think the MSI is stored somewhere where the Add or Remove Programs utility can use it. ...

Is a mapping library like AutoMapper available on the .NET Compact Framework 3.5?

Is anyone working on a .NET Compact Framework port of AutoMapper or are there any similar mapping libraries for the .NET Compact Framework? ...

Get average value from double[] between two indices

I have a double[] array holding many numbers. I have an algorithm that selects sections from within this array that fall under certain conditions (value greater than x, at least y values, etc.) Now I want to calculate the average value of all these values in my section. So, say my section is from index 20 to 40. Now I have 20 values. ...

Visual Studio 2008 and Windows 7 render text differently

I have attached a screen shot : http://i.imgur.com/tU05T.png I have checked my DPI settings. they are 100%. I cant seem to find out why the test would be a differnt font size in the runtime application vs the designer.. Can anyone assist. I have tried googling, have have not come up with any meaningful links.. ...

.Net 4 DLR - Any books in the pipeline?

I've also been reading through all the documentation about the DLR as this environment is truly exciting for somebody with my kind of tastes! Now - the documentation is quite, well, heavy; even if nice and detailed - and I'm hoping that with such a huge addition to the .Net framework proper (till now it's been a sideline) that somebody ...

.NET Setup Project - Changing Registry Settings

I have a class that modifies the ProxyEnable and ProxyServer registry keys of Internet Settings. If I use this class in a Console App and run it the value are changed and I can see the changes using regedit. Now the part that doesn't work is I am trying to use this class in an Installer class so that the registry keys are changed duri...

checkout process workflow, having issues with redirects

My checkout process has the following workflow: checkout page shipping address edit shipping address(add/edit) delivery method payment place order Each of the above steps has its own action in the same controller. Now the issue is, if the person gets to #5, and wants to edit the address, they go back to #3. But when they hit submit,...

Exception handling loop puzzle

I recently encountered a behavior that I've never seen before. I cannot quite understand what's going on most likely due to lack of fundamental knowledge with regards to the inner workings Exception Handling - or maybe I am just missing something obvious. I recently added exception handling to an app as a sort of fallback in case of un...

Why would System.Xml.Serialization.XmlSerializer be undefined in a SSRS 2005 report?

I'm trying to serialize a data structure and pass it to another report via parameter, and this line of code: Dim s As New System.Xml.Serialization.XmlSerializer(GetType(System.Collections.HashTable)) Produces this error: An error occurred during local report processing. The definition of the report '/myReport' is invalid. There i...

What is the threading class if I just want to test and set a flag in a threadsafe manner?

I just want to do a simple, though thread-safe, boolean test (and set) so: if(myBoolean==false) //should not lock/wait! { myBoolean=true; ..... } else { .... } I considered the following (although possibly incorrectly, so please correct me where I misunderstood) using the Lock { if(myBoolean)... } construct seems ...

Why doesn't my threaded .Net app scale linearly when allocating large amounts of memory?

I’ve run into something strange about the effect of large memory allocations on the scalability of the .Net runtime. In my test application I create lots of strings in a tight loop for a fixed number of cycles and spit out a rate of loop iterations per second. The weirdness comes in when I run this loop in several threads – it appears th...

.NET - Efficient collection of database entities?

I have a Page class and a PageCollection class in a 3d party ORM framework. I can fill the PageCollection based on parameters (pageid, parentid, url etc..) (SQL query). But I need the data multiple times around the ASP.NET MVC website (Sitemap, Authentication), so I chose to load all pages 1 time and reference that (global) collection. ...

Is it possible to write a Skype client?

Is there any libraries for this? I will put this on a server and it will be a windows service. And Skype will not be installed on server. So Skype API will not mean anything I guess. Edit: I am sorry for not being clear. Here is what i need: I just need a Skype client which will act like a small bot. A person who uses Skype will ask...

Restore Database backup from code?

I have an application extension which I need to test. Part of the extension applies some updates to the application database schema (via the applications API). i want to test that given version 1 of the application when my class is run the schema becomes v1.1 and that certain queries for items which should exist in 1.1 return correctly...

Get to the handled event instance in HandleExternalEventActivity

I have state machine, some state owns by HandleExternalEventActivity. It accepts some event with simple string flag. Basing on this string I need dispatch which next state must be activated. Most obvious is use IfElseActivity, but I have no idea how to get to this string from IfElse. Most simplest way to place property on entire state-ma...

LINQ - Minimize Records Returned - Correct Way to Write These Expressions

Employee is a sample entity type. var r1 = (from c in _ctx select c).Skip(5).Take(5); // my intent is to pull the first record from the query var r2 = (from c in _ctx select c).FirstOrDefault<Employee>(); // my intent is to pull the last record from the query. // any good way to ask for the result back in the reverse // orde...

Import Quart DLL in C# VIsual Studio

I'm in need for the Quartz DLL , I've downloaded all the source and everything and there is the Quartz.dll and Common.Logging.dll files, but I don't know how to use them in my own applications. Can someone tell me how to do this, it's just this one step that's stopping me from doing it all. Thanks ...

.NET class documentation from within PowerShell?

Is there a convenient method to access .NET class documentation (i.e. the MSDN documentation) from within PowerShel similar to "man 3" in UNIX shells? ...

ASP.NET 'Guest' Membership

Is it possible to specify what is returned by RoleProvider.GetRoles() if a user is not logged in? I was thinking in case of a 'Guest' user account. ...

What is the purpose of configSections?

I've done a little research and ran across this: http://msdn.microsoft.com/en-us/library/ms228245.aspx So if I'm understanding that correctly, ultimately what this is doing is including some .dlls for use within the project, much like: <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad...