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
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\MapperD
ao\BaseSqlMapDao.cs:line 158 at
NPetshop.Persistence.MapperDao.Accounts.AccountSqlMapDao.InsertAccount(Accou
nt account) in C:\Documents and
Settings\hadi\Desktop\NPetshop-1.0.0.RC1\source\NPetshop.Persistence\MapperD
ao\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\AccountServ
ice.cs:line 73 at
NPetshop.Presentation.UserActions.AccountAction.CreateNewAccount() in
C:\Documents and
Settings\hadi\Desktop\NPetshop-1.0.0.RC1\source\NPetshop.Presentation\UserAc
tions\AccountAction.cs:line 95 at
NPetshop.Web.UserControls.Accounts.NewAccount.ButtonCreateNewAccount_Click(O
bject sender, EventArgs e) in C:\Documents and
Settings\hadi\Desktop\NPetshop-1.0.0.RC1\source\NPetshop.Web\UserControls\Ac
counts\NewAccount.ascx.cs:line 37 at
System.Web.UI.WebControls.Button.OnClick(EventArgs e) at
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePo
stBackEvent(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

 

 

 


Mime
View raw message