相关疑难解决方法(0)

将Visual Studio C#项目从x86更改为任何CPU

我正在使用Visual Studio 2005开发一些C#项目,我正在尝试将平台目标从x86更改为任何CPU.我已经完成了我所知道的所有依赖项,并确保它们也是使用corflags工具为任何CPU构建的.

当我在Visual Studio 2005中更改平台目标时,似乎它保存了更改,但是当我构建项目时,它仍然使用x86.下次打开项目时,平台目标已重置为x86.

这只发生在解决方案中的几个项目中,这是否意味着某处还有其他32位依赖项?

我可以在命令行上手动运行C#编译器/platform:anycpu,但我没有收到错误,但我不确定这是否正确,我希望能够在Visual Studio中构建.

我该怎么做才能解决这个问题?

c# visual-studio-2005

25
推荐指数
1
解决办法
4万
查看次数

CLR检测到无效程序

需要任何帮助,想法来找出这个问题.

我们正在开发一个应用程序,该应用程序调用SAP以使用ERPConnect发布一些数据.我们在WCF服务中的一个Entity Framework调用中遇到以下问题.我们使用的是.NET4.0,Win 2008 Server.

活动中包含以下信息:

exception in getting ****getrebateproposal**-****Common Language Runtime detected an invalid program.******   at System.Data.Entity.DynamicProxies.RebateProposal_E1004D9B0153012E0A7A09FC9B574872909349EC992253740AB3C066FC63CF4D.set_Id(Decimal )
       at lambda_method(Closure , Shaper )
       at System.Data.Common.Internal.Materialization.Shaper.HandleEntityAppendOnly[TEntity](Func`2 constructEntityDelegate, EntityKey entityKey, EntitySet entitySet)
       at lambda_method(Closure , Shaper )
       at System.Data.Common.Internal.Materialization.Coordinator`1.ReadNextElement(Shaper shaper)
       at System.Data.Common.Internal.Materialization.Shaper`1.SimpleEnumerator.MoveNext()
       at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
       at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
       at CommercialTermsRepository.GetRebateProposalsAmountToPay(String rebateAgreement) in D:\Projects\TFS\CIT V2\DataModel\BusinessObjects\CommercialTermsRepository.cs:line 794
       at SAPInterface.RebateProposalService.SetZv41Data(List`1 uploadRebates) in D:\Projects\TFS\CIT V2\Server\UserService\RebateProposalService.svc.cs:line 187
Run Code Online (Sandbox Code Playgroud)

.net c# clr sap entity-framework

2
推荐指数
1
解决办法
2604
查看次数

标签 统计

c# ×2

.net ×1

clr ×1

entity-framework ×1

sap ×1

visual-studio-2005 ×1