Deploy SubText on GoDaddy

Posted by arkleyjoe on Thu, 08 Aug 2019 08:11:38 +0200

Original Link: http://www.cnblogs.com/jinweijie/archive/2009/09/11/deploy_subtext_on_godaddy.html

 

Introduction:

 

I used a virtual host called Maritime Interconnection The company provides, there are several problems in half a year, basically Server Application Unavailable, every time I contact them to recover, this problem I often encounter in peacetime, because some of our company's projects are 1.1, some are 2.0, if we use a process for 1.1 and 2.0 projectsThe Server Application Unavailable error may occur if the pool is deployed.So I suspect that the different versions of framework s on their servers are mixed up.The same thing happened the day before, so I reflected to them that this happened many times and asked them if they were mixing 1.1 and 2.0.The man was very impatient, and I asked the process pool questions. He said, "I want to be busy with other things. I'll talk to you again when I'm free."After some questioning, according to him, their "process pool is randomly allocated, several websites have a process pool".I said that would create a problem for you to refer to Here .Unexpectedly, his attitude was so bad that he quoted his original words."I'm sorry for your question, but I don't want to answer it.Please don't make it as if we owe you. I don't see you using it to teach everything. "It's easy. If you don't think we can do it here, then you can just change the space for someone else."You know, I pay!I'm really speechless about this kind of company.I think this kind of company, this attitude towards customers, it is estimated that it will be sooner or later to be phased out, now virtual hosts fly all over the sky.

 

Text:

 

Okay, if you change it, I'll show it to you right away.I want to estimate that the domestic virtual hosts are not reliable, so I decided to try them abroad.After a comparison, I still think GoDaddy is better, 4.99 knives a month, about 400 yuan a year (at 1:7 exchange rate).The functions provided are satisfactory, and the main points are listed:

Space:
Disk Space: 10 GB
Monthly Data Transfer : 300 GB
FTP Users: 50

Database: (There are three databases at the same time)
MS Access: Yes
MS SQL: 1X200M
MYSql: 2X200M

Domain name:
External Domains: Unlimited
Subdomains: 25

Language support:
Frontpage Server Ext.                
Server Side Includes (SSI)                
ASP                
ASP.NET v1.0/2.0/3.0/3.5                
ASP.NET AJAX                
PHP4 or PHP5°

In particular, this space also supports virtual directories, so you can deploy many applications at the same time.

For a more detailed list of features, see: http://www.godaddy.com/Hosting/Legacy.aspx Note that choose the correct Operating System,.net, of course Windows:

 

That's more than enough for a small blog like me to apply for two months right away (try it first, because you previously applied for space in now.cn and subtext couldn't be deployed.), a total of more than 9 knives, credit card payment will be opened immediately.

Following is the process of blog migration, I have encountered some problems, now write down, I hope to help friends with the same problems.

1. First, do some basic space settings with GoDaddy's Wizard. It's easy, just follow the instructions.

2. Turn the domain name to a new space.

3. Use FTP to transfer all files from Maritime Interconnection Move to GoDaddy.Once the GoDaddy space is open, the ftp account number will appear in the panel on the right page:

4. Use GoDaddy's wizard to create the database.

5. Migrate the database.

Let's go into details about migrating databases. GoDaddy does not support restoring files backed up from other databases, possibly for security reasons.But GoDaddy provides a good interface -- through DataBase Publish Wizard To publish the database.I downloaded the database from Haiyi, restored it on my local sql server, and then used DataBase Publish Wizard Publishing, during which you encountered a problem. Since the Collation of the local database is ChineseXXX and the SQL_LatinXXX on GoDaddy, you will encounter a Collation mismatch and fail during publishing, so if you encounter this error, you will need to use DataBase Publish Wizard Mr. Gen generates Schema's script and gets it to run on GoDaddy's DataBase Web Administration.Use later DataBase Publish Wizard Publish data.


6. Modify Web.Config to point the ConnectionString to the new database.

7. When I run the website, I may encounter errors. I have two problems:

(a)

  

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: This configuration section cannot be used at this path.  This happens when the site administrator has locked access to this section using <location allowOverride="false"> from an inherited configuration file.
Source Error:

The problem is due to GoDaddy Of Trust Level yes Medium,So, to WebConfig In<trust level="Full" originUrl=".*" />Comment out.

(b)

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Stack Trace:

[SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
   System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
   System.Security.CodeAccessPermission.Demand() +59
   System.Reflection.Assembly.VerifyCodeBaseDiscovery(String codeBase) +118
   System.Reflection.Assembly.get_CodeBase() +32
   System.Web.Handlers.ScriptResourceHandler.GetCodeBaseWithAssert(Assembly assembly) +31
   System.Web.Handlers.ScriptResourceHandler.GetLastWriteTime(Assembly assembly) +36
   System.Web.Handlers.ScriptResourceHandler.GetAssemblyInfoInternal(Assembly assembly) +58
   System.Web.Handlers.ScriptResourceHandler.GetAssemblyInfo(Assembly assembly) +59
   System.Web.Handlers.RuntimeScriptResourceHandler.System.Web.Handlers.IScriptResourceHandler.GetScriptResourceUrl(Assembly assembly, String resourceName, CultureInfo culture, Boolean zip, Boolean notifyScriptLoaded) +336
   System.Web.UI.ScriptManager.GetScriptResourceUrl(String resourceName, Assembly assembly) +114
   System.Web.UI.ScriptRegistrationManager.RegisterClientScriptResource(Control control, Type type, String resourceName) +115
   System.Web.UI.ScriptManager.RegisterClientScriptResource(Control control, Type type, String resourceName) +9 

The problem is due to SubText Comes with a 1.0 Of Ajax Extension,There are 3.5 framework Required on machine GAC That one in, because that one is full trusted Of.

So in the Web.Config Add:

<configuration>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" culture="neutral"/>
        <bindingRedirect oldVersion="1.0.61025.0" newVersion="3.5.0.0"/>
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
</configuration>

8. After solving the above problems, the website will run!

Because it is a foreign space, the speed has not been measured, you can try it: www.jinweijie.com I also tried to deploy an application in a virtual directory: http://www.jinweijie.com/astreeview/astreeviewdemo/astreeviewdemo1.aspx

 

Summary: It is slightly difficult to deploy subtext on GoDaddy. Many friends abroad have also encountered a lot of problems, mainly in trust level and database publishing. So write down today and hope that friends with the same problems will be helpful.

 

ps: Also, take this opportunity to Mars. Net Sorry, my classmate said something that hurt you in his last reply:)

Reprinted at: https://www.cnblogs.com/jinweijie/archive/2009/09/11/deploy_subtext_on_godaddy.html

Topics: Database ftp SQL MySQL