Page 1 of 1

Automation Framework

Posted: Thu Jul 07, 2011 4:19 pm
by omayer
Getting this error when create Folder > sub folder > Code module(candidatepage.cs)

OS- win7, ranorex 3.4--

Error loading code-completion information for System.Data.DataSetExtensions from C:\Windows\assembly\GAC_MSIL\System.Data.DataSetExtensions\4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll:
Could not find assembly file.
Error loading code-completion information for System.Xml.Linq from C:\Windows\assembly\GAC_MSIL\System.Xml.Linq\4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll:
Could not find assembly file.

Re: Automation Framework

Posted: Thu Jul 07, 2011 4:39 pm
by Support Team
Hi,
omayer wrote:Error loading code-completion information for System.Data.DataSetExtensions from C:\Windows\assembly\GAC_MSIL\System.Data.DataSetExtensions\4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll:
Could not find assembly file.
Error loading code-completion information for System.Xml.Linq from C:\Windows\assembly\GAC_MSIL\System.Xml.Linq\4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll:
Could not find assembly file.
Which version of .Net 4.0 Framework is installed on your machine? The Client framework of the full framework? If only the client framework is installed, please install the full framework and try it again. It looks like an assembly couldn't be found.

Regards,
Peter
Ranorex Team

Re: Automation Framework

Posted: Thu Jul 07, 2011 9:14 pm
by omayer
currently i have installed -- Microsoft.NET Framework 4 Client profile and
Microsoft.NET Framework 4 Extended

Re: Automation Framework

Posted: Fri Jul 08, 2011 9:31 am
by Support Team
Hi,
omayer wrote:Getting this error when create Folder > sub folder > Code module(candidatepage.cs)
Would it be possible to post us this code file above. Even better would be to send us your whole project, to check the issue. You can send us the project to [email protected]

Did you install Ranorex before or after you installed the Microsoft.NET Framework 4 Extended? If you installed the framework after Ranorex, please repair the installation of Ranorex.
Could you please also check if the files
  • System.Data.DataSetExtensions.dll
  • System.Xml.Linq.dll
are available in GAC. Therefore just open your Windows Explorer, move to Windows\assembly and check if the files are available.

Thanks in advance.

Regards,
Peter
Ranorex Team

Re: Automation Framework

Posted: Fri Jul 08, 2011 2:18 pm
by omayer
Microsoft.NET Framework 4 Extended was installed before Ranorex.
Windows\assembly\
Assembly properties info --
System.Data.DataSetExtensions -- last modified -11/4/2010 9:53:31 PM -- Version -3.5.0.0
System.Xml.Linq ----last modified 11/4/2010 9:53:34 PM - Version -3.5.0.0

Code: Select all

/*
 * Created by Ranorex
 *
 * Date: 7/8/2011
 * Time: 8:36 AM
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;
using System.Drawing;
using System.Threading;
using System.Windows.Forms;

using Ranorex;
using Ranorex.Core;
using Ranorex.Core.Testing;

namespace TestTool
{
    /// <summary>
    /// Description of Candidate.
    /// </summary>
    [TestModule("FC19F521-6202-4554-BF9A-71C981F18718", ModuleType.UserCode, 1)]
    public class Candidate : ITestModule
    {
        /// <summary>
        /// Constructs a new instance.
        /// </summary>
        public Candidate()
        {
            // Do not delete - a parameterless constructor is required!
        }

        /// <summary>
        /// Performs the playback of actions in this module.
        /// </summary>
        /// <remarks>You should not call this method directly, instead pass the module
        /// instance to the <see cref="TestModuleRunner.Run(ITestModule)"/> method
        /// that will in turn invoke this method.</remarks>
        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor = 1.0;
        }
    }
}     

Re: Automation Framework

Posted: Mon Jul 11, 2011 11:50 am
by Support Team
Hi,
omayer wrote:Microsoft.NET Framework 4 Extended was installed before Ranorex.
Windows\assembly\
Assembly properties info --
System.Data.DataSetExtensions -- last modified -11/4/2010 9:53:31 PM -- Version -3.5.0.0
System.Xml.Linq ----last modified 11/4/2010 9:53:34 PM - Version -3.5.0.0
Please try to delete the references of you project references and re-add them. If this doesn't help, please could you send us your project to analyze the issue, because we are not able to reproduce it. Please also check following "C:\Windows\Microsoft.NET\assembly\GAC_MSIL" assembly folder if you can find the expected DLL. Please compare the path of your error to the assembly path.

Regards,
Peter
Ranorex Team