Issue using MVC 4 in Mono Framework - asp.net-mvc

I am using Debian to host an application that is built using MVC. I am using Mariadb as backend.
The application works fine in Windows platform but when I try to run it on Linux using mono framework it generates following error.
System.IO.FileNotFoundException
Exception origin:DotNetOpenAuth.core
I am using following versions:
MVC 4
Mono 3.2.3
Is there any compatibility issue or I am missing something?

Found the solution by myself just add reference to log4net.dll

Related

docker- The framework 'Microsoft.AspNetCore.App', version '5.0.0' was not found. - No frameworks were found

I have created a sample .NETCORE web API, and I'm trying to deploy to docker, I get below errors, could some one help on how to resolve this.
Below screenshot of docker file and error from Visual Studio code
docker file
docker file content1
List of asp.net core runtimes Installed in my local machine
From the screenshot, we can see you have installed the Asp.net Core 5.0.2 and 5.0.5 version runtime and SDK, without the Asp.net Core 5.0.0 Version.
So, to fix this issue, you could install the Asp.net Core 5.0.0 version SDK and runtime. Or you could use the existing Asp.net core version to create docker image.
Maybe you need to pull a new version for the dotnet image .
check these:
link1
Link2
My case was with docker because the message was always: the framework 'microsoft aspnetcore app version '5.0 0 was not found at runtime so in the document .Dockerfile add
=> FROM mcr.microsoft.com/dotnet/runtime:5.0 AS base
and
FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS base
was working with workerservice and it worked.

.NET Framework 4.8 manifesto unknown

I'm trying to pull from mcr.microsoft.com/dotnet/framework/sdk:4.5 but get the following output: manifesto for mcr.microsoft.com/dotnet/framework/sdk:4.5 not found: manifest unknown.
I am new to docker and can't find this answer anywhere online. I've tried switching to a windows container and that didn't help.
So I solved this by using the latest .NET Framework 4.8 version. I then had to switch to windows containers through the Docker App.

ASP.NET OmniSharp server is not running on Ubuntu Mono

After setting up VS Code, I'm trying to run an ASP.NET 5 project using Visual studio code's command palette on Ubuntu Linux 14.4.
The DNVM installed is for Mono. Following the steps given on VS code's official docs, the project is created with Yeoman scaffolder.
Whenever trying to start the project, I get the following error:
OmniSharp server is not running.
I found some posts when trying to solve this but most seems to be addressing either Console project or are given for OS x:
For a Console App
This is for debugging not running
The output of mono --version shows that it is >3.12:
My dnvm is already the latest
I can run the project by using dnx web command from Terminal.
However, my simple question:
How do I run ASP.NET 5 on Ubuntu using VS Code?
Side question : Not sure by when the debugging will be supported. Any rumours about the extension will be appreciated.
This seems to be a bug with OmniSharp and not specifically with VSCode

Running ServiceStack on Mono on OSX

Trying to get ServiceStack working on OSX - currently getting a file not found error on System.Web.Entity.dll
Is there a Nuget I need to pull in or do I need to do what this dude says: http://veereshr.com/DotNet/PortMvc3ToLinux
This isn't directly an issue with ServiceStack. The issue actually stems from old licensing restrictions on Mono by Microsoft.
MVC3 + Mono 2.10 / Mono 3+
Yes the instructions for copying the files from your windows deployment into your web app's bin directory is the Mono prescribed work around, as noted here in the Mono release notes given that you are targeting MVC3.
Running Razor, MVC3 and WebPages
To get this stack running, you will need to copy Microsoft's MVC3 libraries into your bin directory:
System.Web.Mvc.dll
System.Web.Razor.dll
System.Web.WebPages.Deployment.dll
System.Web.WebPages.dll
MVC4 + Mono 3+
If you are targeting MVC4 then Mono 3.X now includes ASP.NET WebStack.
To clarify:
If you target MVC3 always copy the dlls (even if you are on Mono 3+).
If you target MVC4 you don't need to copy dlls they are bundled with Mono 3+.

unable to install appium.exe,showing .Net framework Initialisation error

While installing appium.exe in my Windows 7 32 bit laptop.. I am getting
.Net Framework Initialization Error..
How to solve this error..?
I am installing this appium for testing android applications.
Appium for windows require .net framework.
You can download the same from the link below.
http://www.microsoft.com/en-us/download/details.aspx?id=17851
To be precise, .net framework 4.5 fixed the issue for me.

Resources