将ASP.Net Web Forms项目部署到Fedora 24 [英] Deploying ASP.Net Web Forms project to Fedora 24

查看:93
本文介绍了将ASP.Net Web Forms项目部署到Fedora 24的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我当前的设置:

  • 我的本地计算机:这是在Windows 10上使用Visual Studio 2015 Professional启用Cloudflare Flexible SSL来创建和编程ASP.Net WebForms项目的地方.我还启用了团队资源管理器,这意味着我的项目已同步到Github,并且所有我的文件也存储在我自己的存储库中.
  • 我的服务器计算机:运行Fedora 24,我已经安装了 dotnet CLI(又名.Net Core), apache(httpd),nginx和
  • 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.
  • My Server Computer: Running Fedora 24, I've installed the dotnet CLI (a.k.a .Net Core), apache (httpd), nginx, and 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/)

问题在于,dotnet cli依赖于project.json,并且与WebForms不兼容. .Net Core基本上是不可选择.当我使用mod_mono时,如果我连接到 https://localhost:9000/Error 500(见下文).使用命令xsp4 --port 9000运行服务器时,选择a>.我不能使用xsp4 --port 80xsp4 --port 443,因为即使httpd是监听这些端口的唯一进程,它也会声明Address is already in use. 请注意,我可以使用 xbuild 命令 成功构建项目.

The problem is, the dotnet cli relies on a project.json and is not compatible with WebForms. .Net Core is basically not an option. 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. 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. Note that I can sucessfully build the project using the xbuild command.

如何从github或本地计算机上获取我的项目并将其部署到我的服务器计算机上?我想念什么吗?这是我的虚拟主机配置,以供参考: httpd.conf . 启动httpd.service时通常不会出现错误.

How can I take my project from github or my local computer and deploy it on to my server computer? Am I missing something? Here is my virtual hosts configuration for reference: httpd.conf. I typically get no errors when starting httpd.service.

我还将nginxfastcgi-mono-server4与有时我可以获得其他类型的Error 500.如果有适用于apache或nginx的解决方案,请告诉我.

I've also used nginx with fastcgi-mono-server4 with other times I can get other types of Error 500. If there is a solution that works with either apache or nginx, please let me know.

推荐答案

您的代码是 Full NET ,甚至不是 NET Core ,并尝试将其部署到 Mono框架.这可能不起作用,请将您的项目转换为 Mono NET Core ,然后重试.

Your code is Full NET and not even NET Core and trying to deploy it to Mono Framework. This may not work, Convert your project into Mono or NET Core and retry.

这篇关于将ASP.Net Web Forms项目部署到Fedora 24的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