|
Hi, 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 Settings\hadi\Desktop\NPetshop-1.0.0.RC1\source\NPetshop.Persistence\MapperDao\BaseSqlMapDao.cs:line
158 at
NPetshop.Persistence.MapperDao.Accounts.AccountSqlMapDao.InsertAccount(Account
account) in C:\Documents and Settings\hadi\Desktop\NPetshop-1.0.0.RC1\source\NPetshop.Persistence\MapperDao\Accounts\AccountSqlMapDao.cs:line
39 at NPetshop.Service.AccountService.InsertAccount(Account account) in
C:\Documents and
Settings\hadi\Desktop\NPetshop-1.0.0.RC1\source\NPetshop.Service\AccountService.cs:line
73 at NPetshop.Presentation.UserActions.AccountAction.CreateNewAccount() in
C:\Documents and
Settings\hadi\Desktop\NPetshop-1.0.0.RC1\source\NPetshop.Presentation\UserActions\AccountAction.cs:line
95 at NPetshop.Web.UserControls.Accounts.NewAccount.ButtonCreateNewAccount_Click(Object
sender, EventArgs e) in C:\Documents and
Settings\hadi\Desktop\NPetshop-1.0.0.RC1\source\NPetshop.Web\UserControls\Accounts\NewAccount.ascx.cs:line
37 at System.Web.UI.WebControls.Button.OnClick(EventArgs e) at
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument) at
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain()
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. Regards, hadi |
- Issues while compiling and running NPetshop application Hadi Ismanto

