Nhibernate 問題 解決 錦集

1、錯誤 1 Unable to copy file "obj\Debug\TableDefinition.dll" to "bin\Debug\TableDefinition.dll". The process cannot access the file 'bin\Debug\TableDefinition.dll' because it is being used by another process. TableDefinition

  重啓動系統就OK

 2、The process cannot access the file '' because it is being used by another process. 

重啓動系統就OK

 3、序列化類型“”時出錯。 序列化類型“”時出錯。

[Serializable] // 可序列化 表示可以從硬盤寫到存儲內存 也可從存儲內存寫到硬盤 實體類最好加上可序列化關鍵字

4、出現No persister for 

改爲內嵌資源就可以了

5、Nhiberante 關鍵字不在字典中

是hql語句的問題 少了() 或者百分號 等關鍵字的情況


6、子頁面關閉沒有刷新父頁面的問題

是沒有套用Iframe的原因

7、數據刷不出來 死活不出來

可能是映射文件沒有改成“內嵌資源”

8、a different object with the same identifier value was already associated with the

必須用ITransaction 批量提交

9、An association from the table BSN_Collection_TCoupon refers to an unmapped class: CND.SystemTableDefinition.TableDefinition.DAL.PUO_GiftCert_Inventory 
沒有加持久化類

10、GetData(sq)
獲取不到對象 是持久化類裏面有list型的,必須要用ilist型別的

 11、onclick事件觸發不到

javascript有問題

12。、無法分析從服務器收到的消息。之所以出現此錯誤,常見的原因是: 在通過調用 Response.Write() 修改響應時,將啓用響應篩選器、HttpModule 或服務器跟蹤。詳細信息: 分析附近的“ataSourceTp" value="”時出錯。 
<Triggers>
                                         <asp:PostBackTrigger ControlID="aggregateBtn1" />
                                        </Triggers>
                        </asp:UpdatePanel>
                    </div>

添加紅色字體的那些、、、、、、就OK啦。、。。。。。在這裏aggregateBtn1是我的自定義控件,相應的在你們那裏是button或者什麼都可以。你們使用到的。


System.InvalidCastException: 無法將類型爲“System.Guid”的對象強制轉換爲類型“System.IConvertible"

發佈了35 篇原創文章 · 獲贊 4 · 訪問量 7萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章