This project is read-only.
1
Vote

DataContract Designer not opening

description

The WSSF designer is not opening anymore. It opens the XML all the time. It's only the data contract. The only way to open it is with the right click and open with .. command. Shift F7 always opens the xml and not the designer. Other post suggested to remove a node from the xml (<SubType>) ... I don't have that node in the xml.
 
What can i do to fix it?

comments

marcgh wrote Jul 12, 2011 at 4:18 PM

I created a new data contract. Copied all the model contracts to it, fixed a couple of issues and it worked. It's opening with the designer now.

I would still like to know what caused this to happens. Is this a bug or something else?

guldan wrote Aug 30, 2011 at 9:30 AM

@marcgh had the same problem as you. When i created a new one and copied the contents from the old one into it the designer would work again. What caused the problem in my case was the fact that we had a conflict in the datacontracts file in source control (SVN) it would create >>>>>>>>>>>> .mine text in the xml file. but after removing it the designer broke.

guldan wrote Aug 30, 2011 at 9:35 AM

@marcgh had the same problem as you. When i created a new one and copied the contents from the old one into it the designer would work again. What caused the problem in my case was the fact that we had a conflict in the datacontracts file in source control (SVN) it would create >>>>>>>>>>>> .mine text in the xml file. but after removing it the designer broke.

wrote Feb 22, 2013 at 12:45 AM

Delta0555 wrote Jun 27, 2013 at 8:19 AM

Found another solution!

Open your service .csproj File in a text editor, and look out for the <content> tags.
The ones that won't open up in the Designer will look like this:
<Content Include="MyDataContract.datacontract.diagram">
      <SubType>Designer</SubType>
      <DependentUpon>MyDataContract.datacontract</DependentUpon>
    </Content>
The cuplrit in my project was
      <SubType>Designer</SubType>
Just change it to:
<Content Include="MyDataContract.datacontract.diagram">
      <SubType>Content</SubType>
      <DependentUpon>MyDataContract.datacontract</DependentUpon>
    </Content>
And presto, you have your designer view back! Works also if you cannot open your servicecontract in the designer view.