Menu

#2036 Error with class + Advertise=yes + Server parameter

future
migrated
nobody
candle (347)
2013-08-21
2010-04-26
No

Hi,

I need to use advertise='yes', but when I compile with candle return this error

error CNDL0035 : The Class/@Server attribute cannot be specified when attribute advertise is present with value 'yes'.

But in my code don't exists the Server parameter on Class element. Here the part of my code:

<file id="user-content-myfile" name="myfile.exe" diskid="1" source="myfile.exe">
<typelib id="user-content-{GUID}" advertise="yes" language="0" majorversion="256" minorversion="0" helpdirectory="DIRINSTALL" description="ServerDescMyFile Library">
<appid id="user-content-{GUID}" advertise="yes">
<class id="user-content-{GUID}" context="LocalServer32" control="no" advertise="yes" version="1.0" description="DescMyFile">
<interface id="user-content-{GUID}" name="ICoDescMyFile" proxystubclassid="{GUID}" proxystubclassid32="{GUID}" versioned="no">
<progid id="user-content-ServerDescMyFile.CoDescMyFile" advertise="yes" description="DescMyFile">
</progid></interface></class>
</appid>
</typelib>
</file>

I try to compile on version 2.0, 3.0 and 3.5, all of then return the same error. Is this problem a bug?

[]'

Lucas

Discussion

  • Rob Mensching

    Rob Mensching - 2010-04-29

    The error message is incomplete. It should be telling you that the Server attribute is automatically populated when nested under a File element. To solve the problem, move your Class element out from under the File element.

     
  • Rob Mensching

    Rob Mensching - 2013-08-21
    • Status: open --> migrated
     
MongoDB Logo MongoDB