472,108 Members | 2,029 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,108 software developers and data experts.

asp error accord when upload the aspx file to my web site

29
hello

i have an aspx page that write in javascript

its too small file

when i upload it to my website i got an error

Server Error in '/' Application.
--------------------------------------------------------------------------------

Runtime Error

i tried to upload it to another website and its work fine

then i contact the host company to ask about the problem

and they reply this message

As per your request, we have checked into this issue. The error that your site is producing appears to be a coding error, below is the full error from the server.

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: Unrecognized configuration section 'connectionStrings'

Source Error:


Line 10: <configuration>
Line 11: <appSettings/>
Line 12: <connectionStrings/>
Line 13: <system.web>
Line 14: <!--


Source File: D:\Home\reseller@attlashost.com\webadmin@attlashos t.com\attlashost.com\www\web.config Line: 12
and this is my webconfig file

Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0"?>
  2. <!-- 
  3.     Note: As an alternative to hand editing this file you can use the 
  4.     web admin tool to configure settings for your application. Use
  5.     the Website->Asp.Net Configuration option in Visual Studio.
  6.     A full list of settings and comments can be found in 
  7.     machine.config.comments usually located in 
  8.     \Windows\Microsoft.Net\Framework\v2.x\Config 
  9. -->
  10. <configuration>
  11.     <appSettings/>
  12.     <connectionStrings/>
  13.     <system.web>
  14.         <!-- 
  15.             Set compilation debug="true" to insert debugging 
  16.             symbols into the compiled page. Because this 
  17.             affects performance, set this value to true only 
  18.             during development.
  19.         -->
  20.         <compilation debug="true"/>
  21.         <!--
  22.             The <authentication> section enables configuration 
  23.             of the security authentication mode used by 
  24.             ASP.NET to identify an incoming user. 
  25.         -->
  26.         <authentication mode="Windows"/>
  27.         <!--
  28.             The <customErrors> section enables configuration 
  29.             of what to do if/when an unhandled error occurs 
  30.             during the execution of a request. Specifically, 
  31.             it enables developers to configure html error pages 
  32.             to be displayed in place of a error stack trace.
  33.  
  34.         <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
  35.             <error statusCode="403" redirect="NoAccess.htm" />
  36.             <error statusCode="404" redirect="FileNotFound.htm" />
  37.         </customErrors>
  38.         -->
  39.     </system.web>
  40. </configuration>
please i need ur help its very very important to me

and thanks for all
Mar 9 '07 #1
13 2456
acoder
16,027 Expert Mod 8TB
This seems like an .NET problem. I'll move it there.
Mar 9 '07 #2
MCPD
29
ok thnx i hope to find any help here
Mar 9 '07 #3
MCPD
29
i really need a help guys i dont have time just 22 hours

please help
Mar 9 '07 #4
Frinavale
9,735 Expert Mod 8TB
i really need a help guys i dont have time just 22 hours

please help
The <connectionStrings> tag is used to define any connection strings your application might use to connect to a databases.
It appears that you are not using this section.
I would take it out of the web.config file and try again.

(I would also remove the <appSettings> tag since it appears that you are not using it either)

Cheers!
-Frinny
Mar 9 '07 #5
MCPD
29
thnx alot but i have a question

is it possible that the problem is from the server

they say that the server support asp !
Mar 9 '07 #6
Frinavale
9,735 Expert Mod 8TB
thnx alot but i have a question

is it possible that the problem is from the server

they say that the server support asp !

Is it just ASP that they support or do they support ASP.NET.

I believe that you're application is an ASP.NET application because its using a web.config file....you could be right in assuming that that particular server wont support your application.

Ask them if the server supports ASP.NET

Best of Luck

-Frinny
Mar 9 '07 #7
MCPD
29
thnx for help

i will ask them

i get a new error is that mean any thing ?

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load type '_Default'.

Source Error:


Line 1: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
Line 2:
Line 3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


Source File: D:\Home\reseller@attlashost.com\webadmin@attlashos t.com\attlashost.com\www\Default.aspx Line: 1
Mar 9 '07 #8
MCPD
29
when i ask them about supporting asp.net this what they say

I recommend having your webmaster review your code for the error that is being displayed. Our server does support asp.net version 1.1.4322.
what next ?
Mar 9 '07 #9
Frinavale
9,735 Expert Mod 8TB
when i ask them about supporting asp.net this what they say



what next ?
Your code must run on a web server that supports asp.net.
Your web application cannot run unless this is provided for it.

I don't know what I would do in your situation.
Switch providers?
Mar 10 '07 #10
MCPD
29
they say

Originally Posted by
I recommend having your webmaster review your code for the error that is being displayed. Our server does support asp.net version 1.1.4322.


that mean they support asp.net !
Mar 10 '07 #11
MCPD
29
guys please i think we are very close from the end of the problem

the last error was

Parser Error Message: Could not load type '_Default'.


Line 1: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
Line 2:
Line 3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

LINE1 In red that mean the error is there

when i delete line1 from the aspx file
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

the file work fine because it write in javascript

but when the file containt c# code it show error message because he didn't find the CodeFile="Default.aspx.cs" in the line 1 becuase i delete it

when i return to the Parser Error Message i see that the real problem is from this " Could not load type '_Default'. "

what i can do !!?!?!?!!??!?!
Mar 11 '07 #12
MCPD
29
guys where r u !!!!!!!
i see my thread in the second page please dont ignore me :(
Mar 11 '07 #13
Frinavale
9,735 Expert Mod 8TB
guys please i think we are very close from the end of the problem

the last error was

Parser Error Message: Could not load type '_Default'.


Line 1: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
Line 2:
Line 3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

LINE1 In red that mean the error is there

when i delete line1 from the aspx file
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

the file work fine because it write in javascript

but when the file containt c# code it show error message because he didn't find the CodeFile="Default.aspx.cs" in the line 1 becuase i delete it

when i return to the Parser Error Message i see that the real problem is from this " Could not load type '_Default'. "

what i can do !!?!?!?!!??!?!
Sorry for the delayed reply, I go away on weekends.

Are you sure that the permissions are set correctly on your project files?
Are you sure that everything has been uploaded correctly?
It seems that you're server doesn't know where or how to read your project's objects (the server side code didn't load properly)

I'm not sure the exact cause of this.
Hopefully someone else on the scripts can help out here too.

Sorry I couldn't be more help
-Frinn
Mar 12 '07 #14

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Amar | last post: by
8 posts views Thread by John | last post: by
5 posts views Thread by Shapper | last post: by
6 posts views Thread by Paul | last post: by
1 post views Thread by igotyourdotnet | last post: by
29 posts views Thread by =?Utf-8?B?SGVybWF3aWg=?= | last post: by
3 posts views Thread by =?Utf-8?B?RWRC?= | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.