我的任务是将我们的iis网络服务器上的网站迁移到Go Daddy。我对asp.net不熟悉,有一些关于迁移这个网站的问题。
站点文件中包含一个名为web.config的文件,其中包含一些连接字符串。
<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<connectionStrings>
<add name="ApplicationServices"
connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true"
providerName="System.Data.SqlClient" />
</connectionStrings>
其次是一些安全帐户。该站点的所有文件都是直接的HTML,jquery和css类型的东西,除了似乎连接数据库的联系表单。我的问题是这个网站很容易迁移的可能性。除联系页面外,它在我的本地机器上运行良好。
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Contact.aspx.cs" Inherits="Ellis.Website.Contact" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta content="IE=8" http-equiv="X-UA-Compatible" />
<title></title>
<!-- CSS -->
<link rel="stylesheet" href="css/reset.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<!-- This is where you choose your color scheme - Just change the stylesheet name to the color you want. -->
<link rel="stylesheet" href="css/orange.css" type="text/css" />
<!-- You can choose from the following: red, orange, green, blue and violet. -->
<link rel="stylesheet" href="css/superfish.css" type="text/css" />
<link rel="stylesheet" href="css/prettyPhoto.css" type="text/css" media="screen" />
<link rel="stylesheet" type="text/css" href="css/jquery-ui-1.7.3.custom.css" />
<link rel="stylesheet" href="css/coin-slider-styles.css" type="text/css" />
<!--[if lt IE 8]>
<link rel="stylesheet" type="text/css" href="css/ie7.css">
<![endif]-->
<!-- Scripts -->
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="js/jquery.cycle.all.js"></script>
<script type="text/javascript" src="js/jquery.easing.js"></script>
<script type="text/javascript" src="js/jqFancyTransitions.js"></script>
<script type="text/javascript" src="js/coin-slider.js"></script>
<script type="text/javascript" src="js/ui.core.min.js"></script>
<script type="text/javascript" src="js/ui.tabs.min.js"></script>
<script type="text/javascript" src="js/jquery.prettyPhoto.js"></script>
<script type="text/javascript" src="js/superfish.js"></script>
<script type="text/javascript" src="js/cufon-yui.js"></script>
<script type="text/javascript" src="js/Delicious.font.js"></script>
<script type="text/javascript" src="js/jquery.form.js"></script>
<script type="text/javascript" src="js/bluz.js"></script>
</head>
<body id="sub-page">
<form id="form1" runat="server">
<!-- site-wrapper START here -->
<div id="site-wrapper">
<!-- header START here -->
<div id="header">
<!-- container START here -->
<div class="container">
<!-- top START here -->
<div id="top">
<!-- logo START here -->
<div id="logo">
<h1><a href="index.html"><img src="images/logo.png" alt="Ellis Storage" /></a></h1>
</div>
<!-- logo END here -->
<!-- main-nav START here -->
<div id="main-nav">
<ul class="sf-menu">
<li><a href="index.html">Home</a>
</li>
<li><a href="locations.html">Locations</a>
</li>
<li><a href="staff.html">Staff</a>
</li>
<li><a href="tips.html">Moving Tips</a>
</li>
<li><a href="supplies.html">Moving Suppies</a>
</li>
<li class="current_page_item"><a href="contact.aspx">Contact</a></li>
</ul>
</div>
<!-- main-nav END here -->
</div>
<!-- top END here -->
<div id="pagename">
<h2><span>Contact Us</span></h2>
<p class="tagline">When ever, where ever...</p>
</div>
</div>
<!-- container END here -->
</div>
<!-- header END here -->
"" ""
答案 0 :(得分:0)
迁移的难易程度取决于您的技能和经验,以及移动后网站需要运行的程度。 1:1的功能?您必须知道Windows托管和其他托管之间的区别,熟悉备份,迁移和恢复数据库,数据库连接字符串,bin文件夹,编译站点等。
如果上述部分或全部不符合您的经验,您可能会遇到困难:(
答案 1 :(得分:0)
上传文件按照此主题中的说明进行操作。