cancel
Showing results for 
Search instead for 
Did you mean: 

Error when building WS

Former Member
0 Kudos

Hi

When I try to build my ws project, I get several warnings as below.

Can anybody tell me where to find the configuration manager, and what to do there

Warning1There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "Sybase.DataWindow.Interop, Version=1.5.0.0, Culture=neutral, PublicKeyToken=cc0f66dd9541b3da, processorArchitecture=x86", "x86". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.
15796mywcfservice (C:\IFSinterfaceTest)

My machine is running 64bit windows 7

/Regin

Accepted Solutions (1)

Accepted Solutions (1)

former_member190719
Active Contributor
0 Kudos

What product are you using?  The version number of the assembly makes me think DataWindow.Net 1.5?

Former Member
0 Kudos

I'm running PB.NET 12.5.2 build 5583

former_member190719
Active Contributor
0 Kudos

You're correct.  The version of that file provided with 12.5 is marked 1.5.

Looks like the issue may be here:

http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc00357.1251/doc/html/kwi13...

I can create a WCF web service that uses a datawindow and doesn't reference that assembly.  Are you explicitly adding that assembly to the references?

Former Member
0 Kudos

hmm... I'm not using datawindows

Just a simple nvo with one function returning parameter x 2

Should not give any problems

former_member190719
Active Contributor
0 Kudos

Do you see a reference to Sybase.DataWindow.Interop in the references for your project.  PowerBuilder shouldn't be including it, and it's the fact that it is being included somehow that is the issue.

Former Member
0 Kudos

No, I see no reference to Sybase.Datawindow.xxxx or any of the other warnings I get.

I have attached some screendumps.

...and another thing that surprise me, is that my method is not shown in the WSDL-file.

More difficult than I thought it would be to create a simple webservice..

Former Member
0 Kudos

Here is also a screendump of WSDL file

former_member190719
Active Contributor
0 Kudos

I've got pretty much the same setup, yet no errors.

Two things.

1.  Look in the out folder under the project main directly and look for a file ending in "csproj".  Open that up and make sure there arent' referencs to those assemblies in that file.

2.  Feel free to zip up your project, put it in a file sharing location somewhere, and then post the link.  One of use can look at the project and see if there is some obvious issue that I'm not seeing from your screen shots.

Former Member
0 Kudos

Sorry for my late reply! Have been on vacation for a few days.

Here is a link to where I have zipped an uploaded my solution.

http://www.sendspace.com/file/e4gkf5

former_member190719
Active Contributor
0 Kudos

Actually, don't know what to tell you.  I was able to compile the project fine, run it, and execute a test against it using SOAPUI.

former_member202249
Active Participant
0 Kudos

What .NET frameworks do you have installed?  Specifically do you have the  4.5 Framework installed?   PB 12.5.x does not work well with it. 

Former Member
0 Kudos

Uninstalled .NET Framework 4.5 and installed 4.0, and now my service works

Thanks!

Former Member
0 Kudos

The .NET Framework 4.5 seems to be the reason.

Uninstalled 4.5 and installed 4.0, and the service works fine

Thanks for your help

Former Member
0 Kudos

Hi Everyone;

  FWIW: Its a well known fact that PB.Net 12.5.x does not work well with the .net 4.5 framework present (aka active).

Regards ... Chris

former_member190719
Active Contributor
0 Kudos

Cool.  Could you go ahead and mark the question answered with Patricia's answer as the correct one?  Thanks!

Answers (0)