ORM Error when running Site?

Thread is closed for posting
2 posts, 0 answers
  1. julian Welby Everard
    julian Welby Everard avatar
    13 posts
    Member since:
    Mar 2009

    Posted 08 Jul 2010 Link to this post

    After a recomile of my DBLibary ORM enabled DLL i now get the following error when the site starts. All compiles fine but I cant seem to work out why I get the following error

    Any got any Ideas?

    Julian

    System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> Telerik.OpenAccess.OpenAccessException: Class DBLibrary.TblAESAuthorization already has a db-table-name: 'RecruitmentWebSiteTest_Data'.'dbo'.'tblAESAuthorization'
    --> DBLibrary, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null/namespace[DBLibrary]/class[DBLibrary.TblAESAuthorization]/db-table-name="dbo.tblAESAuthorization"
      at Telerik.OpenAccess.SPI.Backends.ThrowException(Exception e)
      at Telerik.OpenAccess.RT.ExceptionWrapper.Throw()
      at OpenAccessRuntime.storagemanager.StorageManagerFactoryBuilder.createSmfForURL()
      at OpenAccessRuntime.storagemanager.StorageManagerFactoryBuilder.createStorageManagerFactory()
      at OpenAccessRuntime.DataObjects.PersistenceManagerFactoryImp.createStorageManagerFactory()
      at OpenAccessRuntime.DataObjects.PersistenceManagerFactoryBase.init()
      at OpenAccessRuntime.DataObjects.PersistenceManagerFactoryImp.init()
      at OpenAccessRuntime.DataObjects.PersistenceManagerFactoryImp..ctor(IDictionary properties, Object classloader)
      at OpenAccessRuntime.DataObjects.BootstrapPMF.getPersistenceManagerFactory(IDictionary props)
      at Telerik.OpenAccess.RT.Helper.getPersistenceManagerFactory(IDictionary props)
      at Telerik.OpenAccess.RT.DatabaseAdapter.AssertPersistenceManagerFactory(String usr, String password, Boolean open)
      at Telerik.OpenAccess.RT.DatabaseAdapter.GetObjectScope(TransactionProvider provider)
      at Telerik.OpenAccess.RT.DatabaseAdapter.Telerik.OpenAccess.SPI.IDatabaseAdapter.GetObjectScope()
      at Telerik.OpenAccess.Database.GetObjectScope()
      at DBLibrary.ObjectScopeProvider.GetNewObjectScope() in C:\inetpub\wwwroot\CRPortal\DBLibrary\ObjectScopeProvider.vb:line 79
      at DBLibrary.CommonMethod.GetBrowseJobs(String LangaugeCode, Int32 BrowseType, Int32 BrowseJobOption) in C:\inetpub\wwwroot\CRPortal\DBLibrary\CommonMethods.vb:line 1907
      at DBWebServices.Service.BrowseJobs_ByJobType(String LangaugeCode, Int32 JobType, Int32 BrowsJobOption) in C:\inetpub\wwwroot\CRPortal\WebServices\Service.asmx.vb:line 180
  2. Alexander
    Admin
    Alexander avatar
    727 posts

    Posted 09 Jul 2010 Link to this post

    Hi julian Welby Everard,

    It seems the table for the TblAESAuthorization class is specified on two places. Could you please show us the OpenAccess configuration from the app.config file or at least the mapping for the TblAESAuthorization class?

    Sincerely yours,
    Alexander
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top