Author |
Topic |
danjapro
Starting Member
44 Posts |
Posted - 2004-09-24 : 13:05:35
|
--------------------------------------------------------------------------------Here is my proplem.My website worked fine on the first server. All of my apsx pages worked fine there.Now I am trying to move to earthlink servers my --web.config-- file seems not to be working.Can any one help me:Here is my web.config file<?xml version="1.0" encoding="utf-8" ?><configuration><system.web> <!-- DYNAMIC DEBUG COMPILATION Set compilation debug="true" to insert debugging symbols (.pdb information)into the compiled page. Because this creates a larger file that executes more slowly, you should set this value to true only when debugging and to false at all other times. For more information, refer to the documentation about debugging ASP.NET files. --><compilation defaultLanguage="vb" debug="true" /> <!-- CUSTOM ERROR MESSAGES Set customErrors mode="On" or "RemoteOnly" to enable custom error messages, "Off" to disable. Add <error> tags for each of the errors you want to handle. --><customErrors mode="RemoteOnly" /> <!-- AUTHENTICATION This section sets the authentication policies of the application. Possible modes are "Windows", "Forms", "Passport" and "None" --> <authentication mode="Windows" /> <!-- AUTHORIZATION This section sets the authorization policies of the application. You can allow or deny access to application resources by user or role. Wildcards: "*" mean everyone, "?" means anonymous (unauthenticated) users. --><authorization> <allow users="*" /> <!-- Allow all users --> <!-- <allow users="[comma separated list of users]" roles="[comma separated list of roles]"/> <deny users="[comma separated list of users]" roles="[comma separated list of roles]"/> --> <?xml version="1.0" encoding="utf-8" ?><configuration><system.web><!-- DYNAMIC DEBUG COMPILATIONSet compilation debug="true" to insert debugging symbols (.pdb information)into the compiled page. Because this creates a larger file that executesmore slowly, you should set this value to true only when debugging and tofalse at all other times. For more information, refer to the documentation aboutdebugging ASP.NET files.--><compilation defaultLanguage="vb" debug="true" /><!-- CUSTOM ERROR MESSAGESSet customErrors mode="On" or "RemoteOnly" to enable custom error messages, "Off" to disable. Add <error> tags for each of the errors you want to handle.--><customErrors mode="RemoteOnly" /><!-- AUTHENTICATION This section sets the authentication policies of the application. Possible modes are "Windows", "Forms", "Passport" and "None"--><authentication mode="Windows" /> <!-- AUTHORIZATION This section sets the authorization policies of the application. You can allow or deny accessto application resources by user or role. Wildcards: "*" mean everyone, "?" means anonymous (unauthenticated) users.--><authorization><allow users="*" /> <!-- Allow all users --><!-- <allow users="[comma separated list of users]"roles="[comma separated list of roles]"/><deny users="[comma separated list of users]"roles="[comma separated list of roles]"/>--></authorization><!-- APPLICATION-LEVEL TRACE LOGGINGApplication-level tracing enables trace log output for every page within an application. Set trace enabled="true" to enable application trace logging. If pageOutput="true", thetrace information will be displayed at the bottom of each page. Otherwise, you can view the application trace log by browsing the "trace.axd" page from your web applicationroot. --><trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" /><!-- SESSION STATE SETTINGSBy default ASP.NET uses cookies to identify which requests belong to a particular session. If cookies are not available, a session can be tracked by adding a session identifier to the URL. To disable cookies, set sessionState cookieless="true".--><sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20" /><!-- GLOBALIZATIONThis section sets the globalization settings of the application. --><globalization requestEncoding="utf-8" responseEncoding="utf-8" /></system.web></configuration></authorization> |
|
MichaelP
Jedi Yak
2489 Posts |
Posted - 2004-09-24 : 13:28:00
|
The line:<authentication mode="Windows" /> might need to be <authentication mode="None" /> What is the error message that you are getting? What indicates to you that your web.config is the issue?Michael<Yoda>Use the Search page you must. Find the answer you will.</Yoda> |
 |
|
danjapro
Starting Member
44 Posts |
Posted - 2004-09-24 : 15:20:32
|
here is the error message:Parser Error Message: It is an error to use a section registered as allowDefinition='MachineOnly' beyond machine.config.Source Error: Line 9: Line 10: Line 11: <compilation defaultLanguage="vb" debug="true" /> Line 12: <!-- Line 13: CUSTOM ERROR MESSAGES Source File: d:\webs\south5\moneysource\web.config Line: 11 |
 |
