Quick question: How do I get some kind of database to use to test my SQL syntax and create basic data.
I have Sqlite Code which I'll soon put on a server. I have SQL Server 2008 installed with visual studio 2010. I tried connecting to the database and had no luck.
I also tried using an .mdf file instead thinking it's a file and I won...
Is it possible to detect with VSX when any (or a particular) smart tag event is happening? I mean, every time we rename a variable, for example, a smart tag is available that allows us to change it through a form. I'd like to know if I can access that "text is changing" event.
I don't mean to have to check for myself if the text is bei...
I have a hybrid asp.net web forms / mvc application that I recently converted to .net 4 with mvc2. I have set-up that application to run on IIS 7.5 (on Windows 7) and the web forms part of the site is running okay but the MVC part is not. Whenever I try and access a page that needs to go through the routing engine I get
HTTP Error 404.0...
I have created a WCF service with one method which returns a System.Xml.XmlElement:
Interface:
using System.Xml;
...
[ServiceContract]
public interface IWCFService
{
[OperationContract]
XmlElement Execute(...);
}
Service:
using System.Xml;
...
public XmlElement Execute(...)
{
XmlNode node = ...;
return (XmlEleme...
I've recently upgraded my project to Visual Studio 2010 from Visual Studio 2008.
In Visual Studio 2008, this Code Analysis rule doesn't exist.
Now I'm not sure if I should use this rule or not.
I'm building an open source library so it seems important to keep people safe from doing mistakes. However, if all I'm going to do is throw Ar...
I have a Visual Studio 2010 Windows Forms application in which I start a transaction using the TransactionScope class. I then Receive a message from a Sql Server Broker Services message queue, which works fine. I next try to call a stored procedure from the same database with a call to my data access layer which is a Visual Studio data...
Hello:
The inclusion of DataGrid and DatePicker controls was announced for WPF in Framework 4, but when I access to VS2010 and I create a WPF proyect, I can not get these controls. What did I miss?
Thanks.
...
I know this is a nit-noid question, but ...
While converting a VS 2005 (.NET 2.0) project to a VS 2010 (.NET 4.0 project), I encountered a dialog stating that the project was written in a previous version of .NET and did I want to convert the project to the newest version of the framework. In addition, there was a check box that promp...
I've recently upgraded my project from Visual Studio 2008 to Visual Studio 2010.
By enabling Code Analysis and compiling in Release, I'm getting warning CA1806: Do not ignore method results.
I've managed to reduce the code that produces the warning to this code:
.h file:
public ref class Foo
{
public:
void Bar();
};
.cpp file:
...
I am using Silverlight 4 and RIA services. When I try to insert into my database, I get the following error:
"Submit operation failed validation. Please inspect Entity.ValidationErrors for each entity in EntitiesInError for more information."
Upon inspecting the ValidationErrors, I see:
"The Version field is required."
Isn't...
I've recently upgraded my project from Visual Studio 2008 to Visual Studio 2010.
By enabling Code Analysis, I'm getting a lot of warnings resulted in rule CA2204: Literals should be spelled correctly.
EDIT:
Let's say I have a method called GetResult(), and in it I want to throw an exception for some reason. I want the exception to say...
The code generation is working but I get the following errors when I try to build the project:
Error 4 Source file '...Project Path...\Structs.cs' could not be opened ('Unspecified error ') PPSGenerator
Error 5 Source file '...Project Path...\Context.cs' could not be opened ('Unspecified error ') PPSGenerator
Error 6 Source file '...P...
I'm building a tabbed WPF application. I'm planning to put MapPoint control (ActiveX) on one of the tabs. I want to have the option to float this tab just like in VS 2010. The resulting widow must contain the same instance of the MapPoint control (because each instance of the control starts up separate MapPoint instance). Any idea how to...
I'm seeing what I believe to be an erroneous/incorrect compiler error using the Visual Studio 2010 compiler. I'm in the process of up-porting our codebase from Visual Studio 2005 and I ran across a construct that was building correctly before but now generates a C2248 compiler error.
Obviously, the code snippet below has been generic-i...
I've recently upgraded my project from Visual Studio 2008 to Visual Studio 2010.
By enabling Code Analysis and building on Release, I'm getting warning CA1811: Avoid uncalled private code.
I've managed to reduce the code to this:
.h file:
public ref class Foo
{
public:
virtual System::String^ ToString() override;
private:
st...
Visual studio 2010 Premium installed on Widnows 7:
when try to connect for online gallery or online template, give me error like:
Cannot search for online exensions because an error occured while trying to contact the server
and ask me enable access to extensions on the vistual studio gallery ....
It did enabled in Extension Manager T...
Hi,
I have a clean installation of Windows 7 with VS2010 RTM and am trying to get the ASP.NET Development Server to work.
When I run the project, the WebDev server starts and shows that it's listening on port x on localhost.
I've tried:
telnet to the port. The port is not listening.
running netstat -o shows that the WebDev serve...
Hi.
I created a database and dbml in visual studio 2010 using its wizards. Everything was working fine until i checked the tables data (also in visual studio server explorer) and none of my updates were there.
using (var context = new CenasDataContext())
{
context.Log = Console.Out;
context.Cenas.InsertOnSubmit(new Cena() { id ...
Hi,
we are building a new web application using Microsoft ASP.NET MVC2 and Entity Framework 4. Although I am sure there is not one right answer to my question, we are struggling to agree a VS2010 solution structure.
The application will use SQL Server 2008 with a possible future Azure cloud version. We are using EF4 with T4 POCOs (mode...
Hello:
I am working on VS2010 C# and I want to add a .dll reference compiled under VS2008; this .dll exists in 2 versions: Debug and Release.
The .dll is not under .NET, COM or projects tabs, so I only have the "browser" tab to add the .dll to the reference.
My question is: How can I indicate to VS to take the release .dll version whe...