SV: Error when moving from localhost to actual web site
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngconfig' list.


=?iso-8859-1?Q?Andr=E9_Colbi=F6rnsen?=
Ta be able to get the exact error description you have to open your
remote web.config and change or add this line:

<customErrors mode=3D"Off"/>

If you have this line in there right know, it probably reads:

<customErrors mode=3D"RemoteOnly" defaultRedirect=3D"mycustompage.htm"/>

Or something similar. This line has to be within the
<system.web></sytem.web> delimiters. When you have done this you will be
able to see exactly what is causing the error to occur.

Hth

Regards/Halsningar

Andre Colbiornsen
--------------------------------------
Sonnenburg Communications
Bergsgatan 3,
SE-211 54 Malm=F6
Sweden
Tel.: +46-(0)40-97 78 80
Fax.: +46-(0)40-97 78 80
Mob.: +46-(0)708-97 78 79
Mail: Click here to reveal e-mail address
Web.: www.sonnenburg.se
--------------------------------------
B2B Web agency - Specializing on .Net
--------------------------------------

-----Ursprungligt meddelande-----
Fr=E5n: Bob Herrmann [mailto:Click here to reveal e-mail address]=20
Skickat: den 31 maj 2002 17:20
Till: aspngconfig
=C4mne: [aspngconfig] Error when moving from localhost to actual web =
site

-- Moved from [aspngfreeforall] to [aspngconfig] by James Avery
<Click here to reveal e-mail address> --

Hi all,

I get the following error when I try to call a page from my browser at
my web site. Up til now, I was using localhost and I could call my page
correctly. Today, I uploaded my pages via FTP to my hosting site and I
cannot call my default page. I suspect I have to make some changes to
my web.config file but I'm not sure whst to do. Any help would be
appreciated. Runtime Error
Description: An application error occurred on the server. The current
custom error settings for this application prevent the details of the
application error from being viewed remotely (for security reasons). It
could, however, be viewed by browsers running on the local server
machine.

Details: To enable the details of this specific error message to be
viewable on remote machines, please create a <customErrors> tag within a
"web.config" configuration file located in the root directory of the
current web application. This <customErrors> tag should then have its
"mode" attribute set to "Off".

<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode=3D"Off"/>
</system.web>
</configuration>

Notes: The current error page you are seeing can be replaced by a custom
error page by modifying the "defaultRedirect" attribute of the
application's <customErrors> configuration tag to point to a custom
error page URL.

<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode=3D"RemoteOnly"
defaultRedirect=3D"mycustompage.htm"/>
</system.web>
</configuration>

| [aspngconfig] member Click here to reveal e-mail address =3D YOUR ID=20
| http://www.asplists.com/asplists/aspngconfig.asp =3D JOIN/QUIT=20
| http://www.asplists.com/search =3D SEARCH Archives

Reply to this message...
 
    
Bob Herrmann
Ok, I changed the customerrors mode=Off. I now get the following error:
Again, this worked fine when I run it in localhost. I get this error when I
try to run my default.aspx page on my hosting server. I copied all my pages
(aspx), logic programs (aspx.vb), controls (ascx) and folders to my new web
hosting site.

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

File or assembly name System, or one of its dependencies, was not found.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: File or assembly name
System, or one of its dependencies, was not found.

Source Error:

The source code that generated this unhandled exception can only be
shown when compiled in debug mode. To enable this, please follow one of the
below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated
the error. Example:

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

or:

2) Add the following section to the configuration file of your
application:

<configuration>
<system.web>
<compilation debug="true"/>
</system.web>
</configuration>

Note that this second technique will cause all files within a given
application to be compiled in debug mode. The first technique will cause
only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a
memory/performance overhead. You should make sure that an application has
debugging disabled before deploying into production scenario.

Assembly Load Trace: The following information can be helpful to determine
why the assembly 'System' could not be loaded.

=== Pre-bind state information ===
LOG: DisplayName = System, Version=1.0.2411.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089
(Fully-specified)
LOG: Appbase = file:///E:/WWW/hcreseller/softdevinc/softdevinc.com/www
LOG: Initial PrivatePath = bin
Calling assembly : ToniniStoreFront, Version=1.0.881.14470, Culture=neutral,
PublicKeyToken=null.
===

