In visual studios while debugging my asp.net project i see a change i'd like to make. I cant change code dynamically like i may in a winform app so 100% of the time i stop the app. Write my code and run.
Now randomly, a good % of the time i get the error
Unable to connect to any of the specified MySQL hosts.
with a crash shortly aft...
Can any one provide me step by step how to get QT to work in VS2010?
i have
Visual Studio 2010 Ultimate
Windows 7 Enterprise.
qt-sdk-win-opensource-2010.05
qt-vs-addin-1.1.7
i tried executing this from vs command prompt :
configure.exe -platform win32-msvc2008 -no-webkit -no-phonon -no-phonon-backend -no-script -no-scripttools -no...
Hello.
I made simple interface in Visual Studio 2010. When I launched application everything is bigger. Red square on screenshot represents size of the Button in launched application (On the right).
Am I missing something? How to fix it?
P.S.
In "Microsoft Expression Blend 4" the same project is exactly the same size as in editor.
...
I would like VS2010 to ignore an error in XAML Code. The Reason is, it's not a real error, I have a own class of Windows and VS is not able to create an instance of it. So now it always shows "Can not create an instance of "ChildWindow"". This would not be bad, but it marks the hole file as error, and this looks realy ugly.
So: I would...
I'm trying to pass an additional conditional compilation symbol via devenv (vs2010) on the command line to the C# compiler.
I know it can be done for the C++ compiler through the CL environment variables.
Is there something similar possible for C#?
Since this build pass needs to run Code Analysis, I'm stuck with using devenv to lau...
Hi,
I've been reading about the commercial use of Visual Studio Express 2010 and according to the Microsoft Express FAQ:
Can I use Express Editions for
commercial use?
Yes, there are no licensing
restrictions for applications built
using Visual Studio Express Editions.
While I think this is referring to VS2008, not 2010...
UPDATE: SO I am getting the error whenever I have all meta tags like HostType,AspNetDevelopmentServerHost,URLToTest. So when I comment these tags I can run the test but I need to have these tags to have the connection string available for controller to connect to database.
I created a basic unit test by just right clicking on the action ...
I am working along in VS2010 and moving code around to make more functions and less clutter, so I copy/paste nine times out of ten my mouse cursor "locks up" and it gets stuck on the arrow pointer rather than the | for text, which is only mildly annoying when you are trying to copy/paste a lot of code around. It clears up whenever I clos...
I created a Class Library project in Visual Studio 2010 and created added the following VB.Net class:
Public Class Dumb
Private name As String
Public Sub New(ByVal newName As String)
name = newName
End Sub
Public Sub sayHi()
System.Console.WriteLine("Hi " & name)
End Sub
End Class
I built the solu...
I usually create a solution folder in Visual Studio and put my DB scripts in them. I always use at least this set of scripts:
Drop model
Create model script
User functions
Stored procedures
Static data (lookup tables)
Test data (not deployed)
Then I simply combine them and run against an SQL Server so I'm able to recreate the whole D...
We are using TFS and VS 2010.
I have been working on a project that is using TFS as source control.
I have quite a few dlls that I have downloaded (such as log4net) and referenced in my project.
When a new programmer connected to TFS and got my project out of source control, it failed to build as it said it was missing all these refer...
Let's say you have the following code:
string encoded="9,8,5,4,9";
// Parse the encoded string into a collection of numbers
var nums=from string s in encoded.Split(',')
select int.Parse(s);
That's easy, but what if I want to apply a lambda expression to s in the select, but still keep this as a declarative query expr...
I'm trying to create a setup project.
On install, I want it to create some registry keys and delete others.
On uninstall, I want it to do the opposite.
Regarding creation of keys on install and removing them on uninstall - no problem, it's built into the setup project.
Problem is with removing keys at install (and adding them back at ...
If I understand correctly, SecurityAction.RequestMinimum has been made obsolete for .NET Framework 4.0 here. Now, when I create a C++/CLR project that targets .NET Framework 4.0, this line gets added automatically in the auto-generated AssemblyInfo.cpp:
[assembly:SecurityPermission(SecurityAction::RequestMinimum, UnmanagedCode = true)];...
Hi All,
I'm new to MVC and Entity Framework, so this may be a relatively simple answer, but I've tried searching around so far and no luck.
I'm using the most recent versions of both tools to my knowledge (MVC 3 Beta and Entity Framework 4.0)
I'm just trying to set up a quick example. Logically, I'm dealing with events -- in this case...
I have been trying to install wxwidgets on visual studios 2010 but I keep getting the same error. It would be great if some one could tell me what it means and how I can fix my problem.
This is the error message I keep getting
Error 1 error MSB3073: The command "xcopy ....\include\wx\msw\setup.h ....\lib\vc_dll\mswu\wx\ /Y
:VCEnd" exit...
Does the following generic function exist anywhere in the .NET 4.0 framework? I would like to reuse it if it does rather than writing it myself:
public static class Lambda
{
public static U Wrap<U>(Func<U> f)
{
return f();
}
}
It allows for the following construct (i.e., lambda expressions embedded in the select claus...
I'm using Visual Studio to debug a transform. If I am viewing the transform and select XML > Start XSLT Debugging, VS automatically opens the output file and as I step through the transform I can observe the output being written.
In my case however, because the transform is performed by an application that first sets some parameters, I...
I am using VS2010 and having an issue where upon opening my solution the Workflow.xamlx does not appear to render correctly.
The activities on the design surface only get drawn for the area that is initially visible when the xamlx loads.
To demonstrate the problem, I see the following. (I apologize for the blur)
The first problem is...
Hi,
I am fairly new to development, and Visual Studio 2010.
I have a solution with a Test Project:
In my solution, there are two projects: "TPS" and "TPS.Tests"
In the TPS project, in the namespace "TPS.Models" I have defined a bunch of classes, and two interfaces.
I have created a Test Class in the TPS.Tests project, and have added ...