Setting up Mono in Mac OSX - asp.net

I started using mac for my application developments. So, I wanted to host my asp.net webservices in my mac machine itself. My mac version is 10.8.5.
Following these
http://www.worldgoneweb.com/2011/running-a-simple-asp-net-app-on-mac-os-x/
http://cushen.wordpress.com/2010/01/19/how-to-setting-up-mono-on-mac-os-x-part-one/
I installed the mono framework and executed the xsp command to start running the server. But my localhost was not up and running. So, I created a sample .cs file to check whether the installation was fine. But when I'm trying to run it through the terminal, I'm getting error - The type or namespace name `system' could not be found. Are you missing an assembly reference?
Am I missing something here ? Please help

Related

Jetbains Rider remote debugging ASP.NET Core 6.0 apps through SSH kept failing

I am trying to remote debug via ssh on an ubuntu host at Ali with no success. I'm using the the latest Rider, 2022.1 EAP 10.
The error is:
Debugger worker was not initialized within 100,000 ms
I’m running Ubuntu 20.04 64bit on Ali Cloud. And one side note: for the following steps from Jetbrains documents, I wasn’t able to succeed:
cd /[application path]/WebApplication to go to the application root folder.
chmod +x ./WebApplication to add the executable bit if needed.
ASPNETCORE_URLS=http://0.0.0.0:5000 ./WebApplication to run the application
WebApplication is a directory, the OS kept complaining it's a directory even after chmod+x. I managed to run the self-contained executable.
It is always better to ask such questions in JetBrains public issue tracker.
This problem should already be fixed in the next Rider versions:
https://youtrack.jetbrains.com/issue/RIDER-76083

ASP.NET Core error CS1022 in new clear web project Ubuntu 18.04

I have started new test project .net core web from Ubuntu Linux console, and when I am trying to run it, I am getting an error:
/tmp/.NETCoreApp,Version=v2.1.AssemblyAttributes.cs(5,1):
error CS1022: Type or namespace definition, or end-of-file expected [/home/alex/projects/test/test/test.csproj]
The build failed. Please fix the build errors and run again.
Ubuntu Linux 18.04
ASP.NET Core 2.1
I have reinstalled SDK full reinstall with apt-autoremove, and install again, nothing changed
Strange thing but i have reinstalled SDK again, reboot the machine and after that all is ok.

Error during artifact deployment. See server log for details.(ubuntu16.04+intellij2016.3.4+tomcat8.5.13)

I delveloped a project in springmvc and maven by intellij.
When the project is running in windows 10 and tomcat8.5.13,it works well.But when it runs in ubuntu16.04, there are some erros:
Error during artifact deployment. See server log for details.
I am sure that my code is correct because I can run it in windows10 or mac os.And I used the same version of tomcat in these os——v8.5.13.
I have read many answers in the sof,but no one can solve my problem.
And the most strange thing is:though there are some errors when I run the tomcat in my intellij, I can find my web in http://localhost:8080 correctly.
had the same problem on MacOS X and the log files are clear without any error. After changing tomcat version back to 8.5.12 all is ok. Seems like they broke something in 8.5.13 and 9.0.0.M19 versions.
Similar problem: link
Older versions of tomcat can be downloaded from here

Project 'Unable to locate Dependency' on itself

I'm trying to run the latest Asp.Net 5 samples (currently 1.0.0-rc1-update1) on my Ubuntu 14.04 VM guest using VirtualBox on Windows 10. The sample code is being run via shared host directory.
I have the active and default DNX set as the CoreCLR x64.
When I have run the dnu restore command against either of the 2 web projects, the restore completes but with an error message. For example, for the HelloWeb project:
Unable to locate Dependency helloweb >= 1.0.0
If I run then command dnx web for the web projects I get the error message:
Error: Unable to load application or execute command 'Microsoft.AspNet.Server.Kestrel'. Available commands: web.
I have a related question here as I am also trying to also get the same samples running on my Windows machine. As they are basic and also unmodified, so I can't understand why they are not working. To make things worse, I actually had them running on this VM yesterday in the same manner I am trying here and as far as I'm aware, nothing has changed other than I have restarted the VM in the meantime.
Can anyone suggest why the projects are referencing themselves in this way and how I can resolve it?
The issue was being caused because the source code was being shared and the project.lock.json file had been created by the dnu restore process on Windows. I created a separate set of code samples and the code restored then ran fine.
This doesn't explain why the message was appearing but I assume the message Unable to locate Dependency helloweb >= 1.0.0 is actually a red herring and possibly refers to the fact that it can't replace the lock file.

Web Deploy script error - msdeploy.exe is not found on this machine

I'm trying to execute a web deploy script on a clean build Windows Server 2008 R2 machine and getting the following error:
ERROR: The system was unable to find the specified registry key or
value. msdeploy.exe is not found on
this machine. Please install Web
Deploy before execute the script.
The package was created in VS2010 and executes fine on my development box (as always!). If I import the package on the server through IIS everything works fine.
Web Deploy has been installed on the server through the Web Deployment Tool 2.1 via the Web P.I and I've verified the inclusion of msdeploy.exe. I'm running the script through the "IIS Extensions/Web Deploy Command Line" start menu item so I'm guessing that the correct paths should be set. I've also tried it as Administrator with the same error.
Any help greatly appreciated.
Copied from here:
There is an error with the way Microsoft’s Web Deploy 2.1 application creates command line packages from Visual Studio 2010.
If you create a package to publish and then try to run the msdeploy.exe command line publishing tool it on a production server running IIS then you may receive the following error:
ERROR: The system was unable to find the specified registry key or
value. msdeploy.exe is not found on this machine. Please install Web
Deploy before execute the script.
Assuming that you actually have installed Web Deploy from http://www.iis.net/download/WebDeploy then the error may be caused by an incorrect registry path variable in the .cmd file that Visual Studio creates.
Open up the .deploy.cmd file that is part of your deployment package in a text editor and look for the following code block:
if "%MSDeployPath%" == "" (
for /F "usebackq tokens=2*" %%i in
(`reg query "HKLM\SOFTWARE\Microsoft\IIS Extensions\MSDeploy\1" /v InstallPath`)
do (if "%%~dpj" == "%%j" (
set MSDeployPath=%%j
If you have installed Web Deploy 2.0 or higher, then the error is caused by the registry query to HKLM\SOFTWARE\Microsoft\IIS Extensions\MSDeploy\1. If you open up regedit on your production server you’ll find that the appropriate key is actually HKLM\SOFTWARE\Microsoft\IIS Extensions\MSDeploy\2.
Change the reference in the.deploy.cmd file and you’ll be able to successfully run the deployment package.
I have the same problem. Installed WebDeploy_2_10_amd64_en-US. Running the Deploy Command Line I get the same erorr. However, in IIS (version 7) I could use an option import application. With this option (right side of the window in the actions toolbar) I was able to import the application deployment package zip file. All settings were imported correctly except for the application pool. I only had to adjust that and everything was running fine.

Resources