LOG: Publisher policy file is not found.
LOG: No redirect found in host configuration file
(C:\WINNT\Microsoft.NET\Framework\v1.0.3705\aspnet.config).
LOG: Using machine configuration file from
C:\WINNT\Microsoft.NET\Framework\v1.0.3705\config\machine.config.
LOG: Post-policy reference: System, Version=1.0.2411.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089
LOG: Attempting download of new URL
file:///C:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET
Files/root/1399990f/1d9b30cd/System.DLL.
LOG: Attempting download of new URL
file:///C:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET
Files/root/1399990f/1d9b30cd/System/System.DLL.
LOG: Attempting download of new URL
file:///E:/WWW/hcreseller/softdevinc/softdevinc.com/www/bin/System.DLL.
LOG: Attempting download of new URL
file:///E:/WWW/hcreseller/softdevinc/softdevinc.com/www/bin/System/System.DL
L.
LOG: Attempting download of new URL
file:///C:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET
Files/root/1399990f/1d9b30cd/System.EXE.
LOG: Attempting download of new URL
file:///C:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET
Files/root/1399990f/1d9b30cd/System/System.EXE.
LOG: Attempting download of new URL
file:///E:/WWW/hcreseller/softdevinc/softdevinc.com/www/bin/System.EXE.
LOG: Attempting download of new URL
file:///E:/WWW/hcreseller/softdevinc/softdevinc.com/www/bin/System/System.EX
E.

Stack Trace:

[FileNotFoundException: File or assembly name System, or one of its
dependencies, was not found.]
ToniniStoreFront.Global.InitializeComponent() +0
ToniniStoreFront.Global..ctor() +19
ASP.Global_asax..ctor() +5

[TargetInvocationException: Exception has been thrown by the target of an
invocation.]
System.RuntimeType.CreateInstanceImpl(Boolean publicOnly) +0
System.Activator.CreateInstance(Type type, Boolean nonPublic) +66
System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder
binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
+277
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr,
Binder binder, Object[] args, CultureInfo culture, Object[]
activationAttributes) +109

System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext
context) +163
System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext
context) +241
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +407

----------------------------------------------------------------------------
----
Version Information: Microsoft .NET Framework Version:1.0.3705.209; ASP.NET
Version:1.0.3705.0
----- Original Message -----
From: "André Colbiörnsen" <Click here to reveal e-mail address>
To: "aspngconfig" <Click here to reveal e-mail address>
Sent: Friday, May 31, 2002 12:54 PM
Subject: [aspngconfig] SV: Error when moving from localhost to actual web
site

Ta be able to get the exact error description you have to open your
remote web.config and change or add this line:

<customErrors mode="Off"/>

If you have this line in there right know, it probably reads:

<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>

Or something similar. This line has to be within the
<system.web></sytem.web> delimiters. When you have done this you will be
able to see exactly what is causing the error to occur.

Hth

Regards/Halsningar

Andre Colbiornsen
--------------------------------------
Sonnenburg Communications
Bergsgatan 3,
SE-211 54 Malmö
Sweden
Tel.: +46-(0)40-97 78 80
Fax.: +46-(0)40-97 78 80
Mob.: +46-(0)708-97 78 79
Mail: Click here to reveal e-mail address
Web.: www.sonnenburg.se
--------------------------------------
B2B Web agency - Specializing on .Net
--------------------------------------

-----Ursprungligt meddelande-----
Från: Bob Herrmann [mailto:Click here to reveal e-mail address]
Skickat: den 31 maj 2002 17:20
Till: aspngconfig
Ämne: [aspngconfig] Error when moving from localhost to actual web site

-- Moved from [aspngfreeforall] to [aspngconfig] by James Avery
<Click here to reveal e-mail address> --

Hi all,

I get the following error when I try to call a page from my browser at
my web site. Up til now, I was using localhost and I could call my page
correctly. Today, I uploaded my pages via FTP to my hosting site and I
cannot call my default page. I suspect I have to make some changes to
my web.config file but I'm not sure whst to do. Any help would be
appreciated. Runtime Error
Description: An application error occurred on the server. The current
custom error settings for this application prevent the details of the
application error from being viewed remotely (for security reasons). It
could, however, be viewed by browsers running on the local server
machine.

Details: To enable the details of this specific error message to be
viewable on remote machines, please create a <customErrors> tag within a
"web.config" configuration file located in the root directory of the
current web application. This <customErrors> tag should then have its
"mode" attribute set to "Off".

<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>

Notes: The current error page you are seeing can be replaced by a custom
error page by modifying the "defaultRedirect" attribute of the
application's <customErrors> configuration tag to point to a custom
error page URL.

<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="RemoteOnly"
defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>

| [aspngconfig] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngconfig.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

| [aspngconfig] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngconfig.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

Reply to this message...
 
 
System.Activator
System.Globalization.CultureInfo
System.IO.FileNotFoundException
System.Reflection.BindingFlags
System.Reflection.TargetInvocationException
System.Web.HttpContext
System.Web.HttpRuntime
System.Web.HttpWorkerRequest




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com