After deployment to IIS Server errors at db access

5 posts, 0 answers
  1. Richard Koslik
    Richard Koslik avatar
    71 posts
    Member since:
    Apr 2010

    Posted 18 Aug 2010 Link to this post

    Hello,

    after finishing my test project and successfull testing on local VS2010, i have deployed it to my test server (WIN 2003 Server + IIS 6, Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1).

    But after requesting a page which accesses the database i get following error:

    Exception Details: Telerik.OpenAccess.Exceptions.MetadataException: Class 'DynamicXAPLoading.Web.LS_KOPF' cannot use single field identity and an objectid-class is required. --> OracleConnectionModel/namespace[DynamicXAPLoading.Web]/class[LS_KOPF]

    What could be wrong, because it works without errors on local development environment.

    [MetadataException: Class 'DynamicXAPLoading.Web.LS_KOPF' cannot use single field identity and an objectid-class is required. --> OracleConnectionModel/namespace[DynamicXAPLoading.Web]/class[LS_KOPF]]
       Telerik.OpenAccess.RT.ExceptionWrapper.Throw() +7
       OpenAccessRuntime.storagemanager.StorageManagerFactoryBuilder.createSmfForURL() +269
       OpenAccessRuntime.storagemanager.StorageManagerFactoryBuilder.createStorageManagerFactory() +261
       OpenAccessRuntime.DataObjects.PersistenceManagerFactoryImp.createStorageManagerFactory() +427
       OpenAccessRuntime.DataObjects.PersistenceManagerFactoryBase.init() +625
       OpenAccessRuntime.DataObjects.PersistenceManagerFactoryImp.init() +41
       OpenAccessRuntime.DataObjects.PersistenceManagerFactoryImp..ctor(PropertySet properties, Object classloader) +738
       OpenAccessRuntime.DataObjects.BootstrapPMF.getPersistenceManagerFactory(PropertySet props) +210
       Telerik.OpenAccess.RT.Helper.getPersistenceManagerFactory(PropertySet props) +223
       Telerik.OpenAccess.RT.DatabaseAdapter.AssertPersistenceManagerFactory(String usr, String password, Boolean open) +1156
       Telerik.OpenAccess.RT.DatabaseAdapter.Telerik.OpenAccess.SPI.IDatabaseAdapter.GetMetaData() +19
       Telerik.OpenAccess.OpenAccessContextBase.get_Metadata() +170
       Telerik.OpenAccess.Ria.OpenAccessTypeDescriptionContext..ctor(Type dataContextType) +140
       Telerik.OpenAccess.Ria.OpenAccessDomainServiceDescriptionProvider.FindContext(Type t) +129
       Telerik.OpenAccess.Ria.OpenAccessDomainServiceDescriptionProvider.FindContext(Type t) +153
       Telerik.OpenAccess.Ria.OpenAccessDomainServiceDescriptionProvider..ctor(Type domainServiceType, DomainServiceDescriptionProvider parent) +60
      
    [TargetInvocationException: Exception has been thrown by the target of an invocation.]
       System.RuntimeMethodHandle._InvokeConstructor(IRuntimeMethodInfo method, Object[] args, SignatureStruct& signature, RuntimeType declaringType) +0
       System.RuntimeMethodHandle.InvokeConstructor(IRuntimeMethodInfo method, Object[] args, SignatureStruct signature, RuntimeType declaringType) +15
       System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +281
       System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +1136
       System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +111
       System.ServiceModel.DomainServices.Server.DomainServiceDescriptionProviderAttribute.CreateProvider(Type domainServiceType, DomainServiceDescriptionProvider parent) +261
       System.ServiceModel.DomainServices.Server.DomainServiceDescription.CreateDescriptionProvider(Type domainServiceType) +362
       System.ServiceModel.DomainServices.Server.DomainServiceDescription.CreateDescription(Type domainServiceType) +34
       System.ServiceModel.DomainServices.Server.<>c__DisplayClass8.<GetDescription>b__7(Type type) +9
       System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory) +72
       System.ServiceModel.DomainServices.Server.DomainServiceDescription.GetDescription(Type domainServiceType) +196
       System.ServiceModel.DomainServices.Hosting.DomainServiceHost..ctor(Type domainServiceType, Uri[] baseAddresses) +263
       System.ServiceModel.DomainServices.Hosting.DomainServiceHostFactory.CreateServiceHost(Type serviceType, Uri[] baseAddresses) +28
       System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses) +420
       System.ServiceModel.HostingManager.CreateService(String normalizedVirtualPath) +1440
       System.ServiceModel.HostingManager.ActivateService(String normalizedVirtualPath) +44
       System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) +615
      
    [ServiceActivationException: The service '/Services/DynamicXAPLoading-Web-MyDomainService_Service.svc' cannot be activated due to an exception during compilation.  The exception message is: Exception has been thrown by the target of an invocation..]
       System.Runtime.AsyncResult.End(IAsyncResult result) +679246
       System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +190
       System.ServiceModel.Activation.HostedHttpRequestAsyncResult.ExecuteSynchronous(HttpApplication context, String routeServiceVirtualPath, Boolean flowContext, Boolean ensureWFService) +234
       System.ServiceModel.Activation.HttpHandler.ProcessRequest(HttpContext context) +24
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

    Richard.
  2. Richard Koslik
    Richard Koslik avatar
    71 posts
    Member since:
    Apr 2010

    Posted 19 Aug 2010 Link to this post

    Does anyone have an idea whats going wrong here?
    The Table has only one primary key field which is mapped as String.

    Any suggestion are highly welcome...
    Richard.
  3. DevCraft banner
  4. Petko_I
    Admin
    Petko_I avatar
    184 posts

    Posted 20 Aug 2010 Link to this post

    Hello Richard Koslik,

    As soon as you posted this problem, I started investigating the issue but I could not reproduce your problem. However it really does not seem as something related with deployment but more like an issue with your persistent model and its identity mechanism. The strangest thing is that you do not get the error on your development machine. 

    We would mostly welcome a sample project which demonstrates the thrown exception. Just your rlinq file would be enough as well. You will have to start a support thread though as it is not possible to attach such files in forum.

     In case you are not able provide it, I would like to know a bit more about the table you are trying to read from.

    What is the database column type (varchar2, nvarchar2, char or nchar)? – I assume you are using Oracle judging by the exception message.

    Do you experience the same issue when reading from a table with an integer (or non-string) column?

    Does the persistent type mapped to the table under question participate in any kind of relationships with other types?

    I am looking forward to resolving this issue.



    Sincerely yours,
    Petko_I
    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
  5. Richard Koslik
    Richard Koslik avatar
    71 posts
    Member since:
    Apr 2010

    Posted 31 Aug 2010 Link to this post

    Hello,

    finally i have got it to work.

    The problem was the system.windows.dll.
    If this file is in the bin directory of the wwwroot of the webserver this error (see first post) comes up.

    Thank's.
    Richard.
  6. Petko_I
    Admin
    Petko_I avatar
    184 posts

    Posted 02 Sep 2010 Link to this post

    Hi Richard Koslik,

    I am glad to see that you found a solution. We will investigate this error and let you know if we find out why it appears. Do not hesitate to contact us if you need assistance.

    Greetings,

    Petko_I
    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
DevCraft banner