ibatis-user-cs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hadi Ismanto" <hadi_...@cbn.net.id>
Subject Issues while compiling and running NPetshop application
Date Mon, 03 Oct 2005 14:41:10 GMT


I have two issues when i try to run the NPetshop application. I am stuck
here as i am really a beginner using iBatis.NET


1) D:\inetpub\wwwroot\NPetshop.Web\UserControls\UserControl.cs(18): The type
or namespace name 'Index' does not exist in the class or namespace
'NPetshop.Web' (are you missing an assembly reference?)


I got this error while compiling the NPetshop application.


It's because this line throws error : 


protected NPetshop.Web.Index currentRouter;


I can't find the Index class inside the NPetshop.Web project 


You should find the file 'UserControl.cs' inside the UserControls folder.
The UserControls folder is inside the NPetshop.Web web project.



2) When you try to add a new user, you will get this issue :


Error executing query 'InsertProfile' for insert. Cause: Data type mismatch
in criteria expression. 


at NPetshop.Persistence.MapperDao.BaseSqlMapDao.ExecuteInsert(String
statementName, Object parameterObject) in C:\Documents and
ao\BaseSqlMapDao.cs:line 158 at
nt account) in C:\Documents and
ao\Accounts\AccountSqlMapDao.cs:line 39 at
NPetshop.Service.AccountService.InsertAccount(Account account) in
C:\Documents and
ice.cs:line 73 at
NPetshop.Presentation.UserActions.AccountAction.CreateNewAccount() in
C:\Documents and
tions\AccountAction.cs:line 95 at
bject sender, EventArgs e) in C:\Documents and
counts\NewAccount.ascx.cs:line 37 at
System.Web.UI.WebControls.Button.OnClick(EventArgs e) at
stBackEvent(String eventArgument) at
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl,
String eventArgument) at
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at



Could you please recompile again the NPetshop web application with the
latest iBatis.NET dll as well as the fix for the NPetshop application ?


FYI i have modified the data source correctly in dao.config file, as i can
browse through the catalog successfully.


Thank you very much for all your replies.







View raw message