locked
Issues publishing wcf service RRS feed

  • Question

  • User-1141816073 posted

    Hello,

    I have an application that has a UI layer, wcf layer that interacts with the database layer.  They are all in the same solution but seperate projects within the solution.  Each is setup to target x86.  

    My issue is i continually get the error:

    Could not load file or assembly 'Oracle.DataAccess' or one of its dependencies. An attempt was made to load a program with an incorrect format.<o:p></o:p>

    There are 2 ways I can make this go away.  

    1. Create a new wcf project, copy in my code and create a reference in the UI layer.  It then begins to work.

    2. Skip referencing the wcf layer and reference the database layter instead.  This is not the way the users want it to work however.  

    #1 will work as long as I do not do the following:

    1. Attempt to publish (Publish to my local machine so the same place development is happening).  When I try and publish the app and the wcf this causes the reference or the service it self i am not sure to completely break.  if i blow the service away and try and create another service reference to it i get this error.  The only way I have found to make it go away is to create another project and copy the code as i mention.

    I think i have everyting installed correctly as like i mention, it all seems to work without issue until i publish (only local as i mention at this point.).  I am a little concerned that when I publish to the server that I am going to have issues like this so only attmepting this locally currently.  

    I should also note that when I am publishing this to my local IIS i am setting the reference app pool to enable 32bit applications too.  

    Anyone know what I am doing wrong or how to get this to publish correctly?  

    Thanks for the help.

    Could not load file or assembly 'Oracle.DataAccess' or one of its dependencies. An attempt was made to load a program with an incorrect format.

    Tuesday, April 1, 2014 10:36 AM

All replies