BatisNet.Common.Exceptions.ConfigurationException was caught Message="Embedded config file stream was null. Could not find embedded resource 'test.DataAccess.Config.SqlMap.config' in assembly 'test.DataAccess, Version=0.1.0.0, Culture=neutral, PublicKeyToken=null'."

View: New views
3 Messages — Rating Filter:   Alert me  

BatisNet.Common.Exceptions.ConfigurationException was caught Message="Embedded config file stream was null. Could not find embedded resource 'test.DataAccess.Config.SqlMap.config' in assembly 'test.DataAccess, Version=0.1.0.0, Culture=neutral, PublicKeyToken=null'."

by sanjeev40084 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

i am getting this error everytime when i try to call method in my data access layer. Any clue why i am getting this error?

Re: BatisNet.Common.Exceptions.ConfigurationException was caught Message="Embedded config file stream was null. Could not find embedded resource 'test.DataAccess.Config.SqlMap.config' in assembly 'test.DataAccess, Version=0.1.0.0, Culture=neutral, PublicKeyToken=null'."

by alberto.acevedo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Make sure the build action of the SqlMap.config file is set to embedded resource in Visual Studio. Assuming that your package (folder path)  is correct, the error is telling me that the file was not embedded to the dll when building your project.

Alberto Acevedo


sanjeev40084 wrote:
i am getting this error everytime when i try to call method in my data access layer. Any clue why i am getting this error?

BatisNet.Common.Exceptions.ConfigurationException was caught   Message="Embedded config file stream was null.   Could not find embedded resource 'test.DataAccess.Config.SqlMap.config' in assembly 'test.DataAccess, Version=0.1.0.0, Culture=neutral, PublicK

Re: BatisNet.Common.Exceptions.ConfigurationException was caught Message="Embedded config file stream was null. Could not find embedded resource 'test.DataAccess.Config.SqlMap.config' in assembly 'test.DataAccess, Version=0.1.0.0, Culture=neutral, PublicKeyToken=null'."

by sanjeev40084 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

thanks. that worked.