- •Table of Contents
- •1) Technical Support Specialist – Level 2
- •Qualification Requirements
- •2 ) Exceptions
- •3) Tier 2 Tools a) Solutions.24hourwebhostingsupport.Com
- •C) Linux Shell Commands
- •D) ipconfig
- •4) Absolute and Relative Paths a) Absolute Path
- •B) Relative Path
- •5) Possible Causes for Broken Sites
- •6) Installed Software:
- •7) Unix Services on the Hostopia Platform
- •A) cgi (Common Gateway Interface) faq
- •I.E. /services/webpages/h/o/hosting.Bluegenesis.Com/chat/chat.Log
- •B) Server Side Includes (ssi) faq
- •Can I use server-parsed image maps?
- •C) perl faq
- •How do I install and use Perl modules?
- •What is cpan?
- •What is supported by the jsp service?
- •What is a jsp file?
- •Where should my end users upload their jar files?
- •How do I Connect to an ms sql Database Source with .Jsp?
- •Upload appropriate libraries to your /public/web-inf/lib location
- •How do I Create a test .Jsp file?
- •Are there any potential issues ?
- •8) Windows® Services on the Hostopia Platform
- •A) Differences between Windows only Hosting and the Hybrid System
- •B) Functional Components
- •C) Non Functional Components
- •9) Asp 3.0 iis 6 (Active Server Pages)
- •A) asp Third Party Components
- •B) Server.MapPath()
- •C) The #include Directive
- •D) asp Coding Examples
- •1. Asp dsn connection for ms access
- •2. Asp dsn connection for MySql
- •3. Asp dsNless Connection for ms access
- •4. Asp dsnLess Connection To a MySql Database
- •5. Asp dsNless connection for ms sql
- •6. Defining Paths
- •7. AspMail Sample Code for Components
- •8. AspUpload Sample Code for Components
- •9. Cdonts Sample Code for Components
- •11. Sa Fileup Sample Code for Components
- •A) Features in asp.Net 2.0
- •B) asp.Net codebehind and Precompiled dll
- •C) Coding Considerations:
- •D) asp.Net codebehind and dll File Explanation
- •D) asp.Net ajax
- •E) Supported asp.Net File Extensions
- •F) Unsupported asp.Net file extensions:
- •G) Retrieving asp.Net Error Messages
- •H) asp.Net Coding Examples
- •11) ColdFusion 5 a) About ColdFusion 5
- •B) ColdFusion Applications
- •C) ColdFusion Tags
- •D) Supported ColdFusion Tags
- •E) Unsupported ColdFusion Tags
- •F) ColdFusion Error Messages
- •G) Custom ColdFusion Tags
- •H) ColdFusion Coding Examples
- •12) ColdFusion mx 7
- •13) Payment Gateways
- •13) Ssl (Secure Socket Layer)
- •A) Security Certificates
- •B) Common Issues with Installing a Custom ssl Certificate.
- •C) Creating Symbolic Links aka Symlink
- •Cd name_of_symlink
- •Rm name_of_link
- •Cd name_of_symlink
- •14) Databases a) ms access (Microsoft Access)
- •B) ms sql (Microsoft sql)
- •C) MySql
- •Import the dump.Sql file into a database:
- •15) Common Issues for Tier 2 a) Email
- •I. How to read Email Headers; Check for delays and Time Zone Discrepancies
- •II. How to Convert to utc (gmt)
- •1) Find the Time and Convert to utc!
- •2) Find the delay!
- •III. Bigfoot Mail System
- •IV. How to Test if the inbox is Corrupt
- •B) Formmail
- •2) Create a Test Form.
- •3) Copy and Paste Code into Form Non Secure Site
- •4) Verify that there is a cgi-bin.
- •6) Test the form. C) Sub Domains
- •D) Common Ports
- •E) Permissions
- •E) RealServer
- •F) EasySiteWizard 7
- •G) htaccess directives
- •H) Serrahost ProStores
- •I) FaxWire
- •J) Bell dns Remaps
F) Unsupported asp.Net file extensions:
-
ASP.NET Unsupported File Extension
.cs**
.csproj.vb**
.vbproj
.rem
.webinfo
.soap
.vsdisco
.resources
.licx
Please note that there may be additional functions/components/extensions that are not supported.
If you have any questions in reference to functionality, please do a search in P.I.G.S
** - The file extensions marked with (**) can be used for example in codebehinds using the src directive. Make special note that since they're critical files, we've modified our configuration to not return any requests specifically for .cs .vb and .config extensions. It'll send a 403 error, but they will still work with Windows Services. ‘web.config’ and ‘global.asax’ files DO WORK on the hybrid system.
G) Retrieving asp.Net Error Messages
This is a sample web.config file which allows customers to view any asp.net syntax errors:
To use this script copy the following into a separate file, name the file web.config and upload to the server.
<configuration>
<system.web>
<compilation debug="true"/>
<customErrors mode="Off"/>
</system.web>
</configuration>
H) asp.Net Coding Examples
ASP.NET DSN connection for MS ACCESS
<%@ import Namespace="System.Data" %><%@ import Namespace="System.Data.Odbc" %><%@ Page Language="C#" %><script runat="server">
public void Page_Load(Object sender, EventArgs e) {
DataTable dtRecords = GetDataTable("SELECT * FROM info");
foreach(DataRow dr in dtRecords.Rows) {Response.Write(dr["Name"].ToString() + " " +dr["Phone"].ToString() + "<br/>");}
}
private static string GetConnection() {return "DSN=db1_yourdomain_com";}
public static DataTable GetDataTable(string sql) {DataTable rt = new DataTable();DataSet ds = new DataSet();OdbcDataAdapter da = new OdbcDataAdapter();OdbcConnection con = new OdbcConnection(GetConnection());OdbcCommand cmd = new OdbcCommand(sql, con);da.SelectCommand = cmd;da.Fill(ds);try {rt = ds.Tables[0];}catch {rt = null;}return rt;}
</script>
ASP.NET DSN connection for MS SQL
<%@ import Namespace="System.Data" %><%@ import Namespace="System.Data.Odbc" %><%@ Page Language="C#" %><script runat="server">
public void Page_Load(Object sender, EventArgs e) {
DataTable dtRecords = GetDataTable("SELECT * FROMtable1");
foreach(DataRow dr in dtRecords.Rows) {Response.Write(dr["name"].ToString() + " " +dr["lname"].ToString() + "<br/>");}
}
private static string GetConnection() {return "DSN=db2_yourdomain_com;UID=dbm.youdomain.com;PWD=password";}
public static DataTable GetDataTable(string sql) {DataTable rt = new DataTable();DataSet ds = new DataSet();OdbcDataAdapter da = new OdbcDataAdapter();OdbcConnection con = new OdbcConnection(GetConnection());OdbcCommand cmd = new OdbcCommand(sql, con);da.SelectCommand = cmd;da.Fill(ds);try {rt = ds.Tables[0];}catch {rt = null;}return rt;}
</script>
ASP.NET) DSN connection for MySQL
<%@ import Namespace="System.Data" %><%@ import Namespace="System.Data.Odbc" %><%@ Page Language="C#" %><script runat="server">
public void Page_Load(Object sender, EventArgs e) {
DataTable dtRecords = GetDataTable("SELECT * FROMtable1");
foreach(DataRow dr in dtRecords.Rows) {Response.Write(dr["name"].ToString() + " " +dr["lname"].ToString() + "<br/>");}
}
private static string GetConnection() {return "DSN=db_domain_com;UID=dbm.domain.com;password=pass";}
public static DataTable GetDataTable(string sql) {DataTable rt = new DataTable();DataSet ds = new DataSet();OdbcDataAdapter da = new OdbcDataAdapter();OdbcConnection con = new OdbcConnection(GetConnection());OdbcCommand cmd = new OdbcCommand(sql, con);da.SelectCommand = cmd;da.Fill(ds);try {rt = ds.Tables[0];}catch {rt = null;}return rt;
}
</script>
ASP.NET DSNless Connection for MS ACCESS
<%@ Import Namespace="System.Data.OleDb" %>
<script runat="server">sub Page_Loaddim dbconn,sql,dbcomm,dbreaddbconn=New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;datasource=" & server.mappath("db/aspx.mdb"))
ASP.NET DSNless connection for MS SQL
<%@ import Namespace="System.Data" %><%@ import Namespace="System.Data.Odbc" %><%@ Page Language="C#" %><script runat="server">
public void Page_Load(Object sender, EventArgs e) {
DataTable dtRecords = GetDataTable("SELECT * FROMtable1");
foreach(DataRow dr in dtRecords.Rows) {Response.Write(dr["name"].ToString() + " " +dr["lname"].ToString() + "<br/>");}
}
private static string GetConnection() {return "DRIVER={SQLServer};Server=MS SQL.megasqlservers.com;Database=db_yourdomain_com;UID=dbm.yourdomain.com;PWD=password";}
public static DataTable GetDataTable(string sql) {DataTable rt = new DataTable();DataSet ds = new DataSet();OdbcDataAdapter da = new OdbcDataAdapter();OdbcConnection con = new OdbcConnection(GetConnection());OdbcCommand cmd = new OdbcCommand(sql, con);da.SelectCommand = cmd;da.Fill(ds);try {rt = ds.Tables[0];}catch {rt = null;}return rt;}
</script>
(ASP.NET) DSNless connection for MySQL using ODBC:
<%@ import Namespace="System.Data" %><%@ import Namespace="System.Data.Odbc" %><%@ Page Language="C#" %><script runat="server">
public void Page_Load(Object sender, EventArgs e) {
DataTable dtRecords = GetDataTable("SELECT * FROMtable1");
foreach(DataRow dr in dtRecords.Rows) {Response.Write(dr["name"].ToString() + " " +dr["lname"].ToString() + "<br/>");}
}
private static string GetConnection() {return "DRIVER={MySQL ODBC 3.51Driver};Server=sql.megasqlservers.com;Database=db_yourdomain_com;UID=dbm.yourdomain.com;password=password";}
public static DataTable GetDataTable(string sql) {DataTable rt = new DataTable();DataSet ds = new DataSet();OdbcDataAdapter da = new OdbcDataAdapter();OdbcConnection con = new OdbcConnection(GetConnection());OdbcCommand cmd = new OdbcCommand(sql, con);da.SelectCommand = cmd;da.Fill(ds);try {rt = ds.Tables[0];}catch {rt = null;}return rt;
}
</script>
ASP.NET DSNless connection for MySQL using MySql.Data.MySqlClient :
MySql.Data.dll needs to be copied to the application/binfolder.
<%@ Page Language="VB" debug="true" %>
<%@ Import Namespace = "System.Data" %>
<%@ Import Namespace = "MySql.Data.MySqlClient" %><script language="VB" runat="server">
Sub Page_Load(sender As Object, e As EventArgs)
Dim myConnection As MySqlConnection
Dim myDataAdapter As MySqlDataAdapter
Dim myDataSet As DataSet
Dim strSQL As String
Dim iRecordCount As Integer
myConnection = NewMySqlConnection("server=sqlc1d.megasqlservers.com; userid=dbm.domain.com; password=passwd; database=db_domain_com;pooling=false;")
strSQL = "SELECT * FROM testtab;"
myDataAdapter = New MySqlDataAdapter(strSQL,
myConnection)myDataSet = New Dataset()myDataAdapter.Fill(myDataSet, "testtab")
MySQLDataGrid.DataSource = myDataSetMySQLDataGrid.DataBind()
End Sub
</script>
<html>
<head>
<title>Simple MySQL Database Query</title>
</head>
<body>
<form runat="server">
<asp:DataGrid id="MySQLDataGrid" runat="server" />
</form>
</body></html>
Sample web.config file:
This is a sample web.config file which allows customers to view any ASP.NET syntax errors. To use this script copy the following into a separate file, name the file web.config and upload to the server:
<configuration>
<system.web>
<compilation debug="true"/>
<customErrors mode="Off"/>
</system.web>
</configuration>
