visual-studio-2010

How to Create a Enitity Framework Project?

OK, so I feel dumb for asking this... but I am stumped. I can't seem to create a project/unit for using the ADO.NET Entity Framework. I looked for a project type that looked like it would match, but no go (closest I could find was ASP.NET Dynamic Data Entities Web Application). I also tried to just add a unit (like you do for Linq-to...

The provided URI scheme 'file' is invalid expected 'http'

I created a small Silverlight 4.0 / RIA Services application and tested it. I developed the app on a machine at home and needed to move it to the production domain at work. I did this by pushng it to the source repository and then cloning it to a dev machine at work. It builds without an error in both locations. The problem occurs wh...

Post build script returning errorlevel 255

I currently have the following script as post build on a project: if $(ConfigurationName) == "Debug (x64)" || $(ConfigurationName) == "Release (x64)" (goto :x64) if $(ConfigurationName) == "Debug" || $(ConfigurationName) == "Release" (goto :x86) :x64 copy "$(SolutionDir)References\x64\System.Data.SQLite.dll" "$(TargetDir)System.Data.SQ...

Model-First database generator freezes my Visual Studio

I'm new to the Entity Framework, and I know this is not suppose to happen, but maybe it is a known issue in the community so I thought I'd ask. I created my model with 2 entities. When I wanted to create the database tables Visual Studio froze on me. I ran the script myself but then I needed to modify an attribute so it'd take null valu...

View GridView contents in Visual Studio 2010 and/or debugger

Hello, I am trying to inspect the contents of a GridView on a postback to debug some issues with dynamic columns and controls. Is there an easy way to view the contents of a GridView in the VS 2010 debugger, similar to the DataSet Visualizer (mouse over a DataTable, click the magnifying glass)? I have clicked through all of the variou...

Compiling OpenCV on Windows 7 64bit

I'm trying to get OpenCV working on Windows 7 64bit. I tried installing the vs2008.exe installer bundle from the OpenCV website but it produced errors when trying to compile, I Google'd these and it appears that installer is no good for 64bit versions of Windows 7, bugger. I've tried having a crack at compiling using CMake, but really...

VS2010 build times Win XP vs. Win 7

Hello, I am trying to determine which OS is the best one for VC++ VS2010. I know that Microsoft recommends Win7 x64 however I did some testing and the results are quite confusing: Build times (single threaded compilation on q9650 CPU) of reference VC++ project under different OS: Win XP 32bit: 00:02:50.95 Win 7 32bit: 00:03:09.99 Wi...

View entire check in history TFS

Have been searching all over the internet but struggling to find my answer to this simple question. I'm using TFS with VS 2010 and all I want to do is view the check in history NOT just for a single file. That's helpful when I need to use it, but I want a bigger history so I can just see EACH check in and what comments I put next to ...

Visual Studio 2010 Project on shared folder: fatal error C1033: cannot open program database

I am running Windows 7 inside VMWare on a Mac as I am working on a cross plattform project. I want to keep all my plattform independent files in the same folder - that's why I want to organize everything in a folder on the mac and share it with windows that's running in the VM. When I try to compile the project in the shared folder, I ge...

Quickly navigating through an ASP.NET MVC app in Visual Studio

I spent a fair bit of time developing Rails apps in VIM with an amazing plugin called Rails.Vim Whenever I wanted to navigate to a Model I would hit: esc :Rmodel topic[enter] to find the topic model. In this mode tab completion works so I could hit :Rmo[tab] to[tab][enter] (for an added bonus :RSmodel topic[enter] would split the w...

ASP.NET Web Form on SharePoint

Heh guys, I would like to create and deploy an ASP.NET web form on SharePoint server which can create document in SharePoint list (or library). Since I'm not experienced in both these technologies so would appreciate if someone guides me to the right tool. Should I use Visual Studio or SharePoint designer ? Also, I was reading an articl...

Different Javascript and CSS for Release build VS2010

I would like to have my release build use the minified version of css/javascript 'A' and the debug build use my uncompressed version of css/javascript 'A' is there any way I can do that on and ASP.Net page? Essentially I am lazy and don't want to have to change references everytime I do a publish. Thanks in advance. ...

Why do I get a blank form when I debug in C#?

i just got rid of all my compiler errors. One of the problems was that I accidentally renamed the visual form itself instead of one of the individual text boxes on my GUI. When I went to change what I had messed up in the code, it seemed to be working again. However, whenever I hit F5 to debug, I get a smaller, blank window as my GUI, an...

Not all variables appear in Locals and Autos window in Visual Studio 2010

Hello everyone! I write some custom apps for AutoCAD in VS2010 in VB.NET. Two days ago something went wrong with "Locals" and "Autos" debug windows. When i step from line to line while debugging using F11 key, no variables that are being created during program run appear in these windows. I've tested the same project in VS2008 and everyt...

Searching for text in an Object watch window in visual studio

Hi, I am using visual studio 2010. I have set a breakpoint and added a watch on a complex object with very deep hierarchy. I was wondering if there was any quick way to search this object tree for a particular string I want. Either as a property/value/method etc. In other words, I just want to say "Does this object have anything like "F...

WS2010 profiler windows form client issue

Hi, My solution has a windows client and a WCF service. For profiling I want to start the WCF service as it is started when I run the solution starting the windows client. The profiler let me choose the project to start, I choose my windows client ... but it does not start also the WCF service. Do I miss something? ... or I just n...

Show child Windows form in the status bar of the parent window

In my project i have one parent window form with one menu bar and one status bar. that is what i want is: when i show the child form to see in the status ber an icon relative to the child window. How i can do that? And if that can't be how i can see an icon in a task bar? Please if anyone can assist me on this. ...

Profiling line-by-line in C++

Hey, I have a C++ program I am trying to optimize. Since I want it to run fast, I am not using a lot of function calls. Most profiling tool I have seen can give you profiling info in a function-call resolution. However, I would like it in a line-by-line resolution. Is there some option like this? I am using Visual Studio 2010 on Windo...

Is it possible to make ClickOnce installer download Access Database Engine ?

I'm developing an app that uses this as a database Provider. My connection string starts with "Provider=Microsoft.ACE.OLEDB.12.0;". I doubt the customer will have it installed so I can either tell him to download it (which I prefer to avoid) or make my installer download it for him. So I'm wondering if there is a way to make a ClickOnce ...

What are the settings in Create New Test Wizard of VS2010?

Please explain the meaning of the marked red section in the screenshot below. All helps are very much appreciated! ...