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.
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.
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.
Is there anyway can disable roslyn in my project? I desperately need a solution to this problem.
Note: I am using a shared hosting environment. All my past projects have no issues (done with VS 2013).
- Edited by CryoWerx Sunday, July 26, 2015 7:01 AM edit text
>>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
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.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.
I also encountered this issue using Visual Studio Community with GoDaddy hosting. I was able to work around it by uninstalling the Roslyn package from my project. It's this package:
I haven't yet determined if there's any drawbacks to uninstalling it, but when I published the application to GoDaddy I no longer got the group policy error and everything appears to be working fine.
I don't know enough about the new platform to know if there's a hit from uninstalling it, but at least it's now working on GoDaddy. Here's more info that I'm continuing to read:
Best of luck.
I have noticed a minor drawback to uninstalling this package:
Some of the new C# 6.0 language features if used in Views (MVC project) will not compile. Many of my views use the ?. null checking operator for accessing Model properties. All of these views now return errors on my Godaddy hosted MVC 5 application.
This error occurs because Views (by default) are compiled at runtime using the .NET pipeline (not pre-compiled).
To resolve this issue, simply uncheck the "Allow precompiled site to be updatable" option in your publish profile settings. This should pre-compile your views and allow your C# 6.0 (Latest version of Roslyn Compiler) to run like a champ.
- Proposed as answer by Arni Leibovits Tuesday, August 16, 2016 7:36 PM