I've successfully got PartCover 2.3 working with VS 2008 on my 64-bit machine.
I'm now trying to get it to work with VS 2010 and NUnit 2.5.3. I've got NUnit using the correct CLR version, but I can't get PartCover to produce any output. All I get is an "empty" report XML file:
<PartCoverReport date="2010-03-30T16:09:05.1009099+01:00" /...
I am creating a .NET form application in Visual Studio 9. In the designer I have added a MenuStrip to where I have added ToolStripMenuItems (standard dropdown menu). To the ToolStripMenuItems I have added images by setting the Image property.
The images appear as expected, except they are aligned to the left, even though the ImageAlign...
I've written an application that retrieves pricing and part options from a SQL database to generate a 3D Model of the product and create a sales proposal. My client likes it so much they want to be able to use it on laptops in the field now. The catch is, they won't have an internet connection.
I'm considering setting up a SQLite data...
Hi,
Is it possible to use OData with POCO or is it limited to just LinqToEntities?
All the examples I can find only seem to use the Entity Framework.
Also is the seen as a replacement to WCF Services or is it intended to run in parallel?
Thanks
...
We have an legacy application that accesses the registry. Because it is a 32bit application it accesses the registry in Windows 7 through Registry Virtualization when referencing HKEY_LOCAL_MACHINE\Software. My question is what setting(s) in Visual Studio do we need to modify to compile our applications where they access the registry "...
When an exception happens after calling Invoke, .NET shows the stack trace as if the error happens while calling Invoke.
Example below: .NET will say the error happen in UpdateStuff instead of UpdateStuff -> BadFunction
Is there a way to catch the "real" exception and show the correct stack trace?
Private Sub UpdateStuff()
If (Me...
We have a customer who have two .NET assemblies, A and B:
Assembly A references assembly B.
Assembly A is unsigned, not obfuscated, no source code is available.
Assembly B is signed, not obfuscated, there is source code available.
I want to modify assembly A and change the manifest so that instead of referencing a signed version of ...
Hi,
I created a user control that has a template container.
<cc:SearchResultItem ID="SearchResultItem1" Customer='<%# ((Customer)(((RepeaterItem)Container).DataItem)) %>' runat="server">
<NameTemplate>
<%# Container.Name %>
</NameTemplate>
</cc:SearchResultItem>
This is...
I have been given a new format to add to the QAS ini file Qawserve.ini and want to use this format in the GetFormattedAddress() method call. How do I specify that I want to use this new custom layout?
I have tried using the name as specified above the layout in [Custom Layout], for example:
objAddress =
new QuickAddress(AppSettings...
Hi,
Let's say I have a class A and a class B. I would like to edit using .NET PropertyGrid multiple instances of A and B simultaneously. The desired behavior would be to have the intersection of properties displayed.
If A and B have static (written in the source code) properties everything works fine. Selecting A and B instances will o...
Hi,
I'm generating WSDL of my web service dynamically, but when I set the XmlSchemaType of my elements, the ServiceDescriptor writes the element as an element rather than message, as I need.
The code looks like this:
XmlSchemaElement schemaElement = new XmlSchemaElement();
XmlSchemaComplexType complexType = new XmlSchemaComplexType();...
First, here is the C# code and the disassembled IL:
public class Program<T>
{
private List<T> _items;
public Program(T x, [Microsoft.Scripting.ParamDictionary] Microsoft.Scripting.IAttributesCollection col)
{
_items = new List<T>();
_items.Add(x);
}
}
Here is the IL of that constructor:
.method public...
I'm trying to unit test a private method that I have attached to my FileSystemWatcher's Error event. MSDN says that this event "occurs when the internal buffer overflows." I've tried to cause a buffer overflow but have not been successful so far. The FileSystemWatcher's various properties are:
fileWatcher.IncludeSubdirectories = fals...
Hello, I am creating a 3 tier application. Basically it goes
Client -> (through optional server to
be a thin-client) -> Business Logic ->
Database Layer
And basically making it so that there is never any skipping around. As such, I want for all of the SQL queries and such to be in the Database Layer.
Well, now I'm a bit confu...
Given an object, is there any way to get notified of when that object is garbage collected?
I am playing around with having C# extension methods behave a little more like mixins (specifically in adding logging). So basically each object gets a new Logger() method which returns an ILog that is created and cached depending on the objec...
I am using a Microsoft Chart control (system.windows.forms.datavisualization.charting.chart) in a Windows forms application, vb.net 2008. I use folder paths for the x values in a pie chart. Chart control converts a name like c:\newfolder into c:[newline]ewfolder. I tried adding a slash, making it c:\\newfolder, but this only changes it t...
Hi - I have a problem which I cant seem to find answer to through searches (either that or I am searching for the completely wrong thing!). I have a list of items called "Top 10" in a sortedlist item that is populated from my DB (SortedList where int is position and string is item). I want to be able to move items up & down the list or...
Well,
the question is kinda simple.
I have a object defined as:
public class FullListObject : System.Collections.ArrayList, IPagedCollection
And when i try to:
IPagedCollection pagedCollection = (IPagedCollection)value;
It don't work... value is a FullListObject... this is my new code trying to get around a issue with the "is" op...
Is it possible to read a file over FTP, as a System.IO.Stream ?
using (Stream s = Ftp.OpenFile(url....))
{
s.Seek(offset, SeekOrigin.Begin);
int n = s.Read(...);
}
and similarly, with HTTP ?
using (Stream s = Http.OpenFile(url....))
{
s.Seek(offset, SeekOrigin.Begin);
int n = s.Read(...);
}
...
I am wrapping a number of functions from a vender API in C#. Each of the wrapping functions will fit the pattern:
public IEnumerator<IValues> GetAggregateValues(string pointID, DateTime startDate, DateTime endDate, TimeSpan period) {
// Validate Data
// Break up Requesting Time-Span
// Make Requests
// Read Results (through...