PC Review


Reply
Thread Tools Rate Thread

Is AxImp broken in SP3?

 
 
Al Cooke
Guest
Posts: n/a
 
      8th Sep 2004
Hi,

I'm experiencing problems with AxImp.exe since installing framework
1.0 service pack 3.

When I try to run AxImp I get:
AxImp Error: Invalid Primitive Type: System.Reflection.Missing. Only
CLS compliant primitive types can be used. Consider using
CodeObjectCreateExpression.

If I run AxImp with the /source option I get:
AxImp Error: The process cannot access the file "....cs" because it is
being used by another process.

The errors only occur for one of our OCXs, the others work fine. It
definitely seems to be related to the service pack. If I reinstall the
framework it works, but if I then install SP3 it breaks again.

Is anyone else experiencing this problem? Is there a fix or
workaround?

Thanks,
Al
 
Reply With Quote
 
 
 
 
=?Utf-8?B?RWQgR293YXJk?=
Guest
Posts: n/a
 
      9th Oct 2004
Hi Al,

I too have this problem. I guess there might be an unfavourable incantation
in our IDL files? Do let us know if you've found anything useful.

Thanks,

Ed

"Al Cooke" wrote:

> Hi,
>
> I'm experiencing problems with AxImp.exe since installing framework
> 1.0 service pack 3.
>
> When I try to run AxImp I get:
> AxImp Error: Invalid Primitive Type: System.Reflection.Missing. Only
> CLS compliant primitive types can be used. Consider using
> CodeObjectCreateExpression.
>
> If I run AxImp with the /source option I get:
> AxImp Error: The process cannot access the file "....cs" because it is
> being used by another process.
>
> The errors only occur for one of our OCXs, the others work fine. It
> definitely seems to be related to the service pack. If I reinstall the
> framework it works, but if I then install SP3 it breaks again.
>
> Is anyone else experiencing this problem? Is there a fix or
> workaround?
>
> Thanks,
> Al
>

 
Reply With Quote
 
Al Cooke
Guest
Posts: n/a
 
      26th Oct 2004
Eventually I found the problem.

On my control I had a couple of methods that accepted optional boolean
parameters but I hadn't explicitly specified a default value. Setting
a default value of False solved it! This only seems to be an issue
with booleans. I've got integers, doubles and objects with no default
values and they work OK.

Hope this helps!

Al


Ed Goward <Ed (E-Mail Removed)> wrote in message news:<1263A8C2-61EF-4BB5-9C6B-(E-Mail Removed)>...
> Hi Al,
>
> I too have this problem. I guess there might be an unfavourable incantation
> in our IDL files? Do let us know if you've found anything useful.
>
> Thanks,
>
> Ed
>
> "Al Cooke" wrote:
>
> > Hi,
> >
> > I'm experiencing problems with AxImp.exe since installing framework
> > 1.0 service pack 3.
> >
> > When I try to run AxImp I get:
> > AxImp Error: Invalid Primitive Type: System.Reflection.Missing. Only
> > CLS compliant primitive types can be used. Consider using
> > CodeObjectCreateExpression.
> >
> > If I run AxImp with the /source option I get:
> > AxImp Error: The process cannot access the file "....cs" because it is
> > being used by another process.
> >
> > The errors only occur for one of our OCXs, the others work fine. It
> > definitely seems to be related to the service pack. If I reinstall the
> > framework it works, but if I then install SP3 it breaks again.
> >
> > Is anyone else experiencing this problem? Is there a fix or
> > workaround?
> >
> > Thanks,
> > Al
> >

 
Reply With Quote
 
=?Utf-8?B?RWQgR293YXJk?=
Guest
Posts: n/a
 
      15th Nov 2004
That worked for me too - thanks lots!

Ed

"Al Cooke" wrote:

