visual-studio-2008

VS Error: "You must choose a publish location that is different from the source Web application"

I'm trying to publish my WCF service to a server on my network: http://machineName/ProjectName The most recent (first) version of the service is already there as I did this no more than 15 minutes ago. I then made some changes to the service's web.config and one setting in IIS and now I can't publish the service anymore, getting th...

Visual C++ 2008 - breakpoint cannot be hit

I am trying to dissect a legacy application through debugging, but I can't get the breakpoint to hit in certain places of the application. The application has a c# GUI frontend and a c++ backend. I am trying to put a breakpoint in a c++ project of the solution. There are a couple of c++ projects, but I cannot set a breakpoint in one of...

The correct way to implement ThreadPool.RegisterWaitForSingleObject

Hi, I am trying to use ThreadPool.RegisterWaitForSingleObject to add a timer to a set of threads. I create 9 threads and am trying to give each of them an equal chance of operation as at the moment there seems to be a little starvation going on if I just add them to the thread pool. I am also trying to implement a manual reset event a...

Visual Studio Cannot Find CIODMLib Project Reference On Windows 7 64 Bit Machine

I am currently in the process of upgrading our developer environment to Windows 7 64 bit. I have a C# project reference to CIODMLib which is a COM reference to "C:\windows\system32\ciodm.dll" on Windows XP. For some reason, that COM component does not exist on Windows 7 even though the dll is there. I've already verified that Indexing S...

How to solve problem " mt.exe : general error c101008d" ?

Hi, I often have this problem even when I build a new C++ project and try to build a release file. I use Visual studio 2008. One thing that may cause this problem is my code is saved on the server disk, not on local hard disk. mt.exe : general error c101008d: Failed to write the updated manifest to the resource of file "..\Release\PG...

Third-party referenced dll not been copied to build out.

Hi, I have a thirdparty .net dll being reference and used by my dll/class library project “A”. My console app project “B” references project “A”. My problem is the thirdparty dll is not being copied to the build out for console app project “B”. What’s the problem here? The thirdparty dll ref’d in my dll/class library is set to LocalCo...

VC++ projects keep being out of date

I have a solution which contains both C# and C++/CLI projects. My problem is that the C++ projects are always out of date, and the IDE keeps asking if I want to build them. There are some custom build steps, which copy some files here and there, and I suspect that might cause the issue (?). I'd be fine with disabling up-to-date check f...

Format a string using a string pattern

Hello, I have a displayFormat pattern "$###,###,###;-$###,###,###;#"( it can be different too) and I want to reformat the value in the AspxTextbox after deleting the ',' on GotFocus and LostFocus events by calling the following JavaScript function : function TextBoxFormat(ctrl, e, displayFormat, charactersToRemove) { var value = ctrl....

Does this function release resources properly?

I'm trying to make sure that I don't leave any loose ends open in my application and am concerned about a few but might get my answer from this one. I've "overriden" some functions so that way I can try and keep all the resources as clean and free as possible. So in this instance, I have a function called ExecuteReader which returns a ...

unable to compile Web service project with VS 2008

Hello, I try to compile with VS 2008 old C# Service project based on WSE where DIME attachments are used: The compiler does not find: using Microsoft.Web.Services.Dime I just installed WSE 3.0. Even that does not help to find Microsoft.Web. What is the replacement for DimeAttachment class? thanks Arman EDIT Well the answer w...

MSBUILD : error MSB1008: Only one project can be specified. Switch: Education

Why am I getting the following Build error? C:\WINDOWS\Microsoft.NET\Framework\v3.5\msbuild.exe C:\Code\EduBenesysNET\EduBenesysNET\EduBenesysNET.vbproj /t:publish /p:Configuration=Release /p:Platform=AnyCPU /v:detailed /p:PublishDir="\\BSIIS3\c$\DATA\WEBSITES\benesys.net\benesys.net\TotalEducationTest\" /p:InstallUrl="https://www.bene...

How can the Visual Studio 2008 Build Command Line be seen?

When I am in Visual Studio I hit the F5 to do a build. Is there a way to see the MSBUILD command line being executed? Inside of Visual Build Pro the build fails but when run from Visual Studio 2008 (hitting the F5) it succeeds. Here is the command line used inside of Visual Build Pro: C:\WINDOWS\Microsoft.NET\Framework\v3.5\msbuild...

Hide AjaxControlToolKit item in designer

I'm sure this isn't specific to the AjaxControlToolKit, but it is what is causing me issues. I've created a basic user control that essentially wraps a textbox and MaskedEditExtender because it will often be used on different pages. The designer of the control looks fine, but when I include it in a page, I see a box for the MaskedEditExt...

Stop VS2008 Unit Tests from creating loads of files?

After years of faithful nUnit use, I'm having a fling with the Visual Studio Unit Testing framework thats built into VS2008. Apart from the crushing guilt ; ) ... one of the issues is that 'VSTest' creates a file and a folder every time you run tests, and those files ('Visual Studio Test Results File') and folders really build up over t...

Visual Studio 2008 - Why does the vshost.exe have a full path limit of 126 characters?

Based on a previous question I posed (see here) and the following msdn threads, why does debugging fail when the full path of the vshost.exe is >= 127 characters? To reproduce the issue create a project with a full path (directory + assembly name + vshost.exe) that is >= 127 characters. Then press F5 to start debugging and the program ...

How do I consume a webservice running on localhost in a project located on a vm?

I am running a webservice on my development box and I need to test that webservice in a virtual machine that is running on the host(aka the development box). The webservice on the dev box is running at: http://localhost:8100/ws_name.asmx. From the VM I have unsuccessfully tried things like: http://host_machine_ip/ws_name.asmx http...

How to use boost::error_info correctly?

I'm trying to following the examples on this page: http://www.boost.org/doc/libs/1_40_0/libs/exception/doc/motivation.html The minute I try the following line: throw file_read_error() << errno_code(errno); I get an error: error C2440: '<function-style-cast>' : cannot convert from 'int' to 'errno_code' How do I get this to work?? ...

How to easily switch reference paths for build?

I have a project that is for a piece of software. So I reference DLL libraries for that software in my project so I can code and make some nice plugins and extensions for the software via their API. The problem is that the software has many kinds of versions: Enterprise, Lite, version 1.6, version 1.7, version 2.0, etc. If I want my pro...

Visual Studio C#, WPF controls

Hi guys. I'm making a simple program in Visual Studio C# for school and I'm using the WPF Controls. I'm making some type of monthly report that I need to visualize in a table with the columns that represent the days. The problem is that I don't know which control to use. I tried with with the ListBox but it does not give a good result ...

'Label' does not exist in the namespace 'System.Windows.Controls'

Need some help with a typically vague Visual Studio 2008 error. Error: Error 3 The type or namespace name 'Label' does not exist in the namespace 'System.Windows.Controls' (are you missing an assembly reference?) Relevant code: internal System.Windows.Controls.Label DescriptionLabel; I believe it's something to do with Silverlight...