visual-studio-development-forums,visual-studio-unit-testingRelated issues-Collection of common programming errors


  • msdn
    visual-studio-development-forums visual-studio-extensibility
    Hi I’ve created a custom project-typ. When I click on “add new Item” from the context menu, a messageboc pops up telling me “Visual studio has encountered an unexpected error”. In the python-project there are project Item templates for all allowed file types, such as text files. Is that the key ? Must I add project item templates for each file type I want to support ? If so , how / where do I register them ? Kind regards

  • msdn
    visual-studio-development-forums visual-studio-extensibility
    Hi,I get  “Unable to find common parent for view fixup.” assert exception from the “GetParentForRelationship” method (FixupDiagram class) when I am using unmapped swimlanes as parents for my tool elements.To explain the problem I created the following example project (called swimlane) :1) Creating two unmapped swimlanes (swimlane1 and swimlane2)2) Creating classes and derived classes:    AllElements -> ElemForSw1                    -> ElemForSw23) Creating the model : 

  • msdn
    visual-studio-development-forums visual-studio-diagnostics-debugger-profiler-intellitrace
    I posted this also on Infragistic’s forum, but am hoping someone here has a quicker answer.To help troubleshoot an elusive bug in my program, I thought having the NetAdvantage Silverlight source might help.So, I downloaded the 11.2 SR source and symbols and unzipped to folders, for brevity, say “source” and “symbols”. I then created the new assemblies by executing BuildAssemblies.bat. Then I opened the VS2010 project’s Solution Explorer and removed all referencesto Infragisti

  • msdn
    visual-studio-development-forums visual-studio-setup-and-installation
    I’m at my wits end with this. I have VS2012 Premium w/ Update 1 installed – never had any problems.  Running Windows 7.I try and install Update 2, and it says that it successfully installed. Now, when I go in the IDE, and try to run/debug any solution .. I get an error basically saying that the debugger cant start, and that it usually indicates a corrupted installation. When I go to Help | About… it still says Update 1. SO it is obviously not installing it properly or fully.I can onl

  • msdn
    visual-studio-development-forums microsoft-office-for-developers-forums visual-studio-tools-for-office-vsto
     I have a word add in works for more then 2 years, more then 200 users(windows xp+office 2003) are fine, 2 users have these problem:Inner Exception SourceofficeInner Exception MessageError HRESULT E_FAIL has been returned from a call to a COM component.Inner Exception Stack Trace   at Microsoft.Office.Core._CommandBars.Add(Object Name, Object Position, Object MenuBar, Object Temporary)   at ffi_Client_Addin_ofc2.modSharedCode_Addin_Only.fun_Create_AddIn_CommandBarButton(Object prm_Application, C

  • msdn
    visual-studio-development-forums visual-studio-setup-and-installation
    HiI have Microsoft Visual Studio 2008 Professional Version 9.0.21022.8 RTM Microsoft .NET Framework Version 3.5 SP1. Whilst attempting to install silver light tools the installer requested that vs sp1 be installed before the installation could take place. I exited the installation and after reading the blog at: http://michaelsync.net/2008/03/07/tipstricks-silverlight-2-beta-1-tools-for-visual-studio-2008-installation-error I followed the advice and removed all prior installation’s of Silverlight

  • msdn
    visual-studio-development-forums microsoft-office-for-developers-forums visual-studio-tools-for-office-vsto
    I’m tring to port a VBA code to VSTO.In the VBA the Find method is used. On VSTO i did the same thing, but the problem is that the returned value is not the same.I am using something like this Range(“C2:D2”).Find(“”, ..) and returns “C3” when it should return “C2”. How come the result is outside of the range given? I also modify some value of the FindFormat    With Application.FindFormat        .WrapTe

  • msdn

  • msdn
    visual-studio-development-forums visual-studio-extensibility
    Hi,We are seeing a strange behavior and would like to know if its expected or a bug.We have a solution with SISS Projects on it. The complete solution is source controlled.Now, whenever I press on Save button while SISS Project is selected in solution explorer, QueryEditFiles() is getting called. I would expect only QuerySaveFiles() to be called at this moment and that is what happens for allother projects. Then why QueryEditFiles() is called for SISS project? Is it a bug in VS2010?Thi

  • msdn
    visual-studio-development-forums testing-with-visual-studio-test-manager-mtm
    HelloI installed test controller.I try to register test controller with Team project Collection.But at the configuration, it does not work.In Logs i have this errors:1.(QTController.exe, PID 820, Thread 5) Received exception trying to load controller configuration file: Microsoft.VisualStudio.TestTools.Exceptions.EqtException: Test environment ‘ABC.0.kl’ associated with team project ‘ABC’ could not be loaded, as the testcontroller is not associated with a team foundation server.   at M

  • msdn
    visual-studio-development-forums visual-studio-unit-testing
    I’m reposting this question from: http://social.msdn.microsoft.com/Forums/windowsapps/en-US/74da9e17-47f4-4886-b607-8656a2822b80/windows-store-app-unit-testing-a-usb-device#fa693061-1c74-450e-a3a9-c9cc3074ad19I’m writing a USB device API for Windows Store Apps that uses Windows.Devices.USB API from Windows 8.1 to connect and communicate withthe custom USB device. I’m using the Visual Studio 2013 dev preview IDE. The following function in the library is used toconnect to the USB device. (Simplifi

  • msdn
    visual-studio-development-forums visual-studio-unit-testing
    I have a fairly complex solution with some c (/CLR combiled) projects and some c# projects, referencing each other. Half of the Projects get a strong name. While I try to generate moles for 2 of the assemblies to be used in one test projekt I get a System.UnauthorizedAccessExceptionwhile mole tries to access the  \obj\Release\Moles\vd\m.g.snk file.Here are my .moles settings for the two assemblies:<Moles Diagnostic=”true” xmlns=”http://schemas.microsoft.com/moles

  • msdn

  • msdn

  • msdn
    visual-studio-development-forums visual-studio-unit-testing
    Hello, I am wondering how I can skip a line (or lines) of code when running under the developer? In other words…I want to skip this line when I am running under the developer: return; But when I compile it and run the app outside VS 2008 I do not want that line to be skipped.

  • msdn
    visual-studio-development-forums visual-studio-unit-testing
    I have a simple VS2008 project with unit tests. Adding this to a Team Project on TFS 2010 RC1. I start a build. Without unit tests it builds fine. With unit tests I get:Other Errors and Warnings1 errorTF270015: MSTest.exe returned an unexpected exit code. Expected ‘0’, actual ‘1’.Does anyone know what this error message is or how to get unit tests working with VS2008 in TFS 2010 RC1?

  • msdn
    visual-studio-development-forums visual-studio-unit-testing
    I am working on a SharePoint project happily working away when I started getting some strange errors, including this, when I try to run some unit tests. It just stops building and running and at the bottom of Visual studio you see the message:”Unexpected error detected. Check the TestsOutput Pane for details.In the Tests Output pane is the message”IUnitTestStorage.Open should be called before operation can continue.Any help anyone? the code still builds and runs on another machine, and

  • msdn
    visual-studio-development-forums visual-studio-unit-testing
    I have downloaded visual studio 2011 beta. According to release documentation it should support nunit, xunit. I have installed nunit package from nuget and a sample too. Do I need anything else for it to work? It doesnt seem to work now. When I click onRun All in test explorer. I get an error “unexpected error detected. check tests output pane for details” Please help.

  • msdn
    visual-studio-development-forums visual-studio-unit-testing
    hi,I have a website which is migrated from VS 2005 to VS 2008. I have added appropriate reference of UnitTestFramework.When i try to add a unit test, the website goes unresponsive for a while and then throws an error saying ‘ Unexpected error while displaying Create Unit Test wizard. Rebuild the solution and try again’ But rebuild does not help.I manually added one test project. But when i try to add unit test, the Creation wizard comes up with ‘Directory not found’ error each time it comes up w

  • msdn
    visual-studio-development-forums visual-studio-unit-testing
    HiWhen I use the option in VS 2010 to limit the number of tests results (Tools->Options->Test Tools->Test Execution->”Limit number of old Test Results to:”), it seems to only partially work. The old “trx” files are removed to keep the total numberwithin the limit but the corresponding folders for each of the old test runs is retained. Is there a reason for this or is it a bug?Many thanksSimon 

Web site is in building