Roslyn CSC.exe,托管服务器上的Web API 2 [英] Roslyn CSC.exe, Web API 2 on Hosting Server

查看:142
本文介绍了Roslyn CSC.exe,托管服务器上的Web API 2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我一直在寻找我的挑战解决方案。我最近升级到Visual Studio 2015,我使用.NET Framework 4.5.2进行Web API 2项目。我之前在VS 2013上完成了web api相关项目,所有
在托管环境中都能正常工作。我正在使用GoDaddy。

Hi there, I have been searching high and low for a solution to my challenge. I have recently upgraded to Visual Studio 2015, and I am using .NET Framework 4.5.2 for my Web API 2 project. I have done web api related projects previously on VS 2013, and everything works fine on the hosting environment. I am using GoDaddy.

问题:

当我编译并将我的web api项目文件上传到托管服务器时,它告诉我有在Bin \roslyn \文件夹中执行CSC.exe文件的组策略错误。

When I compiled and uploaded my web api project files to the hosting server, it tells me that there is a group policy error for executing the CSC.exe file within the Bin\roslyn\ folder.

在VS 2013中,当我们编译项目时,没有这样的文件夹用于" roslyn"。

In VS 2013, when we compile our projects, there is no such folder for "roslyn".

我曾试图阅读有关罗斯林的内容,但这对我的情况似乎没有帮助。

I have tried to read up about Roslyn but that doesn't seem to help me with my situation.

无论如何都可以在我的项目中禁用roslyn?我迫切需要一个解决这个问题的方法。

Is there anyway can disable roslyn in my project? I desperately need a solution to this problem.

注意:我使用的是共享托管环境。我以前的所有项目都没有问题(使用VS 2013完成)。

Note: I am using a shared hosting environment. All my past projects have no issues (done with VS 2013).

推荐答案

你好,

>>当我编译并将我的web api项目文件上传到托管服务器时,它告诉我在Bin \中执行CSC.exe文件时出现组策略错误roslyn \文件夹

>>When I compiled and uploaded my web api project files to the hosting server, it tells me that there is a group policy error for executing the CSC.exe file within the Bin\roslyn\ folder

根据您的描述,第三方托管服务器将此组策略与升级后的项目一起抛出。您是否尝试过在VS 2015中创建的新项目并且可以再次抛出错误?我建议你把你的问题放在托管
服务器支持频道的第三方。

According to your description, the third party hosting server throw this group policy with the upgraded project. Have you tried a new project created in VS 2015 and can it throw error again? I would recommend you put your question on third party hosting server support channel.

如果您有任何疑虑,请随时告诉我。

Feel free to le me know if you have any concerns.

问候,


这篇关于Roslyn CSC.exe,托管服务器上的Web API 2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