上载一个asp.net项目 [英] uploading an asp.net project

查看:78
本文介绍了上载一个asp.net项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我第一次上传网站.我正在使用 Filezilla 上传我的asp项目,但是唯一可以正常工作的页面是我的 index.htm ,其余页面是 aspx 页面,当我尝试查看它们时,它显示的是我在VS上编写的代码,而不是页面本身.有人可以帮我解决这个问题吗?

This is my first uploading a website. I am uploading my asp project with Filezilla but the only page that works and i can see is my index.htm ,the rest of the pages are aspx pages and when i try to see them it shows the code that I wrote on VS not the page itself. can someone help me with it I''m kind of stuck here.

推荐答案

您的服务器安装不正确;实际上,它不支持ASP.NET.什么都没有告诉我,甚至还支持ASP.NET.我不知道您的主机托管的详细信息,但是,如果这是某个外部托管服务提供商,则可能根本不支持ASP.NET,除非您特别要求:ASP.NET托管相对较少;而这些天大部分的托管服务都是LAMP.不好意思,但是您的问题使我怀疑您对ASP.NET(可能是其他服务器端技术)如何在Web上工作并没有真正的了解.不用担心:您可以足够快地学习它,但是最好在尝试发布您的作品之前而不是之后再做. :-)



托管公司不支持的ASP.NET是一个阻止程序问题.

You server is not setup properly; in fact, it''s not ASP.NET-enabled. Nothing tells me that ASP.NET is even supported. I don''t know detail of your hosting, but if this is some external hosting provider, chanced are ASP.NET is not supported at all, unless you specifically requested it: ASP.NET hosting is relatively rare; and most of hosting offers these days are LAMP. Excuse me, but your question makes me suspect you don''t really have an idea how ASP.NET (and may be other server-side technologies) work on the Web. Not to worry: you can learn it quickly enough, but better do it before you try to publish your work, not after. :-)



ASP.NET not supported by the hosting company is a blocker problem.

  1. 基于Windows OS的ASP.NET托管;请注意,这样的托管通常会比较昂贵.
  2. 在非Microsoft操作系统上基于Apache的托管非常少见(通常是一些Linux发行版);它应该已经安装了Mono,并且应该为Apache mod_mono设置一个模块:
    http://en.wikipedia.org/wiki/Mono_%28software%29 [ ^ ],
    http://www.mono-project.com/ [ http://en.wikipedia.org/wiki/Mod_mono [ http://www.mono-project.com/Mod_mono [
  1. ASP.NET hosting, based on Windows OS; note that such hosting is usually more expensive.
  2. Pretty rare hosting based on Apache on non-Microsoft OS (usually this is some Linux distro); it should have installed Mono and a module for Apache mod_mono should be set up:
    http://en.wikipedia.org/wiki/Mono_%28software%29[^],
    http://www.mono-project.com/[^],
    http://en.wikipedia.org/wiki/Mod_mono[^],
    http://www.mono-project.com/Mod_mono[^].



如果您拥有共享主机,通常您只能与同一计划中的其他人拥有相同的设置.您可以拥有更昂贵的 VPS托管,在这里可以获得专用的虚拟机,在其中可以安装选择的任何软件,并具有一定的数量和CPU时间配额;最后,您可以获得更加昂贵的专用托管服务,其中物理主机专用于为您的帐户提供服务器,并且您可以不受限制地控制所有软件.请参阅:
http://en.wikipedia.org/wiki/Shared_web_hosting_service [ http://en.wikipedia.org/wiki/Virtual_private_server#Virtual_private_server_hosting [ http://en.wikipedia.org/wiki/Dedicated_hosting_service [ http://en.wikipedia.org/wiki/Web_hosting#Types_of_hosting [



If you have shared hosting, you usually can have only the same settings as others on the same plan. You can have much more expensive VPS hosting where you can get a dedicated virtual machine where you can install any software of your choice, withing certain volume and CPU time quota; finally, you can have even more expensive dedicated hosting service, where a physical host is dedicated to server your account and where you have unlimited control over all the software. Please see:
http://en.wikipedia.org/wiki/Shared_web_hosting_service[^],
http://en.wikipedia.org/wiki/Virtual_private_server#Virtual_private_server_hosting[^],
http://en.wikipedia.org/wiki/Dedicated_hosting_service[^];

see other possible options here:
http://en.wikipedia.org/wiki/Web_hosting#Types_of_hosting[^].

Good luck,

—SA


这篇关于上载一个asp.net项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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