Dependency problem

Thread is closed for posting
8 posts, 0 answers
  1. Per
    Per avatar
    120 posts
    Member since:
    Jan 2008

    Posted 22 Mar 2010 Link to this post

    Hi

    I'm trying to deploy a web application that uses latest version of OpenAccess (Q1 2010).
    Nothing else except IIS (with .net 3.5.1) is installed on the server.
    The server is a Windows Server 2008 Std R2.

    After including almost every OpenAccess.dll file (as reference) to my project, I receive this:

    Could not load file or assembly 'VistaDB.4, Version=4.0.0.0, Culture=neutral, PublicKeyToken=dfc935afe2125461' or one of its dependencies. The system cannot find the file specified.


    === Pre-bind state information ===
    LOG: User = IIS APPPOOL\Rubix
    LOG: DisplayName = VistaDB.4, Version=4.0.0.0, Culture=neutral, PublicKeyToken=dfc935afe2125461
    (Fully-specified)
    LOG: Appbase = file:///C:/inetpub/Webs/Rubix/
    LOG: Initial PrivatePath = C:\inetpub\Webs\Rubix\bin
    Calling assembly : Telerik.OpenAccess.Adonet2, Version=2010.1.312.2, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342.

    I dont have VistaDB.4 (and im not using it in my project) so how can I get around this problem ?

    Regards
    Per
  2. Jan Blessenohl
    Admin
    Jan Blessenohl avatar
    707 posts

    Posted 24 Mar 2010 Link to this post

    Hi Per,
    We are referencing this dll but it is normally only loaded if you open the vistadb database. We have tested it again and we did not se your error.

    Can you send me the complete stack trace? If you run your web site on your developer machine is it working there?

    All the best,
    Jan Blessenohl
    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.
  3. Per
    Per avatar
    120 posts
    Member since:
    Jan 2008

    Posted 24 Mar 2010 Link to this post

    Hi

     

    Yes, its working if I run the web site on my developer machine but not in production.


    My produktion server is a  (Windows Server 2008 R2 std x86) that is clean installed. I have only added the IIS, no developer tools or anything.

    I then, from inside VS 2010, select to publish my site to the server. (The OpenAccess reference has Enhanced set)

     

    The server creates the site without problem but when I run my application, I receive this:
     

    Server Error in '/' Application.

    Could not load file or assembly 'VistaDB.4, Version=4.0.0.0, Culture=neutral, PublicKeyToken=dfc935afe2125461' or one of its dependencies. The system cannot find the file specified.

    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.IO.FileNotFoundException: Could not load file or assembly 'VistaDB.4, Version=4.0.0.0, Culture=neutral, PublicKeyToken=dfc935afe2125461' or one of its dependencies. The system cannot find the file specified.

    Source Error:

    Line 23:         <asp:Login ID="LoginControl" runat="server" DisplayRememberMe="true" PasswordRecoveryText="Glömt lösenord?" PasswordRecoveryUrl="PasswordRecovery.aspx"  LoginButtonStyle-CssClass="default"></asp:Login>    
    Line 24: 
    Line 25: <telerik:RadScriptManager ID="RadScriptManager1" runat="server">Line 26: 		<Scripts>
    Line 27: 			<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />

    Source File: c:\inetpub\Webs\Rubix\Login.aspx    Line: 25

    Assembly Load Trace: The following information can be helpful to determine why the assembly 'VistaDB.4, Version=4.0.0.0, Culture=neutral, PublicKeyToken=dfc935afe2125461' could not be loaded.

    === Pre-bind state information ===
    LOG: User = LINKS\Administrator
    LOG: DisplayName = VistaDB.4, Version=4.0.0.0, Culture=neutral, PublicKeyToken=dfc935afe2125461
     (Fully-specified)
    LOG: Appbase = file:///C:/inetpub/Webs/Rubix/
    LOG: Initial PrivatePath = C:\inetpub\Webs\Rubix\bin
    Calling assembly : Telerik.OpenAccess.Adonet2, Version=2010.1.312.2, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342.
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: C:\inetpub\Webs\Rubix\web.config
    LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v4.0.30128\aspnet.config
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30128\config\machine.config.
    LOG: Post-policy reference: VistaDB.4, Version=4.0.0.0, Culture=neutral, PublicKeyToken=dfc935afe2125461
    LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30128/Temporary ASP.NET Files/root/d3c00eec/66d53b35/VistaDB.4.DLL.
    LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30128/Temporary ASP.NET Files/root/d3c00eec/66d53b35/VistaDB.4/VistaDB.4.DLL.
    LOG: Attempting download of new URL file:///C:/inetpub/Webs/Rubix/bin/VistaDB.4.DLL.
    LOG: Attempting download of new URL file:///C:/inetpub/Webs/Rubix/bin/VistaDB.4/VistaDB.4.DLL.
    LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30128/Temporary ASP.NET Files/root/d3c00eec/66d53b35/VistaDB.4.EXE.
    LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30128/Temporary ASP.NET Files/root/d3c00eec/66d53b35/VistaDB.4/VistaDB.4.EXE.
    LOG: Attempting download of new URL file:///C:/inetpub/Webs/Rubix/bin/VistaDB.4.EXE.
    LOG: Attempting download of new URL file:///C:/inetpub/Webs/Rubix/bin/VistaDB.4/VistaDB.4.EXE.
    

    Stack Trace:

    [FileNotFoundException: Could not load file or assembly 'VistaDB.4, Version=4.0.0.0, Culture=neutral, PublicKeyToken=dfc935afe2125461' or one of its dependencies. The system cannot find the file specified.]
       System.ModuleHandle.ResolveType(RuntimeModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type) +0
       System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext) +525
       System.ModuleHandle.ResolveTypeHandle(Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext) +19
       System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments) +315
       System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, IRuntimeMethodInfo& ctor, Boolean& ctorHasParameters, Boolean& isVarArg) +208
       System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent) +1171
       System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeAssembly assembly, RuntimeType caType) +146
       System.Web.UI.AssemblyCache.GetAjaxFrameworkAssemblyAttribute(Assembly assembly) +103
       System.Web.UI.ScriptManager.get_DefaultAjaxFrameworkAssembly() +422
       System.Web.UI.ScriptManager..ctor() +30
       Telerik.Web.UI.RadScriptManager..ctor() +21
       ASP.login_aspx.__BuildControlRadScriptManager1() in c:\inetpub\Webs\Rubix\Login.aspx:25
       ASP.login_aspx.__BuildControlform1() in c:\inetpub\Webs\Rubix\Login.aspx:16
       ASP.login_aspx.__BuildControlTree(login_aspx __ctrl) in c:\inetpub\Webs\Rubix\Login.aspx:1
       ASP.login_aspx.FrameworkInitialize() in c:\Windows\Microsoft.NET\Framework64\v4.0.30128\Temporary ASP.NET Files\root\d3c00eec\66d53b35\App_Web_w0i23czm.2.cs:0
       System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +72
       System.Web.UI.Page.ProcessRequest() +119
       System.Web.UI.Page.ProcessRequest(HttpContext context) +167
       ASP.login_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v4.0.30128\Temporary ASP.NET Files\root\d3c00eec\66d53b35\App_Web_w0i23czm.2.cs:0
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +597
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +266
    


    Version Information: Microsoft .NET Framework Version:4.0.30128; ASP.NET Version:4.0.30128.1
  4. Zoran
    Admin
    Zoran avatar
    534 posts

    Posted 25 Mar 2010 Link to this post

    Hi Per,

    We managed to reproduce the behavior and also found the reason for it. This is a bug on our side and we will have it fixed for the next maintenance release (it will be available in about two weeks or sooner). For now, I can point you to a workaround, and that is to put the Telerik.OpenAccess.Adonet2.dll in the GAC of your server. Than, you should remove it from the "bin" folder of your deployed application. The other temporary workaround you can use is to download a trial version of VistaDb and deploy the VistaDB.4.dll in the bin folder alongside the other dll's of your application.

    Greetings,
    Zoran
    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. Brad Murry
    Brad Murry avatar
    1 posts
    Member since:
    Apr 2010

    Posted 04 Apr 2010 Link to this post

    I had the same problem deploying my app as an XP client.  The VistaDB dll addin workaround worked a treat.  I am new to working with Telerik, will subscribing customers be notified when maintenance releases are available?  If not how else to keep track?


    Cheers,

    Brad
  6. Zoran
    Admin
    Zoran avatar
    534 posts

    Posted 07 Apr 2010 Link to this post

    Hello Brad Murry,

     This issue is submitted in our Public Issue Tracking System (PITS) where the clients can check about the status of the bug. We have scheduled the fix for the next minor release in PITS. This means that the clients which have reported it or taken part of the forum discussion(yourself and Per Bornsjö) will get email notifications as soon as the fixed version is delivered on the Telerik web site.

    Greetings,
    Zoran
    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.
  7. Henk
    Henk avatar
    114 posts
    Member since:
    Apr 2006

    Posted 14 May 2010 Link to this post

    Hi,

    We also encounter the same problem when deploying our  application for testing to our client. The error occurs the first time and after refreshing the browser page it's ok. I hope this bug will be resolve real soon.

    Regards,


    Henk
  8. Zoran
    Admin
    Zoran avatar
    534 posts

    Posted 14 May 2010 Link to this post

    Hi Henk,

     This bug is actually fixed, you should just use the latest internal build of OpenAccess that is available on our web site. If you use the dll's from that version(2010.1.414.3) to deploy your application, you should not encounter any further issues.

    Greetings,
    Zoran
    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