How to deploy asp.net app in asphostportal.com ?

Posted by Barcelona under ASP.NET on 5/26/2015 | Points: 10 | Views : 626 | Status : [Member] | Replies : 2
I have asphostportal.com asp.net hosting plan in which multiple domains can be created. In one such domain (not primary) I have hosting my .net app. I am getting error 500
In the web.config file I have included

<system.webServer>
<httpErrors errorMode="Detailed" />
<asp scriptErrorSentToBrowser="true"/>
</system.webServer>
<system.web>
<customErrors mode="Off"/>
<compilation debug="true"/>
</system.web>


this is my web.config file<connectionStrings>


    <add name="conn" connectionString=" Server=xxx.db.xxxx.hostedresource.com; Database=xxx; User ID=xxx; Password=xxx; Trusted_Connection=False" providerName="System.Data.SqlClient" /> <remove name="LocalSqlServer"/> <add name="LocalSqlServer" connectionString=" Server=xxx.db.xxxx.hostedresource.com; Database=xxx; User ID=xxx; Password=xxx; Trusted_Connection=False" providerName="System.Data.SqlClient" />
</connectionStrings>
<configuration>
<system.webServer>
<httpErrors errorMode="Detailed" />
<asp scriptErrorSentToBrowser="true"/>
</system.webServer>
<system.web>
<customErrors mode="Off"/>
<compilation debug="true"/>
</system.web>
</configuration>


default.aspx simple regn form


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!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 runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<table style="position: relative">
<tr>
<td style="width: 100px">
</td>
<td style="width: 100px">
</td>
<td style="width: 100px">
</td>
</tr>
<tr>
<td style="width: 100px">
<asp:TextBox ID="TextBox1" runat="server" Style="position: relative"></asp:TextBox></td>
<td style="width: 100px">
<asp:TextBox ID="TextBox2" runat="server" Style="position: relative"></asp:TextBox></td>
<td style="width: 100px">
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Style="position: relative"
Text="Button" /></td>
</tr>
<tr>
<td style="width: 100px">
</td>
<td style="width: 100px">
</td>
<td style="width: 100px">
</td>
</tr>
</table>

</div>
</form>
</body>
</html>


codebehind


using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.W




Responses

Posted by: Sheonarayan on: 5/26/2015 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
First try to keep a simple .txt or .html page in the root of your domain and try to browser it. Like http://www.yourdomain.com/test.html If this is working fine then the problem might be in your secondary domain setup configuration. Contact your hosting provider or see their iis manager.

If the test page is not working, probably you have not created a separate domain placeholder from your hosting panel.

Read their documentation as every hosting provider have their own custom panel and implementation.

Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Barcelona, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Barcelona on: 5/26/2015 [Member] Starter | Points: 25

Up
0
Down
I was try but can't work

Barcelona, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response