Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webapihost sample does not work on mono #21

Open
johnjelinek opened this issue Jan 15, 2015 · 0 comments
Open

webapihost sample does not work on mono #21

johnjelinek opened this issue Jan 15, 2015 · 0 comments

Comments

@johnjelinek
Copy link

$ scriptcs start.csx -loglevel debug
DEBUG: Resolving App Domain Assembly Resolver
DEBUG: Registering initialization services
DEBUG: Registering default: ScriptCs.Contracts.IFileSystem
DEBUG: Registering default: ScriptCs.Contracts.IAssemblyUtility
DEBUG: Registering default: ScriptCs.Contracts.IPackageContainer
DEBUG: Registering default: ScriptCs.Contracts.IPackageAssemblyResolver
DEBUG: Registering default: ScriptCs.Contracts.IAssemblyResolver
DEBUG: Registering default: ScriptCs.Contracts.IInstallationProvider
DEBUG: Registering default: ScriptCs.Contracts.IPackageInstaller
DEBUG: Registering default: ScriptCs.Hosting.IModuleLoader
DEBUG: Registering default: ScriptCs.Contracts.IAppDomainAssemblyResolver
DEBUG: Mapping Assembly Autofac.Integration.Mef to version:3.0.0.0
DEBUG: Mapping Assembly Autofac to version:3.3.0.0
DEBUG: Mapping Assembly Common.Logging to version:2.1.2.0
DEBUG: Mapping Assembly ICSharpCode.NRefactory.CSharp to version:5.0.0.0
DEBUG: Mapping Assembly ICSharpCode.NRefactory to version:5.0.0.0
DEBUG: Mapping Assembly Microsoft.Web.XmlTransform to version:2.1.0.0
DEBUG: Mapping Assembly Mono.CSharp to version:4.0.0.0
DEBUG: Mapping Assembly Mono.Cecil to version:0.9.5.0
DEBUG: Mapping Assembly Newtonsoft.Json to version:6.0.0.0
DEBUG: Mapping Assembly NuGet.Core to version:2.8.50506.491
DEBUG: Mapping Assembly PowerArgs to version:2.0.4.0
DEBUG: Mapping Assembly Roslyn.Compilers.CSharp to version:1.2.0.0
DEBUG: Mapping Assembly Roslyn.Compilers to version:1.2.0.0
DEBUG: Mapping Assembly ScriptCs.Contracts to version:0.0.0.0
DEBUG: Mapping Assembly ScriptCs.Core to version:0.0.0.0
DEBUG: Mapping Assembly ScriptCs.Engine.Mono to version:0.0.0.0
DEBUG: Mapping Assembly ScriptCs.Engine.Roslyn to version:0.0.0.0
DEBUG: Mapping Assembly ScriptCs.Hosting to version:0.0.0.0
DEBUG: Mapping Assembly scriptcs to version:0.0.0.0
DEBUG: Found: /Users/jjelinek/Projects/restsharp-webapi-auth/packages/Microsoft.AspNet.WebApi.Client.5.2.2/lib/net45/System.Net.Http.Formatting.dll
DEBUG: Found: System.Net.Http
DEBUG: Found: /Users/jjelinek/Projects/restsharp-webapi-auth/packages/Microsoft.AspNet.WebApi.Core.5.2.2/lib/net45/System.Web.Http.dll
DEBUG: Found: /Users/jjelinek/Projects/restsharp-webapi-auth/packages/Microsoft.AspNet.WebApi.SelfHost.5.2.2/lib/net45/System.Web.Http.SelfHost.dll
DEBUG: Found: /Users/jjelinek/Projects/restsharp-webapi-auth/packages/Microsoft.Bcl.1.1.9/lib/net40/System.IO.dll
DEBUG: Found: /Users/jjelinek/Projects/restsharp-webapi-auth/packages/Microsoft.Bcl.1.1.9/lib/net40/System.Runtime.dll
DEBUG: Found: /Users/jjelinek/Projects/restsharp-webapi-auth/packages/Microsoft.Bcl.1.1.9/lib/net40/System.Threading.Tasks.dll
DEBUG: Found: /Users/jjelinek/Projects/restsharp-webapi-auth/packages/Microsoft.Net.Http.2.2.22/lib/net45/System.Net.Http.Primitives.dll
DEBUG: Found: /Users/jjelinek/Projects/restsharp-webapi-auth/packages/Microsoft.Net.Http.2.2.22/lib/net45/System.Net.Http.Extensions.dll
DEBUG: Found: System.Net.Http.WebRequest
DEBUG: Found: /Users/jjelinek/Projects/restsharp-webapi-auth/packages/Newtonsoft.Json.6.0.4/lib/net45/Newtonsoft.Json.dll
DEBUG: Found package assembly: System.Net.Http.Formatting.dll
DEBUG: Found package assembly: System.Net.Http
DEBUG: Found package assembly: System.Web.Http.dll
DEBUG: Found package assembly: System.Web.Http.SelfHost.dll
DEBUG: Found package assembly: System.IO.dll
DEBUG: Found package assembly: System.Runtime.dll
DEBUG: Found package assembly: System.Threading.Tasks.dll
DEBUG: Found package assembly: System.Net.Http.Primitives.dll
DEBUG: Found package assembly: System.Net.Http.Extensions.dll
DEBUG: Found package assembly: System.Net.Http.WebRequest
DEBUG: Found package assembly: Newtonsoft.Json.dll
DEBUG: Mapping Assembly System.Net.Http.Formatting to version:5.2.2.0
DEBUG: Mapping Assembly System.Web.Http to version:5.2.2.0
DEBUG: Mapping Assembly System.Web.Http.SelfHost to version:5.2.2.0
DEBUG: Mapping Assembly System.IO to version:2.6.9.0
DEBUG: Mapping Assembly System.Runtime to version:2.6.9.0
DEBUG: Mapping Assembly System.Threading.Tasks to version:2.6.9.0
DEBUG: Mapping Assembly System.Net.Http.Primitives to version:4.2.22.0
DEBUG: Mapping Assembly System.Net.Http.Extensions to version:2.2.22.0
DEBUG: Resolving ModuleLoader
DEBUG: Resolving FileSystem
DEBUG: Loading modules from: /Users/jjelinek/.local/share/scriptcs
DEBUG: Found assembly: /Users/jjelinek/Projects/scriptcs/src/ScriptCs/bin/Release/Autofac.Integration.Mef.dll
DEBUG: Found assembly: /Users/jjelinek/Projects/scriptcs/src/ScriptCs/bin/Release/Autofac.dll
DEBUG: Found assembly: /Users/jjelinek/Projects/scriptcs/src/ScriptCs/bin/Release/Common.Logging.dll
DEBUG: Found assembly: /Users/jjelinek/Projects/scriptcs/src/ScriptCs/bin/Release/ICSharpCode.NRefactory.CSharp.dll
DEBUG: Found assembly: /Users/jjelinek/Projects/scriptcs/src/ScriptCs/bin/Release/ICSharpCode.NRefactory.dll
DEBUG: Found assembly: /Users/jjelinek/Projects/scriptcs/src/ScriptCs/bin/Release/Microsoft.Web.XmlTransform.dll
DEBUG: Found assembly: /Users/jjelinek/Projects/scriptcs/src/ScriptCs/bin/Release/Mono.CSharp.dll
DEBUG: Found assembly: /Users/jjelinek/Projects/scriptcs/src/ScriptCs/bin/Release/Mono.Cecil.dll
DEBUG: Found assembly: /Users/jjelinek/Projects/scriptcs/src/ScriptCs/bin/Release/Newtonsoft.Json.dll
DEBUG: Found assembly: /Users/jjelinek/Projects/scriptcs/src/ScriptCs/bin/Release/NuGet.Core.dll
DEBUG: Found assembly: /Users/jjelinek/Projects/scriptcs/src/ScriptCs/bin/Release/PowerArgs.dll
DEBUG: Found assembly: /Users/jjelinek/Projects/scriptcs/src/ScriptCs/bin/Release/Roslyn.Compilers.CSharp.dll
DEBUG: Found assembly: /Users/jjelinek/Projects/scriptcs/src/ScriptCs/bin/Release/Roslyn.Compilers.dll
DEBUG: Found assembly: /Users/jjelinek/Projects/scriptcs/src/ScriptCs/bin/Release/ScriptCs.Contracts.dll
DEBUG: Found assembly: /Users/jjelinek/Projects/scriptcs/src/ScriptCs/bin/Release/ScriptCs.Core.dll
DEBUG: Found assembly: /Users/jjelinek/Projects/scriptcs/src/ScriptCs/bin/Release/ScriptCs.Engine.Mono.dll
DEBUG: Found assembly: /Users/jjelinek/Projects/scriptcs/src/ScriptCs/bin/Release/ScriptCs.Engine.Roslyn.dll
DEBUG: Found assembly: /Users/jjelinek/Projects/scriptcs/src/ScriptCs/bin/Release/ScriptCs.Hosting.dll
DEBUG: Found assembly: /Users/jjelinek/Projects/scriptcs/src/ScriptCs/bin/Release/scriptcs.exe
DEBUG: Initializing modules
DEBUG: Initializing module: ScriptCs.Engine.Mono.MonoModule
DEBUG: Modules initialized
DEBUG: Resolving Package Assembly Resolver
DEBUG: Resolving Installation Provider
DEBUG: Resolving ScriptServices
DEBUG: Registering runtime services
DEBUG: Registering default: ScriptCs.Contracts.IFileSystem
DEBUG: Registering default: ScriptCs.Contracts.IAssemblyUtility
DEBUG: Registering default: ScriptCs.Contracts.IPackageContainer
DEBUG: Registering default: ScriptCs.Contracts.IPackageAssemblyResolver
DEBUG: Registering default: ScriptCs.Contracts.IAssemblyResolver
DEBUG: Registering default: ScriptCs.Contracts.IScriptHostFactory
DEBUG: Registering default: ScriptCs.Contracts.IFilePreProcessor
DEBUG: Registering default: ScriptCs.Contracts.IScriptPackResolver
DEBUG: Registering default: ScriptCs.Contracts.IInstallationProvider
DEBUG: Registering default: ScriptCs.Contracts.IPackageInstaller
DEBUG: Registering default: ScriptCs.ScriptServices
DEBUG: Registering default: ScriptCs.Contracts.IObjectSerializer
DEBUG: Registering default: ScriptCs.Contracts.IConsole
DEBUG: Resolving AssemblyResolver
DEBUG: Resolving from: System.Net.Http.Formatting, Version=5.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 to: System.Net.Http.Formatting, Version=5.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
DEBUG: Resolving from: System.Web.Http, Version=5.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 to: System.Web.Http, Version=5.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
DEBUG: Resolving from: System.Web.Http.SelfHost, Version=5.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 to: System.Web.Http.SelfHost, Version=5.2.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
DEBUG: Resolving from: System.Net.Http.Primitives, Version=4.2.22.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a to: System.Net.Http.Primitives, Version=4.2.22.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
DEBUG: Resolving from: System.Net.Http.Extensions, Version=2.2.22.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a to: System.Net.Http.Extensions, Version=2.2.22.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
DEBUG: Failure loading assembly: /Users/jjelinek/Projects/restsharp-webapi-auth/packages/Microsoft.Net.Http.2.2.22/lib/net45/System.Net.Http.Extensions.dll. Exception: Could not load file or assembly or one of its dependencies.
WARN: Some assemblies failed to load. Launch with '-loglevel debug' to see the details
DEBUG: Found: /Users/jjelinek/Projects/restsharp-webapi-auth/packages/Microsoft.AspNet.WebApi.Client.5.2.2/lib/net45/System.Net.Http.Formatting.dll
DEBUG: Found: System.Net.Http
DEBUG: Found: /Users/jjelinek/Projects/restsharp-webapi-auth/packages/Microsoft.AspNet.WebApi.Core.5.2.2/lib/net45/System.Web.Http.dll
DEBUG: Found: /Users/jjelinek/Projects/restsharp-webapi-auth/packages/Microsoft.AspNet.WebApi.SelfHost.5.2.2/lib/net45/System.Web.Http.SelfHost.dll
DEBUG: Found: /Users/jjelinek/Projects/restsharp-webapi-auth/packages/Microsoft.Bcl.1.1.9/lib/net40/System.IO.dll
DEBUG: Found: /Users/jjelinek/Projects/restsharp-webapi-auth/packages/Microsoft.Bcl.1.1.9/lib/net40/System.Runtime.dll
DEBUG: Found: /Users/jjelinek/Projects/restsharp-webapi-auth/packages/Microsoft.Bcl.1.1.9/lib/net40/System.Threading.Tasks.dll
DEBUG: Found: /Users/jjelinek/Projects/restsharp-webapi-auth/packages/Microsoft.Net.Http.2.2.22/lib/net45/System.Net.Http.Primitives.dll
DEBUG: Found: /Users/jjelinek/Projects/restsharp-webapi-auth/packages/Microsoft.Net.Http.2.2.22/lib/net45/System.Net.Http.Extensions.dll
DEBUG: Found: System.Net.Http.WebRequest
DEBUG: Found: /Users/jjelinek/Projects/restsharp-webapi-auth/packages/Newtonsoft.Json.6.0.4/lib/net45/Newtonsoft.Json.dll
DEBUG: Found package assembly: System.Net.Http.Formatting.dll
DEBUG: Found package assembly: System.Net.Http
DEBUG: Found package assembly: System.Web.Http.dll
DEBUG: Found package assembly: System.Web.Http.SelfHost.dll
DEBUG: Found package assembly: System.IO.dll
DEBUG: Found package assembly: System.Runtime.dll
DEBUG: Found package assembly: System.Threading.Tasks.dll
DEBUG: Found package assembly: System.Net.Http.Primitives.dll
DEBUG: Found package assembly: System.Net.Http.Extensions.dll
DEBUG: Found package assembly: System.Net.Http.WebRequest
DEBUG: Found package assembly: Newtonsoft.Json.dll
DEBUG: Initializing script packs
DEBUG: Starting pre-processing
DEBUG: Processing start.csx...
DEBUG: Processing webapiconfig.csx...
DEBUG: Processing testcontroller.csx...
DEBUG: Pre-processing finished successfully
DEBUG: Starting execution in engine
DEBUG: Creating session
DEBUG: System
DEBUG: System.Collections.Generic
DEBUG: System.Linq
DEBUG: System.Text
DEBUG: System.Threading.Tasks
DEBUG: System.IO
DEBUG: System.Net.Http
DEBUG: System.Reflection
DEBUG: System.Web.Http
DEBUG: System.Web.Http.SelfHost
DEBUG: System.Web.Http.Dispatcher
warning CS1685: The predefined type `System.Runtime.CompilerServices.AsyncStateMachineAttribute' is defined multiple times. Using definition from `mscorlib.dll'
/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/4.5/mscorlib.dll (Location of the symbol related to previous warning)
/Users/jjelinek/Projects/restsharp-webapi-auth/packages/Microsoft.Bcl.1.1.9/lib/net40/System.Runtime.dll (Location of the symbol related to previous warning)
warning CS1685: The predefined type `System.Runtime.CompilerServices.CallerMemberNameAttribute' is defined multiple times. Using definition from `mscorlib.dll'
/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/4.5/mscorlib.dll (Location of the symbol related to previous warning)
/Users/jjelinek/Projects/restsharp-webapi-auth/packages/Microsoft.Bcl.1.1.9/lib/net40/System.Runtime.dll (Location of the symbol related to previous warning)
warning CS1685: The predefined type `System.Runtime.CompilerServices.CallerLineNumberAttribute' is defined multiple times. Using definition from `mscorlib.dll'
/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/4.5/mscorlib.dll (Location of the symbol related to previous warning)
/Users/jjelinek/Projects/restsharp-webapi-auth/packages/Microsoft.Bcl.1.1.9/lib/net40/System.Runtime.dll (Location of the symbol related to previous warning)
warning CS1685: The predefined type `System.Runtime.CompilerServices.CallerFilePathAttribute' is defined multiple times. Using definition from `mscorlib.dll'
/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/4.5/mscorlib.dll (Location of the symbol related to previous warning)
/Users/jjelinek/Projects/restsharp-webapi-auth/packages/Microsoft.Bcl.1.1.9/lib/net40/System.Runtime.dll (Location of the symbol related to previous warning)
DEBUG: Starting execution
(5,55): error CS0584: Internal compiler error: Unexpected error when loading type `System.Net.Http.HttpClientHandlerExtensions'
/Users/jjelinek/Projects/restsharp-webapi-auth/webapiconfig.csx(4,66): error CS0246: The type or namespace name `ControllerResolver' could not be found. Are you missing an assembly reference?
DEBUG: Finished execution
DEBUG: Terminating packs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant