Deploying issue with EF project on remote server

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
apatel1221
Posts: 1
Joined: Mon 11 Aug 2014 21:34

Deploying issue with EF project on remote server

Post by apatel1221 » Mon 03 Nov 2014 19:39

Hi,

We have purchased team license recently for dotConnect for oracle professional v8.4.274.

We have an web application using odata v3 with webapi, EF6 (code first from existing database) and oracle database.

My application works fine locally. But when I tried to deploy it to server it started complaining. I have installed all required dll suggested in your deployment documentation. (Devat.Data.dll, Devart.Data.Oracle.Entity.dll, and Devart.Data.Oracle.dll). I have added into bin folder of my application. Now it's complaining about license issue.

I have followed http://www.devart.com/dotconnect/oracle ... g.html#asp article to resolve the following issue. (NOTE: I don’t have licenses.licx file in my project solution. I have used dotConnect for oracle data provider with EF 6 to create code first poco model from existing database using ADO.NET entity data model instead Devart entity model.)

I am not sure how to resolve the issue.

ERROR:

Server Error in '/AddProject' Application.
________________________________________
<?xml version="1.0" encoding="utf-8"?>
<m:error xmlns:m="http://schemas.microsoft.com/ado/2007/0 ... s/metadata">
<m:code />
<m:message xml:lang="en-US">An error has occurred.</m:message>
<m:innererror>
<m:message>An error occurred accessing the database. This usually means that the connection to the database failed. Check that the connection string is correct and that the appropriate DbContext constructor is being used to specify it or find it in the application's config file. See http://go.microsoft.com/fwlink/?LinkId=386386 for information on DbContext and connections. See the inner exception for details of the failure.</m:message>
<m:type>System.Data.Entity.Core.ProviderIncompatibleException</m:type>
<m:stacktrace> at System.Data.Entity.Utilities.DbProviderServicesExtensions.GetProviderManifestTokenChecked(DbProviderServices providerServices, DbConnection connection)&#xD;
at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)&#xD;
at System.Data.Entity.Infrastructure.DefaultManifestTokenResolver.ResolveManifestToken(DbConnection connection)&#xD;
at System.Data.Entity.DbModelBuilder.Build(DbConnection providerConnection)&#xD;
at System.Data.Entity.Internal.LazyInternalContext.CreateModel(LazyInternalContext internalContext)&#xD;
at System.Data.Entity.Internal.RetryLazy`2.GetValue(TInput input)&#xD;
at System.Data.Entity.Internal.LazyInternalContext.InitializeContext()&#xD;
at System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType)&#xD;
at System.Data.Entity.Internal.Linq.InternalSet`1.Initialize()&#xD;
at System.Data.Entity.Internal.Linq.InternalSet`1.get_InternalContext()&#xD;
at System.Data.Entity.Infrastructure.DbQuery`1.System.Linq.IQueryable.get_Provider()&#xD;
at System.Web.Http.OData.Query.HandleNullPropagationOptionHelper.GetDefaultHandleNullPropagationOption(IQueryable query)&#xD;
at System.Web.Http.OData.Query.FilterQueryOption.ApplyTo(IQueryable query, ODataQuerySettings querySettings, IAssembliesResolver assembliesResolver)&#xD;
at System.Web.Http.OData.Query.ODataQueryOptions.ApplyTo(IQueryable query, ODataQuerySettings querySettings)&#xD;
at System.Web.Http.OData.EnableQueryAttribute.ExecuteQuery(Object response, HttpRequestMessage request, HttpActionDescriptor actionDescriptor)&#xD;
at System.Web.Http.OData.EnableQueryAttribute.OnActionExecuted(HttpActionExecutedContext actionExecutedContext)&#xD;
at System.Web.Http.Filters.ActionFilterAttribute.OnActionExecutedAsync(HttpActionExecutedContext actionExecutedContext, CancellationToken cancellationToken)&#xD;
--- End of stack trace from previous location where exception was thrown ---&#xD;
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#xD;
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#xD;
at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()&#xD;
--- End of stack trace from previous location where exception was thrown ---&#xD;
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#xD;
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#xD;
at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()&#xD;
--- End of stack trace from previous location where exception was thrown ---&#xD;
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#xD;
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#xD;
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()&#xD;
at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()&#xD;
--- End of stack trace from previous location where exception was thrown ---&#xD;
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#xD;
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#xD;
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()&#xD;
at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()</m:stacktrace>
<m:internalexception>
<m:message>The provider did not return a ProviderManifestToken string.</m:message>
<m:type>System.Data.Entity.Core.ProviderIncompatibleException</m:type>
<m:stacktrace> at System.Data.Entity.Core.Common.DbProviderServices.GetProviderManifestToken(DbConnection connection)&#xD;
at System.Data.Entity.Utilities.DbProviderServicesExtensions.GetProviderManifestTokenChecked(DbProviderServices providerServices, DbConnection connection)</m:stacktrace>
<m:internalexception>
<m:message>License not found. Please view "Licensing" topic in dotConnect for Oracle documentation for details or contact Devart technical support.</m:message>
<m:type>Devart.Data.Oracle.OracleException</m:type>
<m:stacktrace> at Devart.Data.Oracle.OracleConnection.Open()&#xD;
at Devart.Data.Oracle.Entity.a4.a(DbConnection A_0, OracleServerType& A_1)&#xD;
at Devart.Data.Oracle.Entity.OracleEntityProviderServices.GetDbProviderManifestToken(DbConnection connection)&#xD;
at System.Data.Entity.Core.Common.DbProviderServices.GetProviderManifestToken(DbConnection connection)</m:stacktrace>
</m:internalexception>
</m:internalexception>
</m:innererror>
</m:error>
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.Services.Client.DataServiceClientException: <?xml version="1.0" encoding="utf-8"?>
<m:error xmlns:m="http://schemas.microsoft.com/ado/2007/0 ... s/metadata">
<m:code />
<m:message xml:lang="en-US">An error has occurred.</m:message>
<m:innererror>
<m:message>An error occurred accessing the database. This usually means that the connection to the database failed. Check that the connection string is correct and that the appropriate DbContext constructor is being used to specify it or find it in the application's config file. See http://go.microsoft.com/fwlink/?LinkId=386386 for information on DbContext and connections. See the inner exception for details of the failure.</m:message>
<m:type>System.Data.Entity.Core.ProviderIncompatibleException</m:type>
<m:stacktrace> at System.Data.Entity.Utilities.DbProviderServicesExtensions.GetProviderManifestTokenChecked(DbProviderServices providerServices, DbConnection connection)&#xD;
at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)&#xD;
at System.Data.Entity.Infrastructure.DefaultManifestTokenResolver.ResolveManifestToken(DbConnection connection)&#xD;
at System.Data.Entity.DbModelBuilder.Build(DbConnection providerConnection)&#xD;
at System.Data.Entity.Internal.LazyInternalContext.CreateModel(LazyInternalContext internalContext)&#xD;
at System.Data.Entity.Internal.RetryLazy`2.GetValue(TInput input)&#xD;
at System.Data.Entity.Internal.LazyInternalContext.InitializeContext()&#xD;
at System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType)&#xD;
at System.Data.Entity.Internal.Linq.InternalSet`1.Initialize()&#xD;
at System.Data.Entity.Internal.Linq.InternalSet`1.get_InternalContext()&#xD;
at System.Data.Entity.Infrastructure.DbQuery`1.System.Linq.IQueryable.get_Provider()&#xD;
at System.Web.Http.OData.Query.HandleNullPropagationOptionHelper.GetDefaultHandleNullPropagationOption(IQueryable query)&#xD;
at System.Web.Http.OData.Query.FilterQueryOption.ApplyTo(IQueryable query, ODataQuerySettings querySettings, IAssembliesResolver assembliesResolver)&#xD;
at System.Web.Http.OData.Query.ODataQueryOptions.ApplyTo(IQueryable query, ODataQuerySettings querySettings)&#xD;
at System.Web.Http.OData.EnableQueryAttribute.ExecuteQuery(Object response, HttpRequestMessage request, HttpActionDescriptor actionDescriptor)&#xD;
at System.Web.Http.OData.EnableQueryAttribute.OnActionExecuted(HttpActionExecutedContext actionExecutedContext)&#xD;
at System.Web.Http.Filters.ActionFilterAttribute.OnActionExecutedAsync(HttpActionExecutedContext actionExecutedContext, CancellationToken cancellationToken)&#xD;
--- End of stack trace from previous location where exception was thrown ---&#xD;
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#xD;
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#xD;
at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()&#xD;
--- End of stack trace from previous location where exception was thrown ---&#xD;
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#xD;
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#xD;
at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()&#xD;
--- End of stack trace from previous location where exception was thrown ---&#xD;
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#xD;
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#xD;
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()&#xD;
at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()&#xD;
--- End of stack trace from previous location where exception was thrown ---&#xD;
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#xD;
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#xD;
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()&#xD;
at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()</m:stacktrace>
<m:internalexception>
<m:message>The provider did not return a ProviderManifestToken string.</m:message>
<m:type>System.Data.Entity.Core.ProviderIncompatibleException</m:type>
<m:stacktrace> at System.Data.Entity.Core.Common.DbProviderServices.GetProviderManifestToken(DbConnection connection)&#xD;
at System.Data.Entity.Utilities.DbProviderServicesExtensions.GetProviderManifestTokenChecked(DbProviderServices providerServices, DbConnection connection)</m:stacktrace>
<m:internalexception>
<m:message>License not found. Please view "Licensing" topic in dotConnect for Oracle documentation for details or contact Devart technical support.</m:message>
<m:type>Devart.Data.Oracle.OracleException</m:type>
<m:stacktrace> at Devart.Data.Oracle.OracleConnection.Open()&#xD;
at Devart.Data.Oracle.Entity.a4.a(DbConnection A_0, OracleServerType& A_1)&#xD;
at Devart.Data.Oracle.Entity.OracleEntityProviderServices.GetDbProviderManifestToken(DbConnection connection)&#xD;
at System.Data.Entity.Core.Common.DbProviderServices.GetProviderManifestToken(DbConnection connection)</m:stacktrace>
</m:internalexception>
</m:internalexception>
</m:innererror>
</m:error>

