Right-click on the VS 2010 designer shows error


I have downloaded the latest source code and built the project in Main-2010 folder. I installed the created vsix file.
I opened VS2010 but could not find new project template. I then created a new class library project and added a new item to it using teh Configuration Section Designer item. I am able to access the toolbox items. But when I insert a configuration element and right click on it to add attributes, I get the following error and I am not able to do any further.
  1. Error on right-clicking on a configuration element or right-clicking on the "Configuration Section Model" item of the Configuration Section Explorer view: "Value does not fall within the expected range"
  2. Error on right-clicking on empty area on the designer or right-clicking on any child items of "Configuration Section Model" item of the Configuration Section Explorer view: "The parameter is incorrect (Exception from HRESULT: 0x80070057 (E_INVALIDARG))"
    I am not able to do anything further. Is this a configuration error or a known problem?
    To Add, I have VS2008 also installed on the same PC and the configuration section designer is working fine in VS2008.

file attachments

Closed Jun 24, 2011 at 2:11 PM by andym1978
... and I reopened the wrong issue. I should have had my morning coffee first. Closing again...


peledkfir wrote Jul 20, 2010 at 10:36 PM

Got the same problem. I googled about the HRESULT. it is FileNotFoundException. I opened fusionlog and even tried to debug but I didn't found the missed dependency. I'm guessing it is a call for bad resource.. Waiting for final version 2010 :S

zhch186 wrote Oct 8, 2010 at 1:50 AM

Same problem here. Visual Studio 2010 Ultimate, Windows 7 Ulitima x64

vukashin wrote Oct 21, 2010 at 7:52 AM

Same problem here. Visual Studio 2010, Windows Vista x64

pcapiral wrote Nov 16, 2010 at 8:25 PM

I encountered the same problem as well. I wondering that my csd projected created in VS2008 is causing problems. Looking at the source of my .csd file I see a reference http://schemas.microsoft.com/VisualStudio/2010/DslTools/Core if that has anything to do with this problem.

idiz wrote Nov 22, 2010 at 1:52 PM


I am also using the VS2010 version and I also encounter the right-click problem in the Designer. Been having this problem for every VM that I test it on. I was about to give up using the tool because of the error, so I decided to try it for the last time on another VM. This time the CSD tool worked perfectly and I can see/use the context menu after a right click. I don't know why it worked in this other VM because all of the VMs I tested it on came from the same image.

Does anyone have any idea on what's causing this error? Do you have any suggestions on how to fix this?


duckie wrote Dec 5, 2010 at 7:19 PM

Same problem here

Coder87 wrote May 13, 2011 at 6:58 PM

Same problem. I get "Value does not fall within the expected range" whenever I right-click anywhere on the diagram. I get "The parameter is incorrect (Exception from HRESULT: 0x80070057 (E_INVALIDARG))" when right-clicking on anything in the Configuration Section Explorer. Makes it impossible to use the tool.
Everything worked fine in VS 2008. I'm now running VS2010 Premium on Win7 x64.

andym1978 wrote May 17, 2011 at 4:16 PM

I fixed this issue by creating a new DSL solution (Using the VStudio wizard) and carefully moving the old files into the new projects. Now, the designer works perfectly. I spent hours trying to fix the existing project without any success. Recreating the whole solution and moving the files in took only an hour.

To fix the file generation problem for solutions containing "solution folders", I made changes to 2 files, which I am attaching to this post.

Atrejoe wrote May 17, 2011 at 6:48 PM

Could you maybe also attach the binaries/installer? I'm having trouble opening the DSL project.

andym1978 wrote May 19, 2011 at 6:16 PM

Here is the whole solution with the updates that fixed these issues. You can use it to build a vsix package that will install a working CSD (working right-click, solution folders support, and item templates now visible). The primary fix in this upload is a rebuilt VsPackage project file. Let me know if this works for anyone. I hope I didn't make changes to my system throughout this process that will cause it to only work for me. Also, perhaps someone might want to take the time to figure out what attributes in the original project file caused the right-click issue. Then, the codeplex version can be fixed.

andym1978 wrote May 19, 2011 at 6:18 PM

Here is the compiled VSIX package created from the source files I posted. I hope this works for people.

dorong wrote Jun 9, 2011 at 11:18 AM

andym1978: Your vsix was installed flawlessly. I didn't use the designer for more complex tasks yet (like custom types, validators or converters), but for the basic tasks it works like a charm. Many thanks for you efforts.

Atrejoe wrote Jun 13, 2011 at 8:47 AM

@andym1978 Sorry for the late reply, but your fix works like a charm! Thank you very much.

andym1978 wrote Jun 23, 2011 at 10:48 PM

Until a release is posted, you can download the VSIX from the attachments section at the top of this post.

andym1978 wrote Jun 24, 2011 at 2:08 PM

I have rebuilt the entire project file to resolve this issue. Hopefully, this should resolve the issue for everyone. Download the latest source code to compile the VSIX (until a build is released).

** Closed by andym1978 6/23/2011 2:46 PM

andym1978 wrote Jun 24, 2011 at 2:08 PM

I shouldn't have closed this yet. The 1.x versions have not yet received this fix (only 2.x). I will try to have that ready soon.

andym1978 wrote Jun 24, 2011 at 2:38 PM

Adding the correct VSIX file attachment. Previous one was missing MSPL.txt.

andym1978 wrote Jun 24, 2011 at 5:48 PM

Latest build containing a fix for project locating in certain scenarios...