Automation Framework

Ranorex Spy, Recorder, and Studio.
omayer
Posts: 458
Joined: Thu Oct 28, 2010 6:14 pm

Automation Framework

Post by omayer » Thu Jul 07, 2011 4:19 pm

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.
Tipu

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Automation Framework

Post by Support Team » Thu Jul 07, 2011 4:39 pm

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
.
Image

omayer
Posts: 458
Joined: Thu Oct 28, 2010 6:14 pm

Re: Automation Framework

Post by omayer » Thu Jul 07, 2011 9:14 pm

currently i have installed -- Microsoft.NET Framework 4 Client profile and
Microsoft.NET Framework 4 Extended
Tipu

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Automation Framework

Post by Support Team » Fri Jul 08, 2011 9:31 am

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
.
Image

omayer
Posts: 458
Joined: Thu Oct 28, 2010 6:14 pm

Re: Automation Framework

Post by omayer » Fri Jul 08, 2011 2:18 pm

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;
        }
    }
}     
Tipu

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Automation Framework

Post by Support Team » Mon Jul 11, 2011 11:50 am

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
.
Image