2010-11-21 11 views
0

vb-net-late-binding-operations-can-be-converted-to-an -expressionツリーエラー VB.Net Late binding operations cannot be converted to an expression treeタイプ 'Store.WebUI.Entities.ShippingDetails'が定義されていません。& 'BeginForm'は 'Html'のメンバーではありません。

私は

遅延バインディング・オペレーションが-ことができ、変換されない-約エラーを修正
<%@ Page Language="vb" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage(Of Store.WebUI.Entities.ShippingDetails)" %> 

<%@ Page Language="vb" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Store.WebUI.Entities.ShippingDetails>" %> 

からページコードを変更します-an-expressio n-tree しかし、今私はこのエラーが発生します。 - 'Store.WebUI.Entities.ShippingDetails'タイプが定義されていません。 12 5 - 'コンテキスト'は 'ASP.views_cart_checkout_aspx'のメンバーではありません。 12 5 - 'BeginForm'は 'Html'のメンバーではありません。 12 15

マイコードが

<%@ Page Language="vb" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage(Of Store.WebUI.Entities.ShippingDetails)" %> 

NetButikある:クラスStore.WebUI.Entities.ShippingDetailsが存在することFærdiggørOrdre

<h2>Betaling</h2> 
Venligst indtast dine personlige data og vi vil sende deres vare hurtigst muligt! 

<% Using (Html.BeginForm())%> 
    <%: Html.ValidationSummary() %> 

    <h3>Sendes til</h3> 

    <div>Navn: <%: Html.EditorFor(Function(x) x.Name)%></div> 

    <h3>Adresse</h3> 
    <div>Linje 1: <%: Html.EditorFor(Function(x) x.Line1)%></div> 
    <div>Linje 2: <%: Html.EditorFor(Function(x) x.Line2)%></div> 
    <div>Linje 3: <%: Html.EditorFor(Function(x) x.Line3)%></div> 
    <div>Postnr: <%: Html.EditorFor(Function(x) x.Zip)%></div> 
    <div>By: <%: Html.EditorFor(Function(x) x.City)%></div> 
    <div>Landsdel: <%: Html.EditorFor(Function(x) x.Country)%></div> 

    <h3>Tilvalg</h3> 
    <label> 
     <%: Html.EditorFor(Function(x) x.GiftWrap)%> 
     Disse vare skal i Gaveindpakning. 
    </label> 

    <p align="center"><input type="submit" value="Færdiggør ordre" /></p> 
<% End Using%> 

+0

誰も助けることができません。 !? –

答えて

0

チェック、参照System.Web.Mvc.dllにあなたのソリューションに存在します。これで問題が解決しない場合は、Store.WebUI.Entities.ShippingDetailsをこちらから投稿してください。

関連する問題