【发布时间】:2014-07-03 13:47:53
【问题描述】:
我使用 SOAP Asp 实现。 Net 3.5 和 VS2013 Express,一个遗留系统。
有一个 web-service 运行的站点运行良好,但是在发布到服务器时会产生以下错误。一定有什么问题?
Server was unable to process request. ---> Unable to generate a temporary class (result=1).
error CS0272: The property or indexer 'SGR.Modelo.Servicos.IntegracaoMovimentacao.MovimentoDTO.Totalizacao' cannot be used in this context because the set accessor is inaccessible
error CS0272: The property or indexer 'SGR.Modelo.Servicos.IntegracaoMovimentacao.MovimentoDTO.Totalizacao' cannot be used in this context because the set accessor is inaccessible
Descrição: Ocorreu uma exceção sem tratamento durante a execução da atual solicitação da Web. Examine o rastreamento de pilha para obter mais informações sobre o erro e onde foi originado no código.
Detalhes da Exceção: System.ServiceModel.FaultException: Server was unable to process request. ---> Unable to generate a temporary class (result=1).
error CS0272: The property or indexer 'SGR.Modelo.Servicos.IntegracaoMovimentacao.MovimentoDTO.Totalizacao' cannot be used in this context because the set accessor is inaccessible
error CS0272: The property or indexer 'SGR.Modelo.Servicos.IntegracaoMovimentacao.MovimentoDTO.Totalizacao' cannot be used in this context because the set accessor is inaccessible
【问题讨论】:
-
那么,你试过我的答案了吗?
标签: c# asp.net web-services