We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Bootstrapping a server on Mac/Linux

Hello,

I'm a complete noob in dotnet. I'm only getting into it because I need it for the JavaScript Spreadsheet import/export functionality. I'm developing on Mac and plan to deploy to Docker. I tried to start a Web API project using Yeoman as described here https://docs.asp.net/en/latest/client-side/yeoman.html (which worked fine) and tried to copy parts of the project from this issue https://www.syncfusion.com/forums/124081/updated-mapper-webapi-controller-sample but I couldn't figure out how to add the dependencies. I tried adding NuGet.config file with the following content:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <add key="Syncfusion ASP.NET MVC NuGet Package" value="http://nuget.syncfusion.com/aspnetmvc" />
  </packageSources>
</configuration>

but when running dotnet restore , I got the following output:

info :   GET http://nuget.syncfusion.com/FindPackagesById()?id='Microsoft.NETCore.DotNetHostResolver'

info :   CACHE https://api.nuget.org/v3-flatcontainer/microsoft.netcore.dotnethostresolver/index.json

info :   InternalServerError http://nuget.syncfusion.com/FindPackagesById()?id='Microsoft.NETCore.DotNetHostResolver' 357ms

info :   GET http://nuget.syncfusion.com/FindPackagesById()?id='Microsoft.NETCore.DotNetHostResolver'

info :   InternalServerError http://nuget.syncfusion.com/FindPackagesById()?id='Microsoft.NETCore.DotNetHostResolver' 347ms

info :   GET http://nuget.syncfusion.com/FindPackagesById()?id='Microsoft.NETCore.DotNetHostResolver'

info :   InternalServerError http://nuget.syncfusion.com/FindPackagesById()?id='Microsoft.NETCore.DotNetHostResolver' 330ms

log  : Retrying 'FindPackagesByIdAsyncCore' for source 'http://nuget.syncfusion.com/FindPackagesById()?id='Microsoft.NETCore.DotNetHostResolver''.

log  : Response status code does not indicate success: 500 (Internal Server Error).

info :   GET http://nuget.syncfusion.com/FindPackagesById()?id='Microsoft.NETCore.DotNetHostResolver'

info :   InternalServerError http://nuget.syncfusion.com/FindPackagesById()?id='Microsoft.NETCore.DotNetHostResolver' 343ms

info :   GET http://nuget.syncfusion.com/FindPackagesById()?id='Microsoft.NETCore.DotNetHostResolver'

info :   InternalServerError http://nuget.syncfusion.com/FindPackagesById()?id='Microsoft.NETCore.DotNetHostResolver' 335ms

info :   GET http://nuget.syncfusion.com/FindPackagesById()?id='Microsoft.NETCore.DotNetHostResolver'

info :   InternalServerError http://nuget.syncfusion.com/FindPackagesById()?id='Microsoft.NETCore.DotNetHostResolver' 338ms

log  : Retrying 'FindPackagesByIdAsyncCore' for source 'http://nuget.syncfusion.com/FindPackagesById()?id='Microsoft.NETCore.DotNetHostResolver''.

log  : Response status code does not indicate success: 500 (Internal Server Error).

info :   GET http://nuget.syncfusion.com/FindPackagesById()?id='Microsoft.NETCore.DotNetHostResolver'

info :   InternalServerError http://nuget.syncfusion.com/FindPackagesById()?id='Microsoft.NETCore.DotNetHostResolver' 328ms

info :   GET http://nuget.syncfusion.com/FindPackagesById()?id='Microsoft.NETCore.DotNetHostResolver'

info :   InternalServerError http://nuget.syncfusion.com/FindPackagesById()?id='Microsoft.NETCore.DotNetHostResolver' 336ms

info :   GET http://nuget.syncfusion.com/FindPackagesById()?id='Microsoft.NETCore.DotNetHostResolver'

info :   InternalServerError http://nuget.syncfusion.com/FindPackagesById()?id='Microsoft.NETCore.DotNetHostResolver' 327ms

error: Failed to retrieve information from remote source 'http://nuget.syncfusion.com/FindPackagesById()?id='Microsoft.NETCore.DotNetHostResolver''.

error: Response status code does not indicate success: 500 (Internal Server Error).

error: Failed to retrieve information from remote source 'http://nuget.syncfusion.com/FindPackagesById()?id='Microsoft.NETCore.DotNetHostResolver''.

error:   Response status code does not indicate success: 500 (Internal Server Error).


and trying to add the 7 DLLs required for spreadsheet to the project's bin directory it didn't seem to be recognized and running dotnet run produced this error:

/xlsx/XlsxServer/Controllers/JSXLExportController.cs(1,7): error CS0246: The type or namespace name 'Syncfusion' could not be found (are you missing a using directive or an assembly reference?)

/xlsx/XlsxServer/Controllers/JSXLExportController.cs(2,7): error CS0246: The type or namespace name 'Syncfusion' could not be found (are you missing a using directive or an assembly reference?)

/xlsx/XlsxServer/Controllers/JSXLExportController.cs(3,7): error CS0246: The type or namespace name 'Syncfusion' could not be found (are you missing a using directive or an assembly reference?)

/xlsx/XlsxServer/Controllers/JSXLExportController.cs(11,14): error CS0234: The type or namespace name 'ServiceModel' does not exist in the namespace 'System' (are you missing an assembly reference?)

/xlsx/XlsxServer/Controllers/JSXLExportController.cs(12,14): error CS0234: The type or namespace name 'ServiceModel' does not exist in the namespace 'System' (are you missing an assembly reference?)

/xlsx/XlsxServer/Controllers/JSXLExportController.cs(14,14): error CS0234: The type or namespace name 'Web' does not exist in the namespace 'System' (are you missing an assembly reference?)

/xlsx/XlsxServer/Controllers/JSXLExportController.cs(15,14): error CS0234: The type or namespace name 'Web' does not exist in the namespace 'System' (are you missing an assembly reference?)

/XlsxServer/Controllers/JSXLExportController.cs(16,14): error CS0234: The type or namespace name 'Web' does not exist in the namespace 'System' (are you missing an assembly reference?)


Could you please explain how I should implement this on Mac/Linux or provide an example? I only need the controller with the endpoints for export/import. I got the client itself to work and it will be served from another server.

Thanks,

Gabi


1 Reply

MK Mohan Kumar Ramasamy Syncfusion Team June 7, 2016 01:43 PM UTC

Hi Gabriel, 
 
Thanks for contacting Syncfusion support. 
 
We have created the custom sample for your requirement. A support incident has been created under your account to track the status of the sample. Please log on to our support website to check for further updates.

https://www.syncfusion.com/account/login?ReturnUrl=/support/directtrac/incidents   
 
 
Regards, 
Mohankumar R 


Loader.
Up arrow icon