Hi In your statements tag within the procedure tag you are referring to resultClass"NewsDataResult" if you set this to resultMap="NewsDataResult" I believe this will sort the issue.
_____ From: Ananth Rajarman - Clue Design [mailto:[EMAIL PROTECTED] Sent: 05 February 2007 05:08 To: [email protected] Subject: Could not configure ResultMap Hi All. I have just started converted my project from .NET 1.1 to .NET 2.0. I had been using IBatis as my Data Access Layer in 1.1 and was working perfectly fine. As soon as I ported the application to .NET 2.0 I get the error: Could not configure ResultMap. ResultMap named "NewsDataResult" not found, failed. Cause: Object reference not set to an instance of an object. Below is the snapshot of the XML. <?xml version="1.0" encoding="utf-8" ?> <sqlMap namespace="NewsDataMap" xmlns="http://ClueDAL.CluePortal.org/mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > <alias> <typeAlias alias="NewsData" type="ClueDAL.Domain.News_3_0.NewsData,ClueDAL" /> </alias> <resultMaps> <resultMap id="NewsDataResult" class="NewsData"> <result property="Id" column="id" type="int" dbType="Int"/> <result property="Title" column="title" type="string" dbType="varchar"/> </resultMap> </resultMaps> <parameterMap> . . . </parameterMap> <statements> <procedure id="SelectAllNewsDataForMember" parameterMap="SelectAllNewsParameter" resultClass="NewsDataResult"> sp_news_NewsHeadlinesForMember </procedure> </statements> Could anybody throw some light on this please. PS: I haven't made any changes to the code or XML which worked in .NET 1.1 *********************************************************************************** The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB. Authorised and regulated by the Financial Services Authority This e-mail message is confidential and for use by the addressee only. If the message is received by anyone other than the addressee, please return the message to the sender by replying to it and then delete the message from your computer. Internet e-mails are not necessarily secure. The Royal Bank of Scotland plc does not accept responsibility for changes made to this message after it was sent. Whilst all reasonable care has been taken to avoid the transmission of viruses, it is the responsibility of the recipient to ensure that the onward transmission, opening or use of this message and any attachments will not adversely affect its systems or data. No responsibility is accepted by The Royal Bank of Scotland plc in this regard and the recipient should carry out such virus and other checks as it considers appropriate. Visit our websites at: www.rbs.com www.rbsgc.com www.rbsmarkets.com ***********************************************************************************

