06-23-2011 12:43 AM
SDK is new to me. my colleague and I added ACT.Framework reference to our program. We tried to add ACT.Framework reference just to test how these dll work. We were trying to load a form but we ran the code we encountered the error, "The type or namespace name 'ACT' could not be found (are you missing a using directive or an assembly reference?)". What does it mean? are we missing any libraries? We already have the files from ACT_Premium_2011\ACTWG\GlobalAssemblyCache of the ACT installer. What else are we missing? Do we still need to download something? Is there a sort of installer for us to be able to code plug-ins for ACT?
Please advise, thanks in advance
06-23-2011 01:17 AM
I'm most probably not understanding properly here so apologies!
If you've got a ref to Act.Framework also add a ref to Act.Shared.Collections in your project. You should be able to simply start using the framework by including a using statement at the top of your cs file (if your doing it in C#)?
06-29-2011 06:18 PM
Thanks for responding to my post. I'm sorry for not being so clear.
I have hear my sample codes for your reference:
static class Program
/// The main entry point for the application.
static void Main()
ActFramework ACTFM = new ActFramework();
ACTFM.LogOn("N:\\TSA\\Zilin\\ACTTest\\TSATest.pad", "tan zilin", "");
I use Visual Studio 4.0, dotnet framework 4.0, for ACT! 2011 SDK. I have installed the program to a 32-bit computer. When I build the solution, I get the error "The type or namespace 'Framework' does not exist in the namespace 'Act' (are you missing an assembly reference?)"
Please advise how to fix the issue.
06-29-2011 11:43 PM
06-30-2011 09:14 AM
Thanks for your response. When you say, "You'll need to convert your project into .NET 3.5 Framework Project." Does this mean that if I have different versions of .NET (say 2.0, 3.0, 3.5 and 4.0) in my computer, I need to uninstall everything but not the .NET 3.5?
Also, what do you mean by "Also ensure that if you are coding on a 64-bit machine that you compile for x86 CPU not "any""? Sorry am not really an IT expert expecially when it comes to hardware-related items.
Thanks in advance.
06-30-2011 09:30 AM
No, you don't need to remove anything. You can simply right click on your project file, should be right under the solution. In the properties windows on the application tab you can select the target framework.
As for the processor that's being targeted, at the top of visual studio, next to the debug/release drop down is another drop down where you can select your target processor. On 64bit systems you can choose x86 or x64, you want to select the former.
06-30-2011 12:13 PM
Just to build off of what was previously stated in case others run into this; those options aren't shown by default in VB Express 2010. However, x86 is the default target for this edition (not sure about C#/C++ editions).
You can show them by following the below steps (grabbed from Here)
Tools > Settings > Expert Settings
Tools > Options > Project and Solutions > General > Show advanced build configuration-Checked.
Finally, Build > Configuration Manager.
07-03-2011 09:14 AM
Hi Matthew and Knif,
I have selected the .NET 3.5 Framework Project and x86 processor. The form has loaded when I click Start Debug. . However, when I try to Build Solution, I encountered the following:
Warning 1 The primary reference "Microsoft.CSharp", which is a framework assembly, could not be resolved in the currently targeted framework. ".NET Framework,Version=v3.5". To resolve this problem, either remove the reference "Microsoft.CSharp" or retarget your application to a framework version which contains "Microsoft.CSharp". WindowsFormsApplication1
Warning 2 The referenced component 'Microsoft.CSharp' could not be found.
What does it mean? Should I remove Microsft.CSharp? I’ve searched from my computer such file, but I didn’t find any.
07-05-2011 05:46 AM
Based on what you said, you have a bad reference in your project. You'll need to remove it. This page shows how you can add/remove references. I will note that is for Visual Studio 2010 (but the process is basically the same back to VS2003).
If you keep having problems, after removing the reference, I'm going to suggest that you start a new project and set it up to the proper framework target (.NET 3.5, x86 CPU) before you add any of your code. Make sure it builds properly before you start, presumably, copying and pasting code. It just sounds like the configuration of the project got messed up somehow when you switched the target framework.