locked
deployment project error for 64 bit dlls RRS feed

  • Question

  • User-725020093 posted

    Hi All,

     I have a asp.net project with vdproj for deploment, which needs to be build as 64 bit application and it has 64 dlls references.  But I get sgen error  An attempt was made to load an assembly with an incorrect format. Is there anyway to get around this. I can't set generate serialization assembly - off.Can I replace the 32 bit sgen.exe with 64 bit version?

    Thanks

    Sunday, February 21, 2016 10:09 AM

All replies

  • User-166373564 posted

    Hi,

    Here are some suggestions:

    nnmsaspnet2015

     An attempt was made to load an assembly with an incorrect format.

    Make sure project is set to "Any CPU," and check whether it helps.

    nnmsaspnet2015

    Can I replace the 32 bit sgen.exe with 64 bit version?

    You can also try steps below ,

    1. Open IIS Manager
    2. Click on Application Pools
    3. Select whatever application pool you are using
    4. From right pane, click Advanced Settings...
    5. Set Enable 32-Bit Applications to True

    Please let me know if it still has same issue.

    Regards,

    Angie

    Tuesday, February 23, 2016 6:59 AM
  • User-725020093 posted

    Thanks Angie,

      But I am expecting to run the application in 64 bit mode itself hence trying to create msi to deploy 64 bit app, instead of downgrading it.

    Wednesday, February 24, 2016 7:47 PM