visual-studio

How to create the vsmdi/testrunconfig file when importing a Visual Studio test project?

When I add an existing test project, my solution lacks the vsdmi and the testrunconfig files. How to create it? ...

Can a reference to a netmodule be added in Visual Studio?

I am trying to use code written by someone else in my own project. Their code was shipped as a .netmodule file. It seems that I have to build my project from the command line using the /addmodule option. Is there any way to do this in the Visual Studio IDE? ...

Best way of making an argument optional for a C# webmethod

What is the best way of supporting optional data passed to a C# function? I have web service function in .Net which defines 5 arguments: [WebMethod] public string UploadFile( string wsURL , byte[] incomingArray , string FileName , string RecordTypeName , MetaData[] metaDataArray) The code of this ...

Troubleshooting the built-in Visual Studio 2008 WebDev.WebServer.EXE

How do I begin to troubleshoot Visual Studio 2008's WebDev.WebServer.EXE? I'm trying to run the default ASP.NET MVC project. And I keep getting this message from Firefox: Unable to connect Firefox can't establish a connection to the server at 127.0.0.1:52589. * The site could be temporarily unavailable or too busy. Try again in a...

Can you customize the Publish command of Visual Studio?

Hi Guys, I use the Publish command in Visual Studio to deploy a web application to my IIS server. It is very convenient but I have several issues with it, such as: It does not deploy the Crystal Report files (*.rpt) files It deploys the web.config file and overwrites the server specific settings Is there any way that I can custo...

Windows Setup Project without .net dependency

I have made a custom dll for my setup project. My dll is very simple, registering few services, not CLR or any 3rd party lib dependent. Have statically linked with msi.lib only. I have removed the .net and windows installer prerequisite requirements from the setup project. My setup fails on macines not having .net framework..? As I hav...

visual studio 2005 designer moves controls and resizes Form

When i open a form in visual studio 2005 (c#) the designer automaticaly resize the form and move/resize controls without touching the designer at all. The source file is changed and when i close the designer i'm asked to save the *.cs file. I tried to look into visual studio options without any success. any ideas? visual studio setup or ...

Can not find project web item (ERROR)

I am using SmartPart (http://www.codeplex.com/smartpart) to add web parts to SharePoint. When I open the *.ascx file with visual studio it doesn't display the design of the control showing the error however it runs well when it is added to share point. But I need to see the design to be able to add controls through tool box visually not ...

Unit testing : nice to have feature question

I am testing a web service using VS2008 built in Unit testing , which btw isn't 1/2 bad. the webservice returns a complex datatype... What I would like to do now... is add code to serialize the return object, then display it as xml using internet explorer or ff (both of which show nicely formatted XML). What I really want to know is.....

MSVCP90.dll not found?

Hi, in my project if compile project in release, it asks me MSVCP90.dll. if it is debug, it does not... have you ever met such a situation? and do you know why this .dll is desired? or what configuration makes it to be desired? thanks for any advice.. ...

Web Application Project, and App_GlobalResources

Hi All, I currently have a C# Web Application Project with a multitude of pages as well as their corresponding codebehind files (aspx, cs, designer.cs). When I open the dll created during the build process and open it in the visual studio object explorer, I can clearly see all of the codebehind. Within the same project I have a number ...

How to compile a 64 bits version of my dll?

Hi all, Probably a dumb question: I have a WinXP 32bits desktop that I use to compile a (32 bits) dll with Visual Studio 2005/Intel COmpiler 10.1. I would like to generate a 64 bits version of my dll. How to do that? Answers related to Visual Studio are interesting, but those addressing the Intel compiler side of things get extra browni...

Folder created by MSM not being removed on uninstall.

Hi I have an .MSI file created using VS2008. This .MSI is composed of a collection of merge modules, each of which basically installs one component of our application to its own folder. When I try and uninstall the .MSI one of the subfolders created by a particular merge module is not removed, even if the application has not been run. ...

Visual Studio keeps resizing my form without me telling it to, help!

I am running visual studio 2008. Every so often when I go to the designer view of one of my forms, the designer will make the form slightly larger. This happens on forms where I have a minimum size. I want the form to be the minimum size so why does it keep adjusting the size on me? ...

Custom controls derrived from HtmlControl

Can custom controls derrived from HtmlControl be displayed in the toolbox? I have successfully got some WebControls in the toolbox but cannot get this one to display. I am inheriting from System.Web.UI.HtmlForm. Thanks ...

Does anyone know of a good diff tool for C#?

I'm looking for a diff tool that can analyse my code and tell me what has changed on a construct by construct basis. For instance, if I cut and paste a method from the start of my file and put it at the end but leave that method unchanged, I don't want it flagged. If however I insert a line of code or change something inside that metho...

How to start/stop local SQL Server service directly from Visual Studio?

I believe like many developers I have both Visual Studio and SQL Server installed on my PC. Since I use the PC for various tasks not just for development, SQL Server is by default stopped until I need it for another session of development. Currently I go directly to Administrative Tools->Services to start/stop SQL Server. Not that it bo...

Excluding Website Bin directory from TFS2008

I am currently developing a Web Site (not a Web Application) in VS2008. I have a problem however with the way that TFS2008 handles the DLLs in the BIN directory. I do not want them being checked into TFS - this prevents other developers on the team from building the website as TFS will only allow checking them out exclusively. I have ...

Visual Studio 2008 locks dll in bin folder and doesn't let go of it

Hi, I am working on a solution consisting of 8 .NET projects. Since I am practicing TDD, I have to re-compile my solution very often. Lately I have been getting the following error about every second time when trying to compile: Error 2 Unable to copy file "obj\Debug\Zeiterfassung.Tests.dll" to "bin\Debug\Zeiterfassung.Tests.dll...

How do I prevent my .Net dll from being added as a reference?

Say I've written a .Net dll and want to distribute it with my application. How can I prevent any user with the savvy to install a copy of VS from adding a reference to this dll to their own applications? ...