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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Bootstrapping a server on Mac/Linux

Thread ID:

Created:

Updated:

Platform:

Replies:

124390 Jun 6,2016 09:48 PM UTC Jun 7,2016 01:43 PM UTC ASP.NET MVC 1
loading
Tags: Spreadsheet
Gabriel Axel
Asked On June 6, 2016 09:48 PM UTC

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


Mohan Kumar Ramasamy [Syncfusion]
Replied On 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 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;