> Eventually I found the problem.
>
> On my control I had a couple of methods that accepted optional boolean
> parameters but I hadn't explicitly specified a default value. Setting
> a default value of False solved it! This only seems to be an issue
> with booleans. I've got integers, doubles and objects with no default
> values and they work OK.
>
> Hope this helps!
>
> Al
>
>
> Ed Goward <Ed (E-Mail Removed)> wrote in message news:<1263A8C2-61EF-4BB5-9C6B-(E-Mail Removed)>...
> > Hi Al,
> >
> > I too have this problem. I guess there might be an unfavourable incantation
> > in our IDL files? Do let us know if you've found anything useful.
> >
> > Thanks,
> >
> > Ed
> >
> > "Al Cooke" wrote:
> >
> > > Hi,
> > >
> > > I'm experiencing problems with AxImp.exe since installing framework
> > > 1.0 service pack 3.
> > >
> > > When I try to run AxImp I get:
> > > AxImp Error: Invalid Primitive Type: System.Reflection.Missing. Only
> > > CLS compliant primitive types can be used. Consider using
> > > CodeObjectCreateExpression.
> > >
> > > If I run AxImp with the /source option I get:
> > > AxImp Error: The process cannot access the file "....cs" because it is
> > > being used by another process.
> > >
> > > The errors only occur for one of our OCXs, the others work fine. It
> > > definitely seems to be related to the service pack. If I reinstall the
> > > framework it works, but if I then install SP3 it breaks again.
> > >
> > > Is anyone else experiencing this problem? Is there a fix or
> > > workaround?
> > >
> > > Thanks,
> > > Al
> > >

>

 
Reply With Quote
 
=?Utf-8?B?RGF2aWQ=?=
Guest
Posts: n/a
 
      25th Nov 2004
I too am experiencing this problem. Running aximp.exe on a particular .ocx
works fine with .net 1.1, but after applying .net 1.1 sp1, aximp.exe reports
the following errors on the same .ocx:

AxImp Error: Invalid Primitive Type: System.Reflection.Missing. Only CLS
complia
nt primitive types can be used. Consider using CodeObjectCreateExpression.

If I run aximp.exe with the /source switch, it reports:

AxImp Error: The process cannot access the file <autogenerated C# file path>
because it is being used by another process.

Examining the .cs file created by aximp reveals a premature EOF; it cuts off
in the middle of a function declaration.

I don't have any control over the interface of this .ocx so I can't use the
same method to "solve" the problem. It seems a bug was
introduced/reintroduced in .net 1.1 sp 1.


"Ed Goward" wrote:

> That worked for me too - thanks lots!
>
> Ed
>
> "Al Cooke" wrote:
>
> > Eventually I found the problem.
> >
> > On my control I had a couple of methods that accepted optional boolean
> > parameters but I hadn't explicitly specified a default value. Setting
> > a default value of False solved it! This only seems to be an issue
> > with booleans. I've got integers, doubles and objects with no default
> > values and they work OK.
> >
> > Hope this helps!
> >
> > Al
> >
> >
> > Ed Goward <Ed (E-Mail Removed)> wrote in message news:<1263A8C2-61EF-4BB5-9C6B-(E-Mail Removed)>...
> > > Hi Al,
> > >
> > > I too have this problem. I guess there might be an unfavourable incantation
> > > in our IDL files? Do let us know if you've found anything useful.
> > >
> > > Thanks,
> > >
> > > Ed
> > >
> > > "Al Cooke" wrote:
> > >
> > > > Hi,
> > > >
> > > > I'm experiencing problems with AxImp.exe since installing framework
> > > > 1.0 service pack 3.
> > > >
> > > > When I try to run AxImp I get:
> > > > AxImp Error: Invalid Primitive Type: System.Reflection.Missing. Only
> > > > CLS compliant primitive types can be used. Consider using
> > > > CodeObjectCreateExpression.
> > > >
> > > > If I run AxImp with the /source option I get:
> > > > AxImp Error: The process cannot access the file "....cs" because it is
> > > > being used by another process.
> > > >
> > > > The errors only occur for one of our OCXs, the others work fine. It
> > > > definitely seems to be related to the service pack. If I reinstall the
> > > > framework it works, but if I then install SP3 it breaks again.
> > > >
> > > > Is anyone else experiencing this problem? Is there a fix or
> > > > workaround?
> > > >
> > > > Thanks,
> > > > Al
> > > >

> >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
aximp usage jonpb Microsoft C# .NET 4 25th Sep 2007 11:16 PM
Re: aximp usage jonpb Microsoft Dot NET Framework Forms 1 25th Sep 2007 11:16 PM
Aximp.exe =?Utf-8?B?WWFlbA==?= Microsoft Outlook Program Addins 1 6th Jun 2007 08:40 AM
AxImp & VB .Net Moi Microsoft Dot NET 1 20th Jul 2005 08:29 AM
AxImp and OCX dream machine Microsoft C# .NET 1 9th Jul 2003 06:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:16 PM.