Source Error:

Line 2: @using DevExpress.Web.Mvc.UI;
Line 3:
Line 4: @Html.DevExpress().ComboBox(settings => {
Line 5: settings.Name = "AssetID";
Line 6: //settings.CallbackRouteValues = new { Controller = "AddProject", Action = "AssetPartial" };

Source File: c:\inetpub\wwwroot\AddProject\Areas\ProjectArea\Views\AddProject\AssetPartial.cshtml Line: 4

Stack Trace:

[DataServiceClientException: <?xml version="1.0" encoding="utf-8"?>
<m:error xmlns:m="http://schemas.microsoft.com/ado/2007/0 ... s/metadata">
<m:code />
<m:message xml:lang="en-US">An error has occurred.</m:message>
<m:innererror>
<m:message>An error occurred accessing the database. This usually means that the connection to the database failed. Check that the connection string is correct and that the appropriate DbContext constructor is being used to specify it or find it in the application's config file. See http://go.microsoft.com/fwlink/?LinkId=386386 for information on DbContext and connections. See the inner exception for details of the failure.</m:message>
<m:type>System.Data.Entity.Core.ProviderIncompatibleException</m:type>
<m:stacktrace> at System.Data.Entity.Utilities.DbProviderServicesExtensions.GetProviderManifestTokenChecked(DbProviderServices providerServices, DbConnection connection)&#xD;
at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)&#xD;
at System.Data.Entity.Infrastructure.DefaultManifestTokenResolver.ResolveManifestToken(DbConnection connection)&#xD;
at System.Data.Entity.DbModelBuilder.Build(DbConnection providerConnection)&#xD;
at System.Data.Entity.Internal.LazyInternalContext.CreateModel(LazyInternalContext internalContext)&#xD;
at System.Data.Entity.Internal.RetryLazy`2.GetValue(TInput input)&#xD;
at System.Data.Entity.Internal.LazyInternalContext.InitializeContext()&#xD;
at System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType)&#xD;
at System.Data.Entity.Internal.Linq.InternalSet`1.Initialize()&#xD;
at System.Data.Entity.Internal.Linq.InternalSet`1.get_InternalContext()&#xD;
at System.Data.Entity.Infrastructure.DbQuery`1.System.Linq.IQueryable.get_Provider()&#xD;
at System.Web.Http.OData.Query.HandleNullPropagationOptionHelper.GetDefaultHandleNullPropagationOption(IQueryable query)&#xD;
at System.Web.Http.OData.Query.FilterQueryOption.ApplyTo(IQueryable query, ODataQuerySettings querySettings, IAssembliesResolver assembliesResolver)&#xD;
at System.Web.Http.OData.Query.ODataQueryOptions.ApplyTo(IQueryable query, ODataQuerySettings querySettings)&#xD;
at System.Web.Http.OData.EnableQueryAttribute.ExecuteQuery(Object response, HttpRequestMessage request, HttpActionDescriptor actionDescriptor)&#xD;
at System.Web.Http.OData.EnableQueryAttribute.OnActionExecuted(HttpActionExecutedContext actionExecutedContext)&#xD;
at System.Web.Http.Filters.ActionFilterAttribute.OnActionExecutedAsync(HttpActionExecutedContext actionExecutedContext, CancellationToken cancellationToken)&#xD;
--- End of stack trace from previous location where exception was thrown ---&#xD;
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#xD;
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#xD;
at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()&#xD;
--- End of stack trace from previous location where exception was thrown ---&#xD;
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#xD;
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#xD;
at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()&#xD;
--- End of stack trace from previous location where exception was thrown ---&#xD;
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#xD;
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#xD;
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()&#xD;
at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()&#xD;
--- End of stack trace from previous location where exception was thrown ---&#xD;
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#xD;
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#xD;
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()&#xD;
at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()</m:stacktrace>
<m:internalexception>
<m:message>The provider did not return a ProviderManifestToken string.</m:message>
<m:type>System.Data.Entity.Core.ProviderIncompatibleException</m:type>
<m:stacktrace> at System.Data.Entity.Core.Common.DbProviderServices.GetProviderManifestToken(DbConnection connection)&#xD;
at System.Data.Entity.Utilities.DbProviderServicesExtensions.GetProviderManifestTokenChecked(DbProviderServices providerServices, DbConnection connection)</m:stacktrace>
<m:internalexception>
<m:message>License not found. Please view "Licensing" topic in dotConnect for Oracle documentation for details or contact Devart technical support.</m:message>
<m:type>Devart.Data.Oracle.OracleException</m:type>
<m:stacktrace> at Devart.Data.Oracle.OracleConnection.Open()&#xD;
at Devart.Data.Oracle.Entity.a4.a(DbConnection A_0, OracleServerType& A_1)&#xD;
at Devart.Data.Oracle.Entity.OracleEntityProviderServices.GetDbProviderManifestToken(DbConnection connection)&#xD;
at System.Data.Entity.Core.Common.DbProviderServices.GetProviderManifestToken(DbConnection connection)</m:stacktrace>
</m:internalexception>
</m:internalexception>
</m:innererror>
</m:error>]
System.Data.Services.Client.QueryResult.ExecuteQuery() +629
System.Data.Services.Client.DataServiceRequest.Execute(DataServiceContext context, QueryComponents queryComponents) +314

[DataServiceQueryException: An error occurred while processing this request.]
System.Data.Services.Client.DataServiceRequest.Execute(DataServiceContext context, QueryComponents queryComponents) +874
System.Data.Services.Client.DataServiceQuery`1.Execute() +113
System.Data.Services.Client.DataServiceQuery`1.GetEnumerator() +22
System.Data.Services.Client.DataServiceQuery`1.System.Collections.IEnumerable.GetEnumerator() +9
DevExpress.Web.ASPxEditors.Internal.EditDataHelper.DataBindItems(IEnumerable data, String valueFieldName, String textFieldName, String imageUrlFieldName) +159
DevExpress.Web.ASPxEditors.Internal.EditDataHelper.PerformDataBinding(IEnumerable data, String valueField, String textField, String imageUrlField, Boolean isMultiColumn) +238
DevExpress.Web.ASPxEditors.Internal.EditDataHelper.PerformDataBinding(IEnumerable data, String valueField, String textField, String imageUrlField) +28
DevExpress.Web.ASPxEditors.ASPxAutoCompleteBoxBase.PerformDataBindingCore(String dataHelperName, IEnumerable data) +269
DevExpress.Web.ASPxEditors.ASPxAutoCompleteBoxBase.PerformDataBinding(String dataHelperName, IEnumerable data) +25
DevExpress.Web.ASPxClasses.Internal.DataHelper.OnDataSourceViewSelectCallback(IEnumerable data) +145
DevExpress.Web.ASPxClasses.Internal.DataContainer.PerformSelect() +181
DevExpress.Web.ASPxClasses.ASPxDataWebControlBase.DataBindInternal() +282
DevExpress.Web.ASPxClasses.ASPxWebControl.DataBind() +50
DevExpress.Web.ASPxEditors.ASPxComboBox.DataBind() +18
DevExpress.Web.Mvc.ComboBoxExtension.BindList(Object dataObject) +59
ASP._Page_Areas_ProjectArea_Views_AddProject_AssetPartial_cshtml.Execute() in c:\inetpub\wwwroot\AddProject\Areas\ProjectArea\Views\AddProject\AssetPartial.cshtml:4
System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +280
System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +125
System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +196
System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) +147
ASP._Page_Areas_ProjectArea_Views_AddProject_Index_cshtml.Execute() in c:\inetpub\wwwroot\AddProject\Areas\ProjectArea\Views\AddProject\Index.cshtml:27
System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +280
System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +125
System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +181
System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +380
System.Web.Mvc.<>c__DisplayClass1a.<InvokeActionResultWithFilters>b__17() +33
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +613
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +263
System.Web.Mvc.Async.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult) +240
System.Web.Mvc.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult) +28
System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +15
System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +53
System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +15
System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult) +42
System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +15
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +606
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +288

________________________________________
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18408



Thanks,

MariiaI
Devart Team
Posts: 1472
Joined: Mon 13 Feb 2012 08:17

Re: Deploying issue with EF project on remote server

Post by MariiaI » Tue 04 Nov 2014 11:23

When you create an application that uses Devart assemblies, it must have a license resource. License information is a specially formed embedded resource. It is checked when a connection is opened.
dotConnect for Oracle includes License Wizard that helps you configure license information. To invoke the wizard, select Oracle -> License Information from the Visual Studio Tools menu. Then click the Fix buttons in the dialog box and follow the wizard's instructions. After the wizard finishes its work, rebuild your application. For more information, please refer to http://www.devart.com/dotconnect/oracle ... nsing.html.

You can also add the license manually.
Perform the following steps:
1. Create the licenses.licx file;
2. Open the file with a text editor and add the following line to it: Devart.Data.Oracle.OracleConnection, Devart.Data.Oracle;
3. Save the file and add it to your project and set to it's property 'Build Action' value 'Embedded Resource';
4. Clear the bin and obj folders of your project and compile the project;

In case you are using an ASP.NET Web Site (not ASP.NET Web Application), there must be the 'Build Runtime Licenses' command in the shortcut menu of the licenses.licx file. Besides, if you just compile your website that has the licenses.licx file, then the App_Licenses.dll file is created automatically. Deploy App_Licenses.dll file with your application.

If your application is an ASP.NET Web Application, not an ASP.NET Web Site, App_Licenses.dll is not created and is not required for such projects, and there is no 'Build Runtime Licenses' command in the shortcut menu of the licenses.licx file.

Please tell us if this information helps.

Post Reply