COMM control works in debug mode, but not in release

B

barbara_dave

Hi All,

I have an application using mscomm32.ocx to open a serial port. I am
using VS.net 2003 on XP. when I built the program in debug mode, I got
0 errors, 0 warnings. Build: 1 succeeded, 0 failed, 0 skipped. But I
change to release mode and build, I got the following error messages:

Could not find type 'AxMSComm'. Please make sure that the assembly
that contains this type is referenced. If this type is a part of your
development project, make sure that the project has been successfully
built;

The type or namespace name 'AxMSCommLib' could not be found (are you
missing a using directive or an assembly reference?)

C:\SRC\VisionConfig\VisionConfig\frmConfig.cs(747): The variable
'axMSComm' is either undeclared or was never assigned.

How to solve this problem?

Thanks!
 
B

barbara_dave

Hi All,

I have an application using mscomm32.ocx to open a serial port. I am
using VS.net 2003 on XP. when I built the program in debug mode, I got
0 errors, 0 warnings. Build: 1 succeeded, 0 failed, 0 skipped. But I
change to release mode and build,  I got the following error messages:

 Could not find type 'AxMSComm'.  Please make sure that the assembly
that contains this type is referenced.  If this type is a part of your
development project, make sure that the project has been successfully
built;

The type or namespace name 'AxMSCommLib' could not be found (are you
missing a using directive or an assembly reference?)

C:\SRC\VisionConfig\VisionConfig\frmConfig.cs(747): The variable
'axMSComm' is either undeclared or was never assigned.

How to solve this problem?

Thanks!

Sorry, please ignore my question. I found this caused by the DLL files
are read only in the release folder.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top