I am experiencing real problems with WCF. For no apparent reason I have started getting the following errors when debugging any WCF service in my solution:
ProtocolException Occurred Content
Type application/soap+xml;
charset=utf-8 was sent to a service
expecting text/xml; charset=utf-8.
The client and service bindings may ...
After upgrading from VS 2008 to VS 2010 we have noticed a few annoyances (including issues with resource based imagelists on 64bit systems), but none have been as bad as the way VS 2010 shows outlined methods for VB.NET.
Previously in VS 2008 when a method is outlined you got the method outline with correctly colored keywords. Now all y...
Hi guys,
Today i licensed and downloaded the WPF RibbonControlsLibrary from Microsoft which is an extension to the WPF Toolkit. I've read some tutorials to implement an examlpe here
When I tried the example is sadly noticed that in XAML i could not access the referenced library.
xmlns:ribbon="clr-namespace:Microsoft.Windows.Controls.R...
I noticed that .NET framework uses formatting functions, generated the same way localizable string are.
There is a resource file Resources.resx with resource string TestString. So you may use it in code like this:
string localizableValue = Resources.TestString;
Now, imagine you need a formattable localizable string, to use it in stri...
Wednesday I had to restore from a back-up image I made on Monday. At the time of the snapshot I had about 20 files modified, which I later checked in, and more, on Tuesday. Now that I am back to a snapshot from Monday morning, my workspace has all of these files checked-out or added, etc. even my check-in comments and work-item assoc...
The related default StyleCop rules are:
Place using statements inside namespace.
Sort using statements alphabetically.
But ... System using come first (still trying to figure out if that means just using System; or using System[.*];).
So, my use case:
I find a bug and decide that I need to at least add an intelligible Assert to mak...
Hi,
I have a .NET solution containing following projects:
web application (WAP)
web deployment (WDP, .wdproj)
wix setup (WIX, .wixproj)
In the WDP I've used a custom MSBuild task (SetEnvVar) to set some env. variables for further use in the build process. After setting them I can use them without prob.
in the WDP but in the WIX th...
I'm working on a VS2010 project where I'm using DataAnnotations on my objects to handle validation. However, this is sort of a pain in the butt while trying to do interactive debugging because it keeps pausing VS.Net on validation errors.
Obviously, I want to break on some errors, but not these particular types. Am I out of luck and I...
I'm trying to implement coded UI tests, but have run into a problem. Whenever the test runs across a textbox with a masked edit extender on it, it records the mask as part of the input but does not enter that mask when it "types" that input during a playback. Example: mask is "//__" for a date. If I enter 02 02 2010 the textbox correctly...
I get error message "Unable to start debugging on the web server" in Visual Studio 2010. I clicked the Help button and followed the related suggestions without success.
This happens with a newly created local ASP.Net project when modified to use IIS instead of Cassini (which works for debugging). It prompts to set debug="true" in the we...
Howdy,
I am using Visual Studio 2010 and am playing around with the Database Projects.
I am creating a DataGenerationPlan to insert data into a simple table, in which one of the column datatypes is XML.
Out of the box, the generation plan uses the Regular Expression generator and generates something like this : HGcSv9wa7yM44T9x5oFT4pmB...
What ways do I have for creating a unit test template like this? I'm using visual studio 2010 and Resharper 5.
using NUnit.Framework;
namespace SolutionName.Core
{
[TestFixture]
public class ClassNameTests
{
[Test]
public void test()
{
}
}
}
...
The method for drawing a line on a canvas in WPF that uses the line class actually draws a line that is two pixels thick:
Line myLine = new Line();
myLine.Stroke = System.Windows.Media.Brushes.Black;
myLine.X1 = 100;
myLine.X2 = 140; // 150 too far
myLine.Y1 = 200;
myLine.Y2 = 200;...
I've got in-memory dataset with some table defined and I populate this table in a following way:
for(...)
ds.Fields.AddFieldsRow(++j, 0, heading, "Char", "", "", "Input", 0, "","","");
On the GUI I've got DataGridView bound to that table inside TabControl (bound through BindingSource).
Very strange thing is happening: if I open ...
I've got in-memory dataset with couple of tables that is populated in code. Data-bound grids on the gui show table contents without a problem.
Then I try to export the dataset into XML:
ds.WriteXml(fdSave.FileName, XmlWriteMode.WriteSchema);
and get empty XML (with couple of lines regarding dataset names but without any tables)
If ...
I know it's a bit close to
Can I use .NET 4.0 beta in Visual Studio 2008?
But my question is a bit different. I have a project that now uses .NET 4.0 (target .NET Framework 4.0) in Visual Studio 2010. Is it possible to use the project compiled dlls in Visual Studio 2008? How?
I don't want to use .NET4.0 directly in Visual Studio 2008, ...
I have just upgraded to VS 2010, and I have performance problems which I did not have before (in VS 2008).
The most annoying thing is that it freezes while I work in the text editor. Sometimes when it freezes I see that it is saving auto recovery information, but not always.
Almost anything I do gives an unacceptable long delay, like s...
I'm using Visual Studio 2010, and in my C++/CLI project there are two Code Analysis settings:
Enable Code Analysis on Build
Enable Code Analysis for C/C++ on Build
My question is about the second setting.
I've enabled it and it takes a long time to run and it doesn't find much.
Do you recommend enabling this feature? Why?
...
I'm porting a VS Add-in to VS 2010 from VS 2008 and need to be able to open the built-in web browser.
In VS 2008, it was possible to get a handle on the web browser window with code like this:
var win = _applicationObject.Windows.Item(Constants.vsWindowKindWebBrowser);
However, the same code does not work in VS 2010 when an instance ...
Does anyone know of any free add-in similar to Smart Paster, but for Visual Studio 2010?
Unfortunately, Smart Paster only works for VS2005 and VS2008.
For the ones that don't know what I'm talking about, check it out.
...