2017-01-24 11 views
0

RegisterViewModelを更新してローカルでテストしたところ、自分のサイトがダウンして正常に動作しました。モデルのクラスが紺色で更新されていない

'RegisterViewModel' does not contain a definition for 'Notifications' 

詳細こちら:

An unhandled exception has occurred: One or more compilation failures occurred: 
     3cmgspbk.ncu(571,3721): error CS1031: Type expected 
     3cmgspbk.ncu(571,3935): error CS1031: Type expected 
     3cmgspbk.ncu(571,3777): error CS1061: 'RegisterViewModel' does not contain a definition for 'Notifications' and no extension method 'Notifications' accepting a first argument of type 'RegisterViewModel' could be found (are you missing a using directive or an assembly reference?) 
     3cmgspbk.ncu(571,3991): error CS1061: 'RegisterViewModel' does not contain a definition for 'Notifications' and no extension method 'Notifications' accepting a first argument of type 'RegisterViewModel' could be found (are you missing a using directive or an assembly reference?) 
Microsoft.AspNetCore.Mvc.Razor.Compilation.CompilationFailedException: One or more compilation failures occurred: 
+0

問題を理解するために詳細が必要です。エラーはどこで発生しますか?スタックトレースとは何ですか?関連するコードを共有できますか? –

+0

私は登録フォームにフィールドを追加し、それを通知と呼びました。誰かが登録フォームを開くたびに、このエラーがログに記録されるので、私は青空でビューモデルを作成しようとするたびにこれを持っています。 azureのmodelsフォルダの下でモデルクラス(.cs)を更新する方法はありますか? – Techy

+0

@NateBarbettini私は質問を更新しました。ありがとう。 – Techy

答えて

1

は時々DLLを上書きする必要がありますと、この私は、しかし、私のサイトは、次のエラーでクラッシュし紺碧のために公開した後、新しいフィールド[通知] を追加しました既存のアプリケーションにデプロイする場合は、以前のファイルを削除したことを確認することによって行うことができます。これは、Visual Studioでそれを行う方法です:FILE下

センターでThe display in Microsoft Visual Studio

は、OPTIONSを公開、してくださいチェックマーク: たぶん、古いファイルを新しいものに干渉している先での追加ファイルを削除します!

関連する問題