Some time ago I have faced very annoying error while developing custom list definitions in sandbox solutions. Every time when I tried to save a file to a library based on my list definition I received an “410 The web page no longer exists” error. Google did not help me(there are some examples of fixes for similar problem, but all of them are talking about Farm solutions), so I tried to fix it on my own.

After spending some time looking at the schema.xml, I found a solution. Everything You have to do is to remove the view responsible for rendering the “Save As” dialog content. After making the modification in schema.xml and redeploying the solution, the “Save As” dialog started to work.

One drawback of the fix, is that the dialog does not look exactly as the original one. It misses few information(logo, fields), but overall functionality works without any issues.

Code to remove:

<View BaseViewID="2" Type="HTML" FileDialog="TRUE" TabularView="FALSE" DisplayName="$Resources:core,File_Dialog_View;"

Hidden="TRUE" Path="filedlg.htm" ModerationType="Moderator">

<Toolbar Type="Standard" />
<FieldRef Name="DocIcon"></FieldRef>
<FieldRef Name="BaseName"></FieldRef>
<FieldRef Name="Editor" TextOnly="TRUE"></FieldRef>
<FieldRef Name="Modified" TextOnly="TRUE"></FieldRef>
<FieldRef Name="FSObjType" Key="Primary" />
<FieldRef Name="FileLeafRef" />


Dialog before the fix:




Dialog after the fix: