Do you think it's technically possible to run ASP.NET 5 (vNext) inside Cloud9 environment?
I have followed the documentation on https://github.com/aspnet/home, everything seem to work fine, but when I run the command:
dnx . kestrel
mono is executed and start to use 100% of the CPU but the HTTP server is not working.
Here my sample application: https://github.com/davideicardi/aspnet5-on-cloud9
Using ASP.NET 5 rc1 I have succesfully executed ASP.NET on Cloud 9.
Installing instruction for ASP.NET 5
https://github.com/aspnet/Home/blob/dev/GettingStartedDeb.md
After dnvm and dnx are installed restore packages using
dnu restore
If you receive HTTP timeout errors first use (see https://stackoverflow.com/a/31975260/209727):
export MONO_THREADS_PER_CPU=2000
dnu restore
Then run the web server using:
dnx web
Note that port 8080 is the default used by cloud 9 ide.
Here my final repository on github: https://github.com/davideicardi/aspnet5-on-cloud9
Related
Running ASP.NET Core websites under IIS on a Windows Server 2012 where we installed the .NET Core 2.2.7 Hosting Runtime installer.
With Azure Release pipline we want to run our migrations using commands but we got a message saying:
Did you mean to run dotnet SDK commands? Please install dotnet SDK from: https://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409
So basically we also need to install the .NET Core SDK, but will this work when having the Hosting runtime installed? Can we drop the hosting runtime and only install the SDK? I guess not because I thoughed the SDK is for developing.
How to perform dotnet operations on staging and production environments?
UPDATE
To be more clearly about I am asking, I want to run my Entity Framework Migrations on the environment after the deploy process. So basically running the command dotnet ef database update -v after pushing the files on the staging and production enviroment. So not in the Azure container but on the real destination webserver.
We have deployed a project which is dotnet core 2.2 to Linux server. When we deploy the code, we have to manually stop/start the service.
Is it possible to deploy the latest code without stop/start service using dotnet commands?
I have tried to run the out of the box Blazor application to try out C# WebAssembly. I am running into issues when trying to run it different ways. I have also tried to hack the runtimeconfig.json according to this https://github.com/dotnet/cli/issues/7543
Running IIS Express
Running BlazorApplication1
The program '[42032] dotnet.exe' has exited with code -2147450749 (0x80008083).
Running in command line
It was not possible to find any compatible framework version
The specified framework 'Microsoft.NETCore.App', version '2.0.0-preview3-25512-01' was not found.
- Check application dependencies and target a framework version installed at:
\
- Alternatively, install the framework version '2.0.0-preview3-25512-01'.
You need to have the 2.1 preview of the .net core framework installed for Blazor to work: download here
I am trying to get my first .Net Core solution working.
When I try to create a project in VS 2015, it fails. So back to basics.
Using these directions:
MS .Net Core
I did this.
C:\dev\Tests>mkdir hwapp2
C:\dev\Tests>cd hwapp2
C:\dev\Tests\hwapp2>dotnet -v new
Welcome to .NET Core!
---------------------
Learn more about .NET Core # https://aka.ms/dotnet-docs. Use dotnet --help to see available commands or go to https://aka.ms/dotnet-cli-docs.
Telemetry
--------------
The .NET Core tools collect usage data in order to improve your experience. The data is anonymous and does not include commandline arguments. The data is collected by Microsoft and shared with the community.
You can opt out of telemetry by setting a DOTNET_CLI_TELEMETRY_OPTOUT environment variable to 1 using your favorite shell.
You can read more about .NET Core tools telemetry # https://aka.ms/dotnet-cli-telemetry.
Configuring...
-------------------
A command is running to initially populate your local package cache, to improve restore speed and enable offline access. This command will take up to a minute to complete and will only happen once.
Decompressing 100% 1758 ms
Expanding 100% 6072 ms
Failed to create prime the NuGet cache. restore failed with: 1
Telemetry is: Disabled
Created new C# project in C:\dev\Tests\hwapp2.
I am running this in a Command Prompt as an Admin. Same thing happens when I try to create a project in VS 2015. Did try with Firewall turned off by the way.
Environment is
Windows 10 Pro (Build 14393)
VS 2015 with Update 3 (Enterprise)
Dot Net Core Preview 2.0.1 (latest download as of Sept 10th 2016)
You should install the latest .NET Core SDK and remove all previously installed versions.
Try clear nuget cache like in this post. It was helped for me.
Briefly, you need to download nuget command line tool from here.
And then run command:
nuget locals all -clear
This is a known issue.
I had to perform the following steps to fix this issue:
uninstall Microsoft .Net Core SDK 2.0 Preview 1
uninstall Microsoft .Net Core SDK 2.0 Preview 2
This allowed me to execute the command "dotnet run" without the error above.
After running "dotnet run" once I reinstalled Microsoft .Net Core SDK 2.0 Preview 2 again and the error didn't show up anymore (which is what should happen according to this post)
An issue on GitHub describes the situation where dotnet-core 2.0.0 is installed but SDK 1.0.4 is defined in the global.json. The following environment variable is a workaround:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
I just installed dnn 6.2 fresh as a .net 3.5 application on windows 7 under iis 7.5 using the default app pool. I then go and change the default app pool to .net 4.0, load up my site, and get an iis 7.5 error - IIS 7.5 Detailed Error - 500.21:
...
...
Most likely causes:
Managed handler is used; however, ASP.NET is not installed or is not installed completely.
There is a typographical error in the configuration for the handler module list.
Things you can try:
Install ASP.NET if you are using managed handler.
Ensure that the handler module's name is specified correctly. Module names are case-sensitive and use the format modules="StaticFileModule,DefaultDocumentModule,DirectoryListingModule".
Everything I've read on this says to only perform two steps:
change the app pool to run under .net 4.0 (restart app pool)
pull up your site and dnn will make the necessary changes to the web.config file
Note: the default app pool has modify permissions on my website folder and all sub folders/files.
How can I fix this error and get dnn to run under asp.net 4.0?
Thanks for any help!
This happens to me quite a bit when setting up a new machine. You need to register ASP .NET 4.0 with IIS you do that by using
aspnet_regiis
http://msdn.microsoft.com/en-us/library/k6h9cz8h.aspx
So go to your .net 4 directory from your command line, path will be something like this.
cd C:\Windows\Microsoft.NET\Framework\v4.0.30319\
then in that directory run
aspnet_regiis.exe -ir
That will re-register 4.0 with IIS and you should be all set.