Altongate
Posts: 11
Joined: Fri Jan 05, 2007 6:36 pm
Location: United Kingdom

A reference to SerialNET.dll could not be added

Wed Dec 17, 2008 1:04 pm

I have been using Franson Serial Tools for more than a year now
I have had no problems, the tools are just great !

I use Visual Studio 2005 both .NET Desktop Framework and Compact Framework
I have licences for both

My old PC was running XP home SP2
I have recently had to move to a new PC
The new PC is running XP Proffesional SP2
I have re-installed Visual Studio 2005 OK
I have copied in all my projects OK
I have installed Serial Tools OK (now in C:\Program Files\Franson\SerialTools SDK\)

PROBLEM

When I open a Compact Framework project, Serial Tools are missing from the "Detected Dependancies" list
I get a pile of errors all relating to SerialNet.Port
I guess this is due to the missing reference

I right click on the project name
I click Add Reference
I browse to C:\Program Files\Franson\SerialTools SDK\dotnetcf and select SerialNET.dll
When I click OK I get the message "A reference to SerialNET.dll could not be added"

Help, what am I doing wrong ?

Many thanks
Graham Whyte

User avatar
johan
GpsGate
Posts: 14329
Joined: Wed Aug 04, 2004 10:40 pm
Location: Sweden
Contact: Website

RE: A reference to SerialNET.dll could not be added

Wed Dec 17, 2008 1:12 pm

Please post some of the error messages you get.

Regards,
Johan

Franson Support

Altongate
Posts: 11
Joined: Fri Jan 05, 2007 6:36 pm
Location: United Kingdom

RE: A reference to SerialNET.dll could not be added

Wed Dec 17, 2008 2:11 pm

Originally posted by johan

Please post some of the error messages you get.

Regards,
Johan

Franson Support


Errors are

--------------------------------------------------
Public WithEvents F_Serial As SerialNET.Port
Error 1 Type 'SerialNET.Port' is not defined.
F:\work\Visual Studio Projects\Datamat 6\Datamat 6\Module1.vb
--------------------------------------------------
Dim license As New SerialNET.License
Error 2 Type 'SerialNET.License' is not defined.
F:\work\Visual Studio Projects\Datamat 6\Datamat 6\Module1.vb
--------------------------------------------------
F_Serial = New SerialNET.Port
Error 3 Type 'SerialNET.Port' is not defined.
F:\work\Visual Studio Projects\Datamat 6\Datamat 6\Module1.vb
--------------------------------------------------
F_Serial.Handshake = SerialNET.Handshake.None
Error 4 Name 'SerialNET' is not declared.
F:\work\Visual Studio Projects\Datamat 6\Datamat 6\Module1.vb
--------------------------------------------------

Warning is

--------------------------------------------------
Imports SerialNET
Warning 5 Namespace or type specified in the Imports 'SerialNET'
doesn't contain any public member or cannot be found. Make sure the
namespace or the type is defined and contains at least one public member.
Make sure the imported element name doesn't use any aliases.
F:\work\Visual Studio Projects\Datamat 6\Datamat 6\home_page.vb
--------------------------------------------------

User avatar
johan
GpsGate
Posts: 14329
Joined: Wed Aug 04, 2004 10:40 pm
Location: Sweden
Contact: Website

RE: A reference to SerialNET.dll could not be added

Wed Dec 17, 2008 2:33 pm

Maybe you have created a .NET 2.0 project. Try to add the 2.0 versions of SerialNET.dll

Regards,
Johan

Franson Support

Altongate
Posts: 11
Joined: Fri Jan 05, 2007 6:36 pm
Location: United Kingdom

RE: A reference to SerialNET.dll could not be added

Wed Dec 17, 2008 3:13 pm

The project is for Compact Framework on a PDA
The project files are unchanged and were copied directly from a working system
The only difference is the location of the project files
They were in the default location in C:\Documents and Settings\.......
They are now in F:\work\Visual Studio ProjectsThe working reference on the old system is located in C:\Program Files\Franson\....
The reference which is missing and I can't add is to the same file in the same location on the new PC
I do not understand your comments in your last reply, how do I check the target settings ?
Where is the 2.0 DLL ?

User avatar
johan
GpsGate
Posts: 14329
Joined: Wed Aug 04, 2004 10:40 pm
Location: Sweden
Contact: Website

RE: A reference to SerialNET.dll could not be added

Wed Dec 17, 2008 3:18 pm

in the dotnet200 folders. You also find the if you go through the Start -> Programs -> Franson SerialTools SDK

Regards,
Johan

Franson Support

Altongate
Posts: 11
Joined: Fri Jan 05, 2007 6:36 pm
Location: United Kingdom

RE: A reference to SerialNET.dll could not be added

Wed Dec 17, 2008 4:39 pm

I seem to have fixed it many thanks for your help

The problem was the changed location of the project files
I moved them back to the default location and the reference re-appeared correctly without any futher action

ONLY REMAINING PROBLEM

When I build the project I get this fatal error
Error 1 The signing certificate could not be located. Ensure that it is in the current user's personal store. Datamat 6

None of the 3 projects in the solution have got the "sign this assembly" box checked

I have Googled this message with no useful result

User avatar
johan
GpsGate
Posts: 14329
Joined: Wed Aug 04, 2004 10:40 pm
Location: Sweden
Contact: Website

RE: A reference to SerialNET.dll could not be added

Wed Dec 17, 2008 4:48 pm

This error is not related to SerialTools. You have probably opted to sign your application, and as the error message says there is no certificate present to do so.

Maybe you had that certificate installed on your other PC.

Regards,
Johan

Franson Support

Altongate
Posts: 11
Joined: Fri Jan 05, 2007 6:36 pm
Location: United Kingdom

RE: A reference to SerialNET.dll could not be added

Wed Dec 17, 2008 5:13 pm

NONE OF THE PROJECTS ARE SIGNED, I just checked again

I have never installed any certificates on the old PC

I also get 2 Serial Tools warnings on the first build
They dissapear on the second and subsequent builds

Warning 1 Unable to find dependency 'mscorlib' (Signature='969DB8053D3322AC' Version='1.0.5000.0') of assembly 'SerialNET.dll' C:\Documents and Settings\Graham\My Documents\Visual Studio 2005\Projects\Datamat 6\GenerateCab1\GenerateCab1.vddproj

Warning 2 Unable to find dependency 'System.Windows.Forms' (Signature='969DB8053D3322AC' Version='1.0.5000.0') of assembly 'SerialNET.dll' C:\Documents and Settings\Graham\My Documents\Visual Studio 2005\Projects\Datamat 6\GenerateCab1\GenerateCab1.vddproj

User avatar
johan
GpsGate
Posts: 14329
Joined: Wed Aug 04, 2004 10:40 pm
Location: Sweden
Contact: Website

RE: A reference to SerialNET.dll could not be added

Wed Dec 17, 2008 5:15 pm

Maybe you should create a new project from scratch.

Regards,
Johan

Franson Support

Altongate
Posts: 11
Joined: Fri Jan 05, 2007 6:36 pm
Location: United Kingdom

RE: A reference to SerialNET.dll could not be added

Wed Dec 17, 2008 6:45 pm

Finally fixed it !!

"Sign the assembly" was NOT checked on the "Signing" tab

There is another check box on the "Devices" tab
"Sign the project output with this certificate"
This was checked for the PDA emulator device
The new Visual Sudio installation had done this

Many thanks again for your help

Return to “SerialTools”