0

我想将隐藏的 openid 数据发布到一个动作中,在 Razor 中我使用以下代码:

@Html.Hidden("OpenID", Request.QueryString["openid"]);

然后我收到此错误:

Compiler Error Message: CS0012: The type 'System.Data.Linq.Binary' is defined in an     assembly that is not referenced. You must add a reference to assembly 'System.Data.Linq,     Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

Source Error:


Line 11: 
Line 12: <form method="post" action="Register">
Line 13:     @Html.Hidden("OpenID", Request["openid"]);
4

1 回答 1

0
 <compilation debug="true">
  <assemblies>
   <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
    <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
    <add assembly="System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
  </assemblies>
</compilation>
于 2012-06-26T13:35:37.307 回答