naveedqadri 0 Junior Poster in Training

I have a website in asp.net developed by some one else, i have made some improvements and now facing problem while uploaded [ www.ict-m.com]
this site is running well on localhost.

scenario : all files has path starts with /ictm/../../*.aspx

1: i created a folder on root directory with name "ictm" and put all published data there including web.config.

2: i created a file Default.aspx having include directive to "/ictm/default.aspx"

3: error occurs :SERVER ERROR IN /APPLICATION

Scenario 2:

I put all published data on root

changes in web.config

<?xml version="1.0"?>
<!-- 
    Note: As an alternative to hand editing this file you can use the 
    web admin tool to configure settings for your application. Use
    the Website->Asp.Net Configuration option in Visual Studio.
    A full list of settings and comments can be found in 
    machine.config.comments usually located in 
    \Windows\Microsoft.Net\Framework\v2.x\Config 
-->
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
	<appSettings>
  <add key="MM_CONNECTION_HANDLER_ictmdb" value="default_oledb.htm" />
  <add key="MM_CONNECTION_STRING_ictmdb" value="Provider=MSDAORA.1;User ID=ictm;Password=ictm" /><!--;data source=ictmuser-->
    <add key="MM_CONNECTION_DATABASETYPE_ictmdb" value="OleDb" />
  <add key="MM_CONNECTION_SCHEMA_ictmdb" value="" />
  <add key="MM_CONNECTION_CATALOG_ictmdb" value="" />
  <add key="CSS_PATH" value="~/css" />
  <add key="IMG_PATH" value="~/soft/tmp/" />
 </appSettings>
	<connectionStrings/>
	<system.web>
		<httpRuntime executionTimeout="360"/>
		<sessionState timeout="30"/>
		<!--
            The <authentication> section enables configuration 
            of the security authentication mode used by 
            ASP.NET to identify an incoming user. 
        -->
		<identity impersonate="false"/>
		<!--<authentication mode="Forms">
			<forms name=".ICTMLogin" loginUrl="~/default.aspx" protection="All" timeout="30" path="/">
				--><!-- protection="[All|None|Encryption|Validation]" --><!--
			</forms>
		</authentication>-->
		<authorization>
			<allow users="*"/>
		</authorization>
		<!--
            The <customErrors> section enables configuration 
            of what to do if/when an unhandled error occurs 
            during the execution of a request. Specifically, 
            it enables developers to configure html error pages 
            to be displayed in place of a error stack trace.
  -->
		<!--customErrors mode="RemoteOnly" defaultRedirect="/ictm/public/template/login/sessionTO.aspx"/>
		<customErrors mode="On"  defaultRedirect="/ictm/public/template/login/sessionTO.aspx">
		<customErrors mode="Off"  defaultRedirect="/ictm/public/template/login/sessionTO.aspx"-->

		<!--<customErrors mode="RemoteOnly"  defaultRedirect="/ictm/public/template/login/sessionTO.aspx">-->
		
    <customErrors mode="RemoteOnly">
			<error statusCode="500" redirect="~/errors/GenericError.aspx"/>
			<!--<error statusCode="404" redirect="/ictm/errors/FileNotFound.aspx"/>-->
			<!--error statusCode="403" redirect="authorizationfailed.aspx"/-->
		</customErrors>
		<compilation defaultLanguage="c#" debug="true">
			<assemblies>
				<add assembly="vjslib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></assemblies></compilation>
	</system.web>
</configuration>

changes in GenerricError.aspx

<%@ Page Language="C#" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>Page is being updated</title>
	    <link href="~/css/static.css" rel="stylesheet" type="text/css" />
	    <link href="~/css/ee.css" rel="stylesheet" type="text/css" />
	</HEAD>
	<BODY class="d1"leftMargin=0 topMargin=0>
	<table height="90%" width="100%">
		<tr height="20"><td><h1>Please login again.</h1></td></tr>

		<tr valign="top" height="100%">
			<td>
				<h3>Your computer had been idle too long. The session timed-out for your security.</h3>
				<a href="http://www.ict-m.com/Default.aspx" target="_top">Click here to login.</a>
			</td>
		</tr>
		<tr>
		  <td>
		  <%Response.Write("<br/><div style=\"color:#C6E2FF\">" + ASP.global_asax.exception.StackTrace + "</div><br/>"); %>
		 
		 
		  <a href="http://www.ict-m.com/Default.aspx" target="_top">Home </a>
		  </td>
	  </tr>
		
		
	</table>
	<table height="10%" width="100%">
		<tr valign="middle" height="100%">
			<td valign="middle" height="100%" >
			<hr /><div></div>
					<%
						Response.Write(Request.QueryString["aspxerrorpath"]);
						//Exception ex = Server.GetLastError;
						//Response.Write(ex.Message);
						//Response.Redirect(Server.)			

					%>
			
			</td>
		</tr>
	</table>
	</body>
</HTML>

Default.aspx

<!--#include file="~/public/Applications/Driverprog/healthcare/default.aspx"-->

and Result you can view by Clicking on www.ict-m.com
plz help me to remove this problem.
One this more there is database behind but not uploaded yet. so need static pages to run

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.