简体   繁体   English

将ASP.Net Web Forms项目部署到Fedora 24

[英]Deploying ASP.Net Web Forms project to Fedora 24

Here is my current setup: 这是我当前的设置:

  • My Local Computer: This is where I created and programmed my ASP.Net WebForms project with Cloudflare Flexible SSL enabled using visual studio 2015 professional on Windows 10. I also have the team explorer enabled meaning my project is synced to Github and all of my files are also stored there in my own repository. 我的本地计算机:这是在Windows 10上使用Visual Studio 2015 Professional启用Cloudflare Flexible SSL来创建和编程ASP.Net WebForms项目的地方,我还启用了团队资源管理器,这意味着我的项目已同步到Github和我的所有文件也存储在我自己的存储库中。
  • My Server Computer: Running Fedora 24, I've installed the dotnet CLI (aka .Net Core), apache (httpd), nginx, and Mono for ASP.Net . 我的服务器计算机:运行Fedora 24,我已经安装了dotnet CLI(又名.Net Core), apache(httpd),nginx和Mono for ASP.Net I want to deploy/publish and host my webforms project on this computer in the default web directory (/var/www/html/mysite/) 我想在此计算机上的默认Web目录(/ var / www / html / mysite /)中部署/发布并托管我的Webforms项目。

The problem is, the dotnet cli relies on a project.json and is not compatible with WebForms . 问题是,dotnet cli依赖于project.json并且与WebForms不兼容 .Net Core is basically not an option . .Net Core基本上不是一个选择 When I use mod_mono, I get an Error 500 (see below) if I connect to https://localhost:9000/ while running the server using the command xsp4 --port 9000 . 当我使用mod_mono时,如果使用命令xsp4 --port 9000运行服务器时连接到https:// localhost:9000 / ,则会收到Error 500 (请参见下文)。 I can't use xsp4 --port 80 or xsp4 --port 443 because then it claims Address is already in use even though httpd is the only process listening on those ports. 我不能使用xsp4 --port 80xsp4 --port 443因为即使httpd是监听这些端口的唯一进程,它也声称Address is already in use Note that I can sucessfully build the project using the xbuild command . 请注意,我可以使用 xbuild 命令 成功构建项目

How can I take my project from github or my local computer and deploy it on to my server computer? 如何从github或本地计算机上获取我的项目并将其部署到我的服务器计算机上? Am I missing something? 我想念什么吗? Here is my virtual hosts configuration for reference: httpd.conf . 这是我的虚拟主机配置供参考: httpd.conf I typically get no errors when starting httpd.service. 启动httpd.service时,通常不会出现任何错误。

EDIT: 编辑:

I've also used nginx with fastcgi-mono-server4 with this configuration instead with nginx, which I got straight from here , but still no luck. 我也将nginxfastcgi-mono-server4一起使用配置,而不是将nginx与nginx配合使用,我从这里直接得到了它 ,但是仍然没有运气。 I usually get this Error 500 : 我通常会收到此Error 500 错误 other times I can get other types of Error 500 . 其他时候我可以得到其他类型的Error 500 If there is a solution that works with either apache or nginx, please let me know. 如果有适用于apache或nginx的解决方案,请告诉我。

Your code is Full NET and not even NET Core and trying to deploy it to Mono Framework . 您的代码是Full NET ,甚至不是NET Core,并尝试将其部署到Mono Framework This may not work, Convert your project into Mono or NET Core and retry. 这可能不起作用,请将您的项目转换为MonoNET Core,然后重试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM