Saturday, March 31, 2012

web.config error

plz i need ur help !!!!!
i have proplem in the server side ,, my project work in client side but when i upload it i have proplem whith web.config file
how can i reset it ,, the code inside the button can not work ??:(can you explain the problem for us !!!!
what happen and what is the error you getting

rasheed_almasri wrote:


i have proplem in the server side ,, my project work in client side but when i upload it i have proplem whith web.config file
how can i reset it ,, the code inside the button can not work ??:(


What do you mean it works on client side, but have a problem on server side. You need to explain little better, otherwise people might simply ignore your question

web.config error

I'm attempting to write a custom Authentication module using http://www.15seconds
.com/Issue/020417.htm
I looked at http://support.microsoft.com/defaul...b;EN-US;307996,
but it doesn't setup things the way I want (ie, I want to integrate into an
existing web application).
So I want to deny unauthenticated users access to everything except the defa
ult page.
I have an error in web.config. When I comment out these lines:
<location path="default.aspx" >
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
Things work. As soon as I put them in, I get this error message:
Server Error in '/Commencement' Application.
----
--
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 runni
ng 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 applic
ation. 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 err
or page by modifying the "defaultRedirect" attribute of the application's <c
ustomErrors> 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>
Which is odd, because I have customErrors mode="Off" set. I've looked this r
esult up in "Programming ASP.NET", Chapter 19, p. 886, which has the exact s
ame syntax. Any assistance would be appreciated. Here's the entire webconfig
file:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<!-- DYNAMIC DEBUG COMPILATION
Set compilation debug="true" to enable ASPX debugging. Otherwise, setting t
his value to
false will improve runtime performance of this application.
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 a
bout
debugging ASP.NET files.
-->
<compilation defaultLanguage="c#" 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.
"On" Always display custom (friendly) messages.
"Off" Always display detailed ASP.NET error information.
"RemoteOnly" Display custom (friendly) messages only to users not running
on the local Web server. This setting is recommended for security purposes,
so
that you do not display application detail information to remote clients.
-->
<customErrors mode="Off" />
<!-- AUTHENTICATION
This section sets the authentication policies of the application. Possible m
odes are "Windows",
"Forms", "Passport" and "None"
"None" No authentication is performed.
"Windows" IIS performs authentication (Basic, Digest, or Integrated Windows)
according to
its settings for the application. Anonymous access must be disabled in IIS.
"Forms" You provide a custom form (Web page) for users to enter their creden
tials, and then
you authenticate them in your application. A user credential token is stored
in a cookie.
"Passport" Authentication is performed via a centralized authentication serv
ice provided
by Microsoft that offers a single logon and core profile services for member
sites.
-->
<authentication mode="None" />
<!-- AUTHORIZATION
This section sets the authorization policies of the application. You can all
ow or deny access
to application resources by user or role. Wildcards: "*" mean everyone, "?"
means anonymous
(unauthenticated) users.
-->
<authorization>
<deny users="?" /> <!-- Deny unauthenticated 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>
<!--
<location path="default.aspx" >
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
-->
<!-- 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 applica
tion
root.
-->
<trace enabled="true" requestLimit="10" pageOutput="false" traceMode="SortBy
Time" localOnly="false" />
<!-- SESSION STATE SETTINGS
By default ASP.NET uses cookies to identify which requests belong to a parti
cular session.
If cookies are not available, a session can be tracked by adding a session i
dentifier to the URL.
To disable cookies, set sessionState cookieless="true".
-->
<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sq
lConnectionString="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>Alright, found the error. It was in the </system.web> being nested within th
e external <system.web> tags. On to debugging the HTTPModule.

web.config error

Hi all
every time i run and aspx page i get the bellow error
<compilation debug="true">
Line 31: <assemblies>
Line 32: <add assembly="System.Web.Extensions,
Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/
>
Line 33: <add assembly="System.Design, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
Line 34: <add assembly="System.Web.Extensions.Design,
Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/
>
i would be glad if any one help me in this.Did you add the System.Web.Extensions.Design dll to your project? This is in
the same folder as the System.Web.Extensions dll for ASP.Net AJAX.
Hope this helps,
Mark Fitzpatrick
Microsoft MVP - Expression
"jack" <gautams.mail@.gmail.com> wrote in message
news:16fe3953-b48f-4e19-9a3b-161a8ec5edde@.e6g2000prf.googlegroups.com...
> Hi all
> every time i run and aspx page i get the bellow error
> <compilation debug="true">
> Line 31: <assemblies>
> Line 32: <add assembly="System.Web.Extensions,
> Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/
> Line 33: <add assembly="System.Design, Version=2.0.0.0,
> Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
> Line 34: <add assembly="System.Web.Extensions.Design,
> Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/
>
> i would be glad if any one help me in this.

web.config error

Dear all,

When I tried to enter <httpRuntime>executionTimeout="1200" </httpRuntime> in my web.config, it prompts me the error that "The configuration section cannot contain a CData or text element. May I know how to resolve it?

Thanks

When you want to set values in web.config for an section you need to use attributes, the section don't have plain text as values.

Change your line to the following:

<httpRuntimeexecutionTimeout="1200" />

I hope this helps

Richard

web.config error

Server Errorin'/' Application.------------------------Runtime Error Description: An application error occurred on the server. The current custom error settingsfor 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 ofthis specific error message to be viewable on remote machines, please create a tag within a"web.config" configuration file locatedin the root directory of the current web application. This tag should then have its"mode" attributeset to"Off". "Off"/> 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 configuration tag to point to a custom error page URL. "RemoteOnly" defaultRedirect="mycustompage.htm"/>

i just created a single page web application and copied it to a folder in my web hosting directory.

when i try to access the file i get this error

Did you follow the directions of the exception and set <customErrors mode="Off" /> in Web.config so you can see what the exception is?

web.config error

i have a web.config and whe ni uploaded it to site , below error raise :

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

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
but when i delete that file , allthing is right
why this error raise . i have a connection string in this file and use that to my code
how can i coorect this?Keep <customErrors mode="Off"/> in web.config and see what error you are getting and then correct it and then again change it to On or remoteOnly!

Hope it helps!
i turn custom error on and of and remoteonly ,but that error raise without any more information
Then I guess, the problem would be in web.config file. That's why you are keep on getting that error.

Please make sure your web.config file is correct! If possible try to open the page in the server it self! Probably that would helps you!

web.config error

hi
i have developed a Cybers System. after uploading i got a web.config error . plz tell me whats the problem .
here is the link of my web.
http://www45.brinkster.com/crm1/index.html
click on Work Order link and see the error.
thnx in advance.

set the mode attribute of the custromErrors node to Off so that you can see what's causing the error.