visual-studio-2008

Can I enable the "Comment out the selected lines" feature for working on text files in Visual Studio?

Can I enable the "Comment out the selected lines" feature for working on text files in Visual Studio 2008 or 2010? I'd like the ability to use that function on files other than normal code related files. When I open a TXT file the comment and un-comment buttons are disabled. Is there a way to change that? Thanks Clarification: I use th...

Project converted from 2005 to 2008 running painfully slow on my box.

When I try to edit a page I start to make changes and the screen freezes. I cannot move the cursor for around 10 to 20 seconds. Its almost as if something is getting updated. Can anyone help with this problem. ...

Visual Studio web tests: Can a coded webtest be run through the Web Test Editor run view?

Hello, Full disclosure, I'm new to Visual Studio Web Tests and coding for them. I've written a webtest; coded in VB; it runs great. Our QA engineer wants to use this script for performance testing; but he wants the nice GUI that comes when you build a WebTest with the VS WebTest Editor and run it. Is there a way to run a coded webtest...

image analysis and 64bit OS

I developed a C# application that makes use of Congex vision library (VPro). My application is developed with Visual Studio 2008 Pro on a 32bit Windows PC with 3GB of RAM. During the startup of application I see that a large amount of memory is allocated. So far so good, but when I add many and many vision elaboration the memory allocat...

How do you force Visual Studio 2008 to generate designer.cs e.g. Whatever.aspx.designer.cs

I have some webforms in an Asp.Net V2.0 generated using Visual Studio 2005 using Web site technology Want to import them in to Visual Studio 2008 set to v3.5 (Asp.Net MVC) - where I use Project technology I'm using Add > Existing Item - Which brings in Whatever.aspx & Whatever.aspx.cs There is no Whatever.aspx.designer.cs to import H...

Where is the Code Analysis (FxCop) function in VS2008?

I've read that FxCop is integrated in to Visual Studio 2008 out of the box as "Code Analysis". I can't find how to run the analysis though. Where is the "Run Code Analysis" function? ...

Is there a size limit on code snippets in Visual Studio 2008?

I created a long code snippet with Snippet Editor. After saving I can see and use it within Visual Studio, however, the code is suddenly trunctated after about 120 lines and there appears some garbled text at the end. Is there a size limit to code snippets? If yes, is this a visual studio, or a Snippet Editor "feature"? ...

display the image using button in .net?

how can i display the image beside the button in visual basic express 2008?? ...

deploying vb.net app with database on server

I have an application that accesses a sql server 2008 database. The server and database is stored on my local harddrive and I would like to learn to scale this up to having multiple users in our office access the application which I will i deploy on a server. For now the database will stay on my pc until I am ready to put it on a dedicat...

Can I automatically insert all members of a object somehow in Visual Studio?

I like to insert all members of a object automatically, so I dont need to type them (or even click them). Ctrl+J gives me the dropdown, but I like them all in code with a default value, MyObject.Member1=0; MyObject.Member2=""; MyObject.Member3=0; Any Add-In or existing shortcut that can help me with that? /Edit : I like to have the...

Can I use Visual Studio 2010's C++ compiler with Visual Studio 2008's C++ Runtime Library?

I have an application that needs to operate on Windows 2000. I'd also like to use Visual Studio 2010 (mainly because of the change in the definition of the auto keyword). However, I'm in a bit of a bind because I need the app to be able to operate on older OS's, namely: Windows 2000 Windows XP RTM Windows XP SP1 Visual Studio 2010's ...

How to replace tokens in the master page in asp.net mvc?

I have a master page in my asp.net MVC project, which has code like this: <div id="menu"> <ul> <li><a href="#" class="current">home</a></li> <li><a href="#">add image</a></li> <li><a href="#">contact</a></li> </ul> </div> Depending on what page I am on, I'd like to move the c...

How to conditionally add a bit of CSS to a page in ASP.NET MVC?

I have a CSS stylesheet defined in the Master Page of my project. On one of the pages/views that inherits from the Master Page, I need to add another CSS stylesheet (I could also add it inline, though I'd rather not). However, how to do this escapes me. Is this even possible? ...

How to generate just the URL of the Controller method in ASP.NET MVC

So Html.ActionLink("Report", "SendMail", "Misc", new { id = Model.ImageID }, null) will generate a nicely formatted link. <a href="http://localhost:3224/Misc/SendMail/5"&gt;Send Mail</a> How can I generate just the URL of the link, short of parsing the output of Html.ActionLink? ...

How to handle relative paths in ASP.NET MVC?

I have a master page which references a style in the following manner: <link rel="stylesheet" type="text/css" href="../../Content/Style.css" /> All my pages inherit from this master page. And this works well when the URL is http://www.domain.com/home/details/5, however the URL is http://www.domain.com/home/create, then, of course, St...

deleting registry key, using Visual Studio 2008 setup and deployment project in windows 7

I have created a setup and deployment project in Visual Studio 2008 Professional. I'm using Visual C++, and in it I have two exe files which run under custom actions. One is running in commit and other in uninstall. Purpose is to add a registry key at install time and remove it at uninstall. It works perfectly on Windows XP but when I ch...

microsoft visual studio 2008 builds keep failing

My builds keep failing with the following error Project : error PRJ0002 : Error result 31 returned from 'C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\mt.exe'. I find that i have to kill some process called mspdbsrv.exe description:"microsoft program database" Then rebuild the entire project. This is annoying. Is there a perma...

Silverlight and WCF Ria Services

Hi guys, I've created a new Silverlight 3 Business Application with VS 2008. The creation has completed correctly. When I try to open the xaml, it opens but in meanwhile this error is shown: Failed to load metadata assembly System.Windows.Controls.Data.Input.Design, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364...

is it possible to make visual studio raise stackoverflow exception?

I was trying to write something that confuses the .net reflector, i decided to write lots of nested classes. this happened: ...

how to solve unhandled exception error when using visual C++ 2008?

Hi, Could someone please help me to solve unhandled exception error when using visual C++ 2008? the error is displayed as follow: Unhandled exception at 0x00411690 in time.exe: 0xC0000005: Access violation reading location 0x00000008 Some details: - tm 0x00000000 {tm_sec=??? tm_min=??? tm_hour=??? ...} tm * tm_sec CXX0...