Mixed Mode Error when building in Release Mode

后端 未结 3 943
别跟我提以往
别跟我提以往 2021-01-19 02:30

I have c# asmx service project that was running on framework 2 with vs 2008 Now i have updated it to framework 4 with vs 2010

when i build dll in debug mode it compi

相关标签:
3条回答
  • 2021-01-19 02:58

    I got it working By going to Project-> Right Click-> Properties-> Build->Generate Serialiazation Assembly Change Value here "Auto" to Off and build on release mode it now works

    0 讨论(0)
  • 2021-01-19 03:01

    You would have to put it inside configuration tag check the link http://msdn.microsoft.com/en-us/library/bbx34a2h.aspx, which was also there in previous link answer.

    0 讨论(0)
  • 2021-01-19 03:14

    Do you have unmanaged code in your solution, or do you build against one?
    We had run into such issue at work when we moved to work with VS2010 and .net 4.
    What worked for us was adding App.config file to the project which contains the following:

    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
      <startup useLegacyV2RuntimeActivationPolicy="true">
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
      </startup>
    </configuration>
    
    0 讨论(0)
提交回复
热议问题