|
MichaelP
Jedi Yak
2489 Posts |
Posted - 2004-09-24 : 16:02:13
|
Ok, what I think that means is your host has edited their machine.config to not allow the compilation node. I can't imagine why they did this, or if this will even work, but try removing the <compilation> node.Michael<Yoda>Use the Search page you must. Find the answer you will.</Yoda> |
 |
|
danjapro
Starting Member
44 Posts |
Posted - 2004-09-24 : 16:48:04
|
I took all the compliation mode out now here is my error messge:Source Error: Line 24: --> Line 25: Line 26: <authentication mode="Windows" /> Line 27: <!-- Line 28: AUTHORIZATION This section sets the authorization policies of the application. You can allow or deny access to application resources by user or role. Wildcards: "*" mean everyone, "?" means anonymous (unauthenticated) users. Source File: d:\webs\south5\moneysource\web.config Line: 26 |
 |
|
MichaelP
Jedi Yak
2489 Posts |
Posted - 2004-09-24 : 17:42:47
|
Hmm...something is not right here.Can you talk to your Host's Tech Support folks? I bet they have a sample Web.Config that you could look at and figure out what the deal is. I've never had the issues that you are running into.Michael<Yoda>Use the Search page you must. Find the answer you will.</Yoda> |
 |
|
danjapro
Starting Member
44 Posts |
Posted - 2004-09-27 : 12:47:03
|
Here is my code and my error, i would like to know if there is any possiblity that i might be doing something wrong.Error::::::::::::::::::::::::::::::::::::::::Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.Source Error: Line 23: "Forms", "Passport" and "None"Line 24: -->Line 25: <authentication mode="Windows" /> Line 26: Line 27: Source File: d:\webs\south5\moneysource\web.config Line: 25 :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::Code:<?xml version="1.0" encoding="utf-8" ?><configuration> <system.web> <!-- DYNAMIC DEBUG COMPILATION Set compilation debug="true" to insert debugging symbols (.pdb information) into the compiled page. Because this creates a larger file that executes more slowly, you should set this value to true only when debugging and to false at all other times. For more information, refer to the documentation about debugging ASP.NET files. --> <!-- <compilation defaultLanguage="vb" debug="true" /> --> <!-- CUSTOM ERROR MESSAGES Set customErrors mode="On" or "RemoteOnly" to enable custom error messages, "Off" to disable. Add <error> tags for each of the errors you want to handle. --> <customErrors mode="RemoteOnly" /> <!-- AUTHENTICATION This section sets the authentication policies of the application. Possible modes are "Windows", "Forms", "Passport" and "None" --> <authentication mode="Windows" /> <!-- AUTHORIZATION This section sets the authorization policies of the application. You can allow or deny access to application resources by user or role. Wildcards: "*" mean everyone, "?" means anonymous (unauthenticated) users. --> <authorization> <allow users="*" /> <!-- Allow all users --> <!-- <allow users="[comma separated list of users]" roles="[comma separated list of roles]"/> <deny users="[comma separated list of users]" roles="[comma separated list of roles]"/> --> </authorization> <!-- APPLICATION-LEVEL TRACE LOGGING Application-level tracing enables trace log output for every page within an application. Set trace enabled="true" to enable application trace logging. If pageOutput="true", the trace information will be displayed at the bottom of each page. Otherwise, you can view the application trace log by browsing the "trace.axd" page from your web application root. --> <trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" /> <!-- SESSION STATE SETTINGS By default ASP.NET uses cookies to identify which requests belong to a particular session. If cookies are not available, a session can be tracked by adding a session identifier to the URL. To disable cookies, set sessionState cookieless="true". --> <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20" /> <!-- GLOBALIZATION This section sets the globalization settings of the application. --> <globalization requestEncoding="utf-8" responseEncoding="utf-8" /> </system.web></configuration> </authorization> |
 |
|
MichaelP
Jedi Yak
2489 Posts |
Posted - 2004-09-27 : 14:23:34
|
This sounds like the problem right here:This error can be caused by a virtual directory not being configured as an application in IISTalk to your host about this one. This isn't something you can fix, they have to fix it.Michael<Yoda>Use the Search page you must. Find the answer you will.</Yoda> |
 |
|
oocpp
Starting Member
1 Post |
Posted - 2007-06-10 : 01:17:12
|
Remove this line from web.config file<compilation defaultLanguage="vb" debug="true" /> it seems like this property is set to "not overridable" in the machine.config |
 |
|
|