Note that there are some explanatory texts on larger screens.

plurals
  1. POCS0012: The type 'System.Xml.IXmlLineInfo'
    primarykey
    data
    text
    <p>I have an .aspx page (using MVC 2)</p> <p>When i'm trying to make an actionlink i get an error (you can see below). This code worked already, but since i updated my project (it's a silverlight project) to .net 4.0 it gives me that error..</p> <p>Error:</p> <pre><code>CS0012: The type 'System.Xml.IXmlLineInfo' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Xml, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'. </code></pre> <p>Code:</p> <pre><code>&lt;ul&gt; &lt;% foreach (var item in dossier.Flows){%&gt; &lt;li title='&lt;%=item.Name %&gt;' &gt; &lt;%if (item.Name.Length &gt; 30) item.Name = item.Name.Substring(0, 30); %&gt; &lt;%= Html.ActionLink(item.Name, "Index", "Main" , new { token = Model.Token, dossiersId = dossier.Id, usersId = Model.usersId, flowsid = item.Id }, null)%&gt; &lt;/li&gt; &lt;%} %&gt; &lt;/ul&gt; </code></pre> <p>someone who knows what to do? or had this problem before and fixed it?</p> <p>Fixed it on this way:</p> <pre><code>&lt;ul&gt; &lt;% foreach (var item in dossier.Flows){%&gt; &lt;%-- &lt;%if(item.Name.Length &gt; 20) %&gt;--%&gt; &lt;li title='&lt;%=item.Name %&gt;' &gt; &lt;%if (item.Name.Length &gt; 30) item.Name = item.Name.Substring(0, 30); %&gt; &lt;a href='&lt;%=item.IntranetLink %&gt;'&gt; &lt;%-- &lt;href&gt;&lt;%= Model.IntranetUrl %&gt;&lt;/href&gt;--%&gt; &lt;%= item.Name %&gt; &lt;/a&gt; &lt;%--&lt;%= Html.ActionLink(item.Name, "Index", "Main" , new { token = Model.Token, dossiersId = dossier.Id, usersId = Model.usersId, flowsid = item.Id }, null)%&gt;--%&gt; &lt;/li&gt; &lt;%} %&gt; &lt;/ul&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload