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.

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"/

Quote:

Originally Posted by

>


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"/

Quote:

Originally Posted by

>


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.comwrote in message
news:16fe3953-b48f-4e19-9a3b-161a8ec5edde@.e6g2000prf.googlegroups.com...

Quote:

Originally Posted by

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"/

Quote:

Originally Posted by

>>


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"/

Quote:

Originally Posted by

>>


>
>
>
i would be glad if any one help me in this.

web.config error handling

Hi y'all,

I placed this piece of code in my web.config. I used a aspx-page because i want to store the url + time of error in my datase. Isn't this possible/ has it to be a html page because i don't get redirected to my page but to a page visual studio generated.

<!--
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="onderhoud.aspx">
<error statusCode="403" redirect="onderhoud.aspx" />
<error statusCode="404" redirect="onderhoud.aspx" />
</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. -->

you are testing this on the Server right? The "RemoteOnly" stops it from happening on your localhost/dev machine...

Otherwise, yes...this should work.

web.config error asp.net 2.0

Platform: ASP.NET 2.0 Windows XP

When users click login button on my login form, the following error appears

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:The entry 'AAA has already been added.
Source Error:

Line 39: </appSettings>Line 40: <connectionStrings>Line 41: <add name="AAA" connectionString="Server=server;User ID=user;Password=password;Database=db;Persist Security Info=True" providerName="System.Data.SqlClient" />Line 42: </connectionStrings>Line 43: <system.web>

Source File:C:\Inetpub\wwwroot\A_TEST\web.config Line:41

but there is no second "AAA" entry in my web.config file
Any suggestions?
Zura

Hello.
maybe not in that config file...maybe someone has added the same entry to another web.config file placed at another level. check the other config files to see if they don't have that entry on them...
Yes, You are right. There is another web.config file placed at another level. (in the parent directory). But that directory is completly different application. But why this application is accessing web.config in parent directory?

Hello again.
well. you must keep in mind that the configurations applied at a specific level result from the cumulative sum of all the levels. for example, when asp.net processes a page that is placed at the top of you app (ie, a page placed on the top dir of the app), the definitions available at that place come from the web.config placed at that folder + web.config placed at the top root folder+web.config placed at the installation directory+machine.config placed on the installation directory.
it works as if all the declarations made in previous config files were written in the config file placed in the directory you're in...so, if you've already have an application entry with the same name of the web.config file placed on the parent directory, then you'll have to remove the entry before adding it again in the web.config. something like this might help you:
<appSettings>
<remove name="key" />
<add name="key" value="..." />
</appSettings>
hope this helps...

web.config error with forms authentication

Can anyone help me out with why the following code in web.config

<authentication mode="Forms" />
<forms loginUrl = "Secure/Login.aspx" />
</authentication
gives me the following error

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 'forms'

Thanks in advanceProblem solved - I must have bought the worst beginners book going! More
errata than you can shake a stick at and no errata available because wrox
ceased trading!!

"Andrew Banks" <banksy@.nojunkblueyonder.co.uk> wrote in message
news:KUiLb.10053$aP6.111676466@.news-text.cableinet.net...
> Can anyone help me out with why the following code in web.config
> <authentication mode="Forms" />
> <forms loginUrl = "Secure/Login.aspx" />
> </authentication>
> gives me the following error
> 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 'forms'
> Thanks in advance
You already closed the authentication tag. It should be

<authentication mode="Forms">
<forms loginUrl = "Secure/Login.aspx" />
</authentication
Tu-Thach

>--Original Message--
>Can anyone help me out with why the following code in
web.config
><authentication mode="Forms" />
> <forms loginUrl = "Secure/Login.aspx" />
></authentication>
>gives me the following error
>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 'forms'
>Thanks in advance
>
>.
Which book is it that you are using?

"Andrew Banks" <banksy@.nojunkblueyonder.co.uk> wrote in message
news:H9jLb.10066$R27.111986847@.news-text.cableinet.net...
> Problem solved - I must have bought the worst beginners book going! More
> errata than you can shake a stick at and no errata available because wrox
> ceased trading!!
>
> "Andrew Banks" <banksy@.nojunkblueyonder.co.uk> wrote in message
> news:KUiLb.10053$aP6.111676466@.news-text.cableinet.net...
> > Can anyone help me out with why the following code in web.config
> > <authentication mode="Forms" />
> > <forms loginUrl = "Secure/Login.aspx" />
> > </authentication>
> > gives me the following error
> > 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 'forms'
> > Thanks in advance
See http://tinyurl.com/3bkyd

"Drunken Coder" <merlot.steve@.stephendcarlton.com.wine> wrote in message
news:eMFcIpi1DHA.1752@.tk2msftngp13.phx.gbl...
> Which book is it that you are using?
> "Andrew Banks" <banksy@.nojunkblueyonder.co.uk> wrote in message
> news:H9jLb.10066$R27.111986847@.news-text.cableinet.net...
> > Problem solved - I must have bought the worst beginners book going! More
> > errata than you can shake a stick at and no errata available because
wrox
> > ceased trading!!
> > "Andrew Banks" <banksy@.nojunkblueyonder.co.uk> wrote in message
> > news:KUiLb.10053$aP6.111676466@.news-text.cableinet.net...
> > > Can anyone help me out with why the following code in web.config
> > > > <authentication mode="Forms" />
> > > <forms loginUrl = "Secure/Login.aspx" />
> > > </authentication>
> > > > gives me the following error
> > > > 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 'forms'
> > > > Thanks in advance
> >

web.config error when loaded to website!

Hi,

I'm a newbie to ASP.net. I have created a simple ASP.NET program when I run it on VWD 2005 Express Edition, it runs fine. But when I loaded to my website, it gives me an errors see below:

Error:

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>

//My Web.config file

<?

xmlversion="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>

<

appSettings/>

<

connectionStrings/>

<

system.web>

<!--

Set compilation debug="true" to insert debugging

symbols into the compiled page. Because this

affects performance, set this value to true only

during development.

-->

<

compilationdebug="false"/>

<!--

The <authentication> section enables configuration

of the security authentication mode used by

ASP.NET to identify an incoming user.

-->

<

authenticationmode="Windows"/>

<!--

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.

-->

<

customErrorsmode="Off"defaultRedirect="GenericErrorPage.htm">

<

errorstatusCode="403"redirect="NoAccess.htm" />

<

errorstatusCode="404"redirect="FileNotFound.htm" />

</

customErrors>

</

system.web>

</

configuration>

//My Default.aspx

<%

@dotnet.itags.org.PageLanguage="C#"AutoEventWireup="true"CodeFile="Default.aspx.cs"Inherits="_Default" %>

<!

DOCTYPEhtmlPUBLIC"-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<

htmlxmlns="http://www.w3.org/1999/xhtml">

<

headrunat="server"><title>Untitled Page</title>

</

head>

<

body><formid="form1"runat="server"><div><asp:TextBoxID="TB1"runat="server"Height="142px"Width="255px"></asp:TextBox></div></form>

</

body>

</

html>

//My Default.aspx.cs

using

System;

using

System.Data;

using

System.Configuration;

using

System.Web;

using

System.Web.Security;

using

System.Web.UI;

using

System.Web.UI.WebControls;

using

System.Web.UI.WebControls.WebParts;

using

System.Web.UI.HtmlControls;

public

partialclass_Default : System.Web.UI.Page

{

protectedvoid Page_Load(object sender,EventArgs e)

{

TB1.Text =

"hello world";

}

}

What am I doing wrong, please help!!

Thanks in advance

Jason

Hi,

I noticed that you didn't use a capitol 'H' in 'hello world.' Seriously, I'm not sure what is going wrong, but there's at least one thing that caught my eye in your web.config - you are using 'windows authentication.' That's fine for an intr-a-net site, where the users will have already logged on using their domain's windows authentication, but you can't expect that Joe Surfer on the internet will have the proper creds (and without authentication, you are in the same boat as Joe)..

I was looking for a reference to something (like an image file), that would be located on your localhost, that you forgot to change (common mistake), but your app is so simple, I didn't notice anything other than the 'windows authentication' See if changing that clears things up for you. Good luck, BRN..


Is the web server set up as an application do you know in IIS?

Do you have the correct version of asp on there?


When an asp.net 2.0 application is placed in a virtual folder that is configured as an asp.net 1.1 app, the 1.1 framework will be unable to process the web.config file and the application will not run. Make sure the folder you loaded you app to is configured as anasp.net 2.0 app.

check this:
http://www.extremeexperts.com/Net/Articles/ConfigurationManagementinASPNETPart2.aspx


Hi,

Thanks all for the reply, I didn't run my application on localhost. All I did was, I tested my application in VWD 2005 express and it works fine there, then I loaded it up to my website which hosted by "Startlogic", I got the "Window Logic" package which they said is capable of handle ASP.NET 2.0. But when I enter in the direct URL to my App then I got the error above from the web.config file. I'm really new to ASP.NET but really interested to learn. If you guys can help me out, very much appreciated.

Thanks

Jason


Like another poster stated, try taking out Windows Authentication. Also make sure your hosting company is running the .NET 2.0 framework, if they don't it will not run.

As others have said, it sounds like a config problem with your site. You need to get your hosts to check that your web root is setup as an application and that it is setup for asp.net 2.0.


Hi,

Thank guys for all your help. I found the problem from your suggestions, it was my web hosting that only support 1.0 and not 2.0. I have to email them and ask them if they have a way for me to work around this. Again, thanks for all your help

Jason

Web.config error on opening a web site from a local file system

To run an example from ADOnet 2.0 SBS 2005 edition, I opened a web site from
File System (Microsoft Press folder). I can review the Design and Source
tabs; however, running an example program, e.g. Chap 14-Finished, showed the
following error:

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. C:\Microsoft Press\ADO.NET 2.0 Step by Step\Chap14\VB\Chapter 14 -
Finish\Chapter 14 - Finish\web.config 51

I have created a virtural dorectory pointing to C:\Microsoft Press\ADO.NET
2.0 Step by Step\ and IIS Admin did show a virtual directory. Why Chap 14
web site can not be opened?

TIA,
Jeffrey

Probably nested web.config files. Check the folders above it and remove/rename any others.

Jeff


Thanks.

As I indicated in my post, the web site I opened was from a file folder named ADOnet2SBS, which has many subfolders
for different chapters. As shown on the Solution Explorer of VS desktop, there is a web.config for each "web site" opened
from each chapter subfolder

Is this the "nested web.config" which caused the error? I have noticed that my Chapter 15 was okay, then Chapter 16
showed the error msg. How can I keep running Chap. 16? Or I have to delete the web.config from Chapter 15 subfolder?

TIA,
Jeffrey


Hi Jeffrey,

Based on my understanding, you create a virtual directory and place multiple asp.net applications within this virtual directory. When you run the application on the IIS, you get the error message above. If I have misunderstood you, please feel free to let me know.

The error message indicates that we have not to create virtual directory for this application correctly.

If we want to run multiple websites which exist in the same virtual directory, we can try to create a Bin folder in the root folder of every application and place the web.config file in the corresponding Bin folder.


I hope this helps.

Web.Config Error?

Hi;
I am new in .Net and I have a Question.When i open my aspx page,it is giving this error.And what is the problem:

Server Error in '/' Application.

Runtime Error

Description:Anapplication error occurred on the server. The current custom errorsettings for this application prevent the details of the applicationerror from being viewed remotely (for security reasons). It could,however, be viewed by browsers running on the local server machine.
Details: To enable thedetails of this specific error message to be viewable on remotemachines, please create a <customErrors> tag within a"web.config" configuration file located in the root directory of thecurrent web application. This <customErrors> tag should then haveits "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 errorpage by modifying the "defaultRedirect" attribute of the application's<customErrors> configuration tag to point to a custom error pageURL.

<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>


Do just what it says.
In your web.config file make the change listed. That should give you more information about the specific error thats being thrown.
the web.config file is case sensitive, so type it carefully.

<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>

The problem could be anything. What this is telling you is that you don't have your web.config setup to show you the error.

We can't tell from that error message. "The current custom error settings for this application prevent the details of the application error from being viewed remotely." Turn off custom errors by adding the code it shows in the first example to your web.config file. Then run the code and it will give you a more detailed description of what is throwing the error ... we can probably help you if we had that.


As Curt_C has pointed out the cause of this error can be anything. TryBuilding your application and put the .dll file in your server's binfolder and then give it a try.

Web.Config Error?

I try to create login page name authentication.aspx and encounter following
error message.

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: 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 5: </appSettings>
Line 6: <system.web>
Line 7: <authentication mode="Forms">
Line 8: <forms name="Intranet" loginUrl="authentication.aspx"
protection="All" path="/" timeout="20"/>
Line 9: </authentication
Source File: c:\inetpub\wwwroot\JDE_Archival\authentication\web .config
Line: 7
------------------------
Version Information: Microsoft .NET Framework Version:1.0.3705.209; ASP.NET
Version:1.0.3705.0

Location c:\inetpub\wwwroot\JDE_Archival\authentication\aut hentication.aspx

Please advise.Hi Sam,,

Try to change your node <authentication mode=3D"Forms"> and run.

Are you using WinXP OS? Coz WinXP has restriction of having only one
application ie. root so install website into that root directory. If above
method doesn't work and u r using WinXP then try this method.

With Best Regards
Naveen K S

"Sam" wrote:

> I try to create login page name authentication.aspx and encounter following
> error message.
>
> 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: 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 5: </appSettings>
> Line 6: <system.web>
> Line 7: <authentication mode="Forms">
> Line 8: <forms name="Intranet" loginUrl="authentication.aspx"
> protection="All" path="/" timeout="20"/>
> Line 9: </authentication>
> Source File: c:\inetpub\wwwroot\JDE_Archival\authentication\web .config
> Line: 7
> ------------------------
> Version Information: Microsoft .NET Framework Version:1.0.3705.209; ASP.NET
> Version:1.0.3705.0
> Location c:\inetpub\wwwroot\JDE_Archival\authentication\aut hentication.aspx
> Please advise.
>

Web.Config Error?

I try to create login page name authentication.aspx and encounter following
error message.
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: 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 5: </appSettings>
Line 6: <system.web>
Line 7: <authentication mode="Forms">
Line 8: <forms name="Intranet" loginUrl="authentication.aspx"
protection="All" path="/" timeout="20"/>
Line 9: </authentication>
Source File: c:\inetpub\wwwroot\JDE_Archival\authenti
cation\web.config
Line: 7
----
--
Version Information: Microsoft .NET Framework Version:1.0.3705.209; ASP.NET
Version:1.0.3705.0
Location c:\inetpub\wwwroot\JDE_Archival\authenti
cation\authentication.aspx
Please advise.Hi Sam,,
Try to change your node <authentication mode=3D"Forms"> and run.
Are you using WinXP OS? Coz WinXP has restriction of having only one
application ie. root so install website into that root directory. If above
method doesn't work and u r using WinXP then try this method.
With Best Regards
Naveen K S
"Sam" wrote:

> I try to create login page name authentication.aspx and encounter followin
g
> error message.
>
> Configuration Error
> Description: An error occurred during the processing of a configuration fi
le
> required to service this request. Please review the specific error details
> below and modify your configuration file appropriately.
> Parser Error Message: It is an error to use a section registered as
> allowDefinition='MachineToApplication' beyond application level. This erro
r
> can be caused by a virtual directory not being configured as an applicatio
n
> in IIS.
> Source Error:
> Line 5: </appSettings>
> Line 6: <system.web>
> Line 7: <authentication mode="Forms">
> Line 8: <forms name="Intranet" loginUrl="authentication.aspx"
> protection="All" path="/" timeout="20"/>
> Line 9: </authentication>
> Source File: c:\inetpub\wwwroot\JDE_Archival\authenti
cation\web.config
> Line: 7
> ----
--
> Version Information: Microsoft .NET Framework Version:1.0.3705.209; ASP.NE
T
> Version:1.0.3705.0
> Location c:\inetpub\wwwroot\JDE_Archival\authenti
cation\authentication.asp
x
> Please advise.
>
>

web.config errors after adding <profile> section

My 2.0 webapp works great.

I added a profile section and all of a sudden I get a slew of "Could not
find schema information for the element..." errors/messages.

Any ideas why? Here's part of my web.config...

:
<customErrors mode="Off" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
<profile>
<properties>
<add name="Cart" type="ShoppingCart" serializeAs="Binary"
allowAnonymous="true" />
</properties>
</profile>
</system.web>
:I guess maybe the problem is that my class "ShoppingCart" was named the SAME
as my aspx page, "ShoppingCart.aspx"...

Does this make any sense to you?

:)

"VB Programmer" <dont@.emailme.com> wrote in message
news:e8ordJYLGHA.1312@.TK2MSFTNGP09.phx.gbl...
> My 2.0 webapp works great.
> I added a profile section and all of a sudden I get a slew of "Could not
> find schema information for the element..." errors/messages.
> Any ideas why? Here's part of my web.config...
> :
> <customErrors mode="Off" defaultRedirect="GenericErrorPage.htm">
> <error statusCode="403" redirect="NoAccess.htm" />
> <error statusCode="404" redirect="FileNotFound.htm" />
> </customErrors>
> <profile>
> <properties>
> <add name="Cart" type="ShoppingCart" serializeAs="Binary"
> allowAnonymous="true" />
> </properties>
> </profile>
> </system.web>
> :

web.config errors after adding <profile> section

My 2.0 webapp works great.
I added a profile section and all of a sudden I get a slew of "Could not
find schema information for the element..." errors/messages.
Any ideas why? Here's part of my web.config...
:
<customErrors mode="Off" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
<profile>
<properties>
<add name="Cart" type="ShoppingCart" serializeAs="Binary"
allowAnonymous="true" />
</properties>
</profile>
</system.web>
:I guess maybe the problem is that my class "ShoppingCart" was named the SAME
as my aspx page, "ShoppingCart.aspx"...
Does this make any sense to you?
:)
"VB Programmer" <dont@.emailme.com> wrote in message
news:e8ordJYLGHA.1312@.TK2MSFTNGP09.phx.gbl...
> My 2.0 webapp works great.
> I added a profile section and all of a sudden I get a slew of "Could not
> find schema information for the element..." errors/messages.
> Any ideas why? Here's part of my web.config...
> :
> <customErrors mode="Off" defaultRedirect="GenericErrorPage.htm">
> <error statusCode="403" redirect="NoAccess.htm" />
> <error statusCode="404" redirect="FileNotFound.htm" />
> </customErrors>
> <profile>
> <properties>
> <add name="Cart" type="ShoppingCart" serializeAs="Binary"
> allowAnonymous="true" />
> </properties>
> </profile>
> </system.web>
> :
>

Web.config file

Hi,

I have an application that I want to setup for each folder a web.config file
with different authentication, but when I try to do that it gives me an
error saying that maybe that folder is not configured in IIS as virtual
directory.

In the root I don't want to have redirect to login page if i try to access
any file in the root.
If I want to access to any FOLDER present in application root I want to
redirect to the Login page with authentication Forms type.

I already try to put one we.config file in each folder but the error
described above occurs.
--
Programming ASP.NET with VB.NET
Thank's (if you try to help me)
Hope this help you (if I try to help you)
rucanormally there is only 1 web.config (root level)
in there you can have
<authentication mode="Forms">
<forms loginUrl="Secure/Login.aspx" />
</authentication>
i know it is possible to have this securing different folders in different
ways (probably w the authorization) but i do it myself, as my user and
security system is a part of my application. When you log in your user is
stored in the session and dependant on the rights, and location info
associated w that user you get or don't get sertain stuff.

in other words i only use the web.config to make sure a user logs in
(instaid of going to a url direct)

hope it helps

eric

"ruca" <ruuca@.iol.pt> wrote in message
news:eehJXL4KEHA.2456@.TK2MSFTNGP12.phx.gbl...
> Hi,
> I have an application that I want to setup for each folder a web.config
file
> with different authentication, but when I try to do that it gives me an
> error saying that maybe that folder is not configured in IIS as virtual
> directory.
> In the root I don't want to have redirect to login page if i try to access
> any file in the root.
> If I want to access to any FOLDER present in application root I want to
> redirect to the Login page with authentication Forms type.
> I already try to put one we.config file in each folder but the error
> described above occurs.
> --
> Programming ASP.NET with VB.NET
> Thank's (if you try to help me)
> Hope this help you (if I try to help you)
> ruca
You can use a <location> element to set up different authentication for each
folder.

"ruca" <ruuca@.iol.pt> wrote in message
news:eehJXL4KEHA.2456@.TK2MSFTNGP12.phx.gbl...
> Hi,
> I have an application that I want to setup for each folder a web.config
file
> with different authentication, but when I try to do that it gives me an
> error saying that maybe that folder is not configured in IIS as virtual
> directory.
> In the root I don't want to have redirect to login page if i try to access
> any file in the root.
> If I want to access to any FOLDER present in application root I want to
> redirect to the Login page with authentication Forms type.
> I already try to put one we.config file in each folder but the error
> described above occurs.
> --
> Programming ASP.NET with VB.NET
> Thank's (if you try to help me)
> Hope this help you (if I try to help you)
> ruca
Still hapens the same error when I have this:

<location path="pss">
<system.web>
<customErrors mode="Off" />
<authentication mode="Forms">
<forms name="LoginPss" loginUrl="qsqLogin.aspx" />
</authentication>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location
--
Programming ASP.NET with VB.NET
Thank's (if you try to help me)
Hope this help you (if I try to help you)
ruca

"Rick Spiewak" <rickspiewak@.mindspring.com> escreveu na mensagem
news:ONkI8E5KEHA.624@.TK2MSFTNGP11.phx.gbl...
> You can use a <location> element to set up different authentication for
each
> folder.
> "ruca" <ruuca@.iol.pt> wrote in message
> news:eehJXL4KEHA.2456@.TK2MSFTNGP12.phx.gbl...
> > Hi,
> > I have an application that I want to setup for each folder a web.config
> file
> > with different authentication, but when I try to do that it gives me an
> > error saying that maybe that folder is not configured in IIS as virtual
> > directory.
> > In the root I don't want to have redirect to login page if i try to
access
> > any file in the root.
> > If I want to access to any FOLDER present in application root I want to
> > redirect to the Login page with authentication Forms type.
> > I already try to put one we.config file in each folder but the error
> > described above occurs.
> > --
> > Programming ASP.NET with VB.NET
> > Thank's (if you try to help me)
> > Hope this help you (if I try to help you)
> > ruca
Sorry but are child web.config files removed ?

Patrice

"ruca" <ruuca@.iol.pt> a crit dans le message de
news:uGbMGk5KEHA.3628@.TK2MSFTNGP12.phx.gbl...
> Still hapens the same error when I have this:
> <location path="pss">
> <system.web>
> <customErrors mode="Off" />
> <authentication mode="Forms">
> <forms name="LoginPss" loginUrl="qsqLogin.aspx" />
> </authentication>
> <authorization>
> <deny users="?" />
> </authorization>
> </system.web>
> </location>
>
> --
> Programming ASP.NET with VB.NET
> Thank's (if you try to help me)
> Hope this help you (if I try to help you)
> ruca
> "Rick Spiewak" <rickspiewak@.mindspring.com> escreveu na mensagem
> news:ONkI8E5KEHA.624@.TK2MSFTNGP11.phx.gbl...
> > You can use a <location> element to set up different authentication for
> each
> > folder.
> > "ruca" <ruuca@.iol.pt> wrote in message
> > news:eehJXL4KEHA.2456@.TK2MSFTNGP12.phx.gbl...
> > > Hi,
> > > > I have an application that I want to setup for each folder a
web.config
> > file
> > > with different authentication, but when I try to do that it gives me
an
> > > error saying that maybe that folder is not configured in IIS as
virtual
> > > directory.
> > > > In the root I don't want to have redirect to login page if i try to
> access
> > > any file in the root.
> > > If I want to access to any FOLDER present in application root I want
to
> > > redirect to the Login page with authentication Forms type.
> > > > I already try to put one we.config file in each folder but the error
> > > described above occurs.
> > > --
> > > Programming ASP.NET with VB.NET
> > > Thank's (if you try to help me)
> > > Hope this help you (if I try to help you)
> > > ruca
> >
What child files? I only have this one Web.config file.

--
Programming ASP.NET with VB.NET
Thank's (if you try to help me)
Hope this help you (if I try to help you)
ruca

"Patrice" <nobody@.nowhere.com> escreveu na mensagem
news:%23Zr$So5KEHA.268@.TK2MSFTNGP10.phx.gbl...
> Sorry but are child web.config files removed ?
> Patrice
> "ruca" <ruuca@.iol.pt> a crit dans le message de
> news:uGbMGk5KEHA.3628@.TK2MSFTNGP12.phx.gbl...
> > Still hapens the same error when I have this:
> > <location path="pss">
> > <system.web>
> > <customErrors mode="Off" />
> > <authentication mode="Forms">
> > <forms name="LoginPss" loginUrl="qsqLogin.aspx" />
> > </authentication>
> > <authorization>
> > <deny users="?" />
> > </authorization>
> > </system.web>
> > </location>
> > --
> > Programming ASP.NET with VB.NET
> > Thank's (if you try to help me)
> > Hope this help you (if I try to help you)
> > ruca
> > "Rick Spiewak" <rickspiewak@.mindspring.com> escreveu na mensagem
> > news:ONkI8E5KEHA.624@.TK2MSFTNGP11.phx.gbl...
> > > You can use a <location> element to set up different authentication
for
> > each
> > > folder.
> > > > "ruca" <ruuca@.iol.pt> wrote in message
> > > news:eehJXL4KEHA.2456@.TK2MSFTNGP12.phx.gbl...
> > > > Hi,
> > > > > > I have an application that I want to setup for each folder a
> web.config
> > > file
> > > > with different authentication, but when I try to do that it gives me
> an
> > > > error saying that maybe that folder is not configured in IIS as
> virtual
> > > > directory.
> > > > > > In the root I don't want to have redirect to login page if i try to
> > access
> > > > any file in the root.
> > > > If I want to access to any FOLDER present in application root I want
> to
> > > > redirect to the Login page with authentication Forms type.
> > > > > > I already try to put one we.config file in each folder but the error
> > > > described above occurs.
> > > > --
> > > > Programming ASP.NET with VB.NET
> > > > Thank's (if you try to help me)
> > > > Hope this help you (if I try to help you)
> > > > ruca
> > > > > >

Web.config explosion attempting custom section.

ARGH! Any ideas why this might be happening? The code I'm using comes
straight from the example in the VB.NET Help System. All I did was tweak the
name= stuff to match my application.

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

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: Exception creating section handler.

Source Error:

Line 3: <configSections>
Line 4: <sectionGroup name="imagemaker">
Line 5: <section name="settings"
type="System.Configuration.NameValueSectionHandler,Syste m" />
Line 6: </sectionGroup>
Line 7: </configSections
Source File: c:\inetpub\wwwroot\ImageMaker\web.config Line: 5

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
(Partial)
LOG: Appbase = file:///c:/inetpub/wwwroot/ImageMaker
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Post-policy reference: System
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/imagemaker/cb080e7b/cad84567/System.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/imagemaker/cb080e7b/cad84567/System/System.DLL.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/ImageMaker/bin/System.DLL.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/ImageMaker/bin/System/System.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/imagemaker/cb080e7b/cad84567/System.EXE.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/imagemaker/cb080e7b/cad84567/System/System.EXE.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/ImageMaker/bin/System.EXE.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/ImageMaker/bin/System/System.EXE.

-----------------------
--

Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
Version:1.1.4322.573I had the same issue. Fixed it by using fully qualified name for type, like
this:

<section name="..." type="System.Configuration.NameValueFileSectionHandler,
System, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089" /
You can copy a working type from machine.config (the one above is from 1.1
framework, I would think 1.0 has a different version and/or public key
token).

Jerry

"James Coe" <starascendant@.hotmail.com> wrote in message
news:%23BceU3QbDHA.388@.TK2MSFTNGP10.phx.gbl...
> ARGH! Any ideas why this might be happening? The code I'm using comes
> straight from the example in the VB.NET Help System. All I did was tweak
the
> name= stuff to match my application.
> Server Error in '/ImageMaker' Application.
> -----------------------
--
> --
> 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: Exception creating section handler.
> Source Error:
>
> Line 3: <configSections>
> Line 4: <sectionGroup name="imagemaker">
> Line 5: <section name="settings"
> type="System.Configuration.NameValueSectionHandler,Syste m" />
> Line 6: </sectionGroup>
> Line 7: </configSections>
>
> Source File: c:\inetpub\wwwroot\ImageMaker\web.config Line: 5
> 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
> (Partial)
> LOG: Appbase = file:///c:/inetpub/wwwroot/ImageMaker
> LOG: Initial PrivatePath = bin
> Calling assembly : (Unknown).
> ===
> LOG: Policy not being applied to reference at this time (private, custom,
> partial, or location-based assembly bind).
> LOG: Post-policy reference: System
> LOG: Attempting download of new URL
> file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
> Files/imagemaker/cb080e7b/cad84567/System.DLL.
> LOG: Attempting download of new URL
> file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
> Files/imagemaker/cb080e7b/cad84567/System/System.DLL.
> LOG: Attempting download of new URL
> file:///c:/inetpub/wwwroot/ImageMaker/bin/System.DLL.
> LOG: Attempting download of new URL
> file:///c:/inetpub/wwwroot/ImageMaker/bin/System/System.DLL.
> LOG: Attempting download of new URL
> file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
> Files/imagemaker/cb080e7b/cad84567/System.EXE.
> LOG: Attempting download of new URL
> file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
> Files/imagemaker/cb080e7b/cad84567/System/System.EXE.
> LOG: Attempting download of new URL
> file:///c:/inetpub/wwwroot/ImageMaker/bin/System.EXE.
> LOG: Attempting download of new URL
> file:///c:/inetpub/wwwroot/ImageMaker/bin/System/System.EXE.
>
>
> -----------------------
--
> --
> Version Information: Microsoft .NET Framework Version:1.1.4322.573;
ASP.NET
> Version:1.1.4322.573
Thank you, this did the trick.

James.

"Jerry III" <jerryiii@.hotmail.com> wrote in message
news:%23a1ryncbDHA.1552@.TK2MSFTNGP11.phx.gbl...
> I had the same issue. Fixed it by using fully qualified name for type,
like
> this:
> <section name="..."
type="System.Configuration.NameValueFileSectionHandler,
> System, Version=1.0.5000.0, Culture=neutral,
> PublicKeyToken=b77a5c561934e089" />
> You can copy a working type from machine.config (the one above is from 1.1
> framework, I would think 1.0 has a different version and/or public key
> token).
> Jerry
> "James Coe" <starascendant@.hotmail.com> wrote in message
> news:%23BceU3QbDHA.388@.TK2MSFTNGP10.phx.gbl...
> > ARGH! Any ideas why this might be happening? The code I'm using comes
> > straight from the example in the VB.NET Help System. All I did was tweak
> the
> > name= stuff to match my application.
> > Server Error in '/ImageMaker' Application.
> -----------------------
> --
> > --
> > 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: Exception creating section handler.
> > Source Error:
> > Line 3: <configSections>
> > Line 4: <sectionGroup name="imagemaker">
> > Line 5: <section name="settings"
> > type="System.Configuration.NameValueSectionHandler,Syste m" />
> > Line 6: </sectionGroup>
> > Line 7: </configSections>
> > Source File: c:\inetpub\wwwroot\ImageMaker\web.config Line: 5
> > 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
> > (Partial)
> > LOG: Appbase = file:///c:/inetpub/wwwroot/ImageMaker
> > LOG: Initial PrivatePath = bin
> > Calling assembly : (Unknown).
> > ===
> > LOG: Policy not being applied to reference at this time (private,
custom,
> > partial, or location-based assembly bind).
> > LOG: Post-policy reference: System
> > LOG: Attempting download of new URL
> > file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
> > Files/imagemaker/cb080e7b/cad84567/System.DLL.
> > LOG: Attempting download of new URL
> > file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
> > Files/imagemaker/cb080e7b/cad84567/System/System.DLL.
> > LOG: Attempting download of new URL
> > file:///c:/inetpub/wwwroot/ImageMaker/bin/System.DLL.
> > LOG: Attempting download of new URL
> > file:///c:/inetpub/wwwroot/ImageMaker/bin/System/System.DLL.
> > LOG: Attempting download of new URL
> > file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
> > Files/imagemaker/cb080e7b/cad84567/System.EXE.
> > LOG: Attempting download of new URL
> > file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
> > Files/imagemaker/cb080e7b/cad84567/System/System.EXE.
> > LOG: Attempting download of new URL
> > file:///c:/inetpub/wwwroot/ImageMaker/bin/System.EXE.
> > LOG: Attempting download of new URL
> > file:///c:/inetpub/wwwroot/ImageMaker/bin/System/System.EXE.
> -----------------------
> --
> > --
> > Version Information: Microsoft .NET Framework Version:1.1.4322.573;
> ASP.NET
> > Version:1.1.4322.573

Web.config file

Hello,
The file structure on the server is:

/FileUpload
- Web.config
- upload.aspx

I try to run the upload.aspx but it gives me a runtime error message like
this:
------
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 file is like this:
---
<configuration
<system.web>
<customErrors mode="Off"/>
</system.web
</configuration>
----

The same file works on my local server. What can be the reason?Have you modified the web.config file, with the tag: <customErrors
mode="Off"/
For security purposes, ASP.NET will only show errors when you view the site
on the local machine. In your case, as you are viewing the files from a
server, you need to turn off the custom errors, so that you can see the
error message, which will help you to debug the problem.

Hope this helps,

Mun

"Murat Dikici" <murat@.websty.net> wrote in message
news:OkS0aoTpDHA.2000@.TK2MSFTNGP10.phx.gbl...
> Hello,
> The file structure on the server is:
> /FileUpload
> - Web.config
> - upload.aspx
> I try to run the upload.aspx but it gives me a runtime error message like
> this:
> ------
> 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 file is like this:
> ---
> <configuration>
> <system.web>
> <customErrors mode="Off"/>
> </system.web>
> </configuration>
> ----
> The same file works on my local server. What can be the reason?

Web.config file

Hi,
I have an application that I want to setup for each folder a web.config file
with different authentication, but when I try to do that it gives me an
error saying that maybe that folder is not configured in IIS as virtual
directory.
In the root I don't want to have redirect to login page if i try to access
any file in the root.
If I want to access to any FOLDER present in application root I want to
redirect to the Login page with authentication Forms type.
I already try to put one we.config file in each folder but the error
described above occurs.
--
Programming ASP.NET with VB.NET
Thank's (if you try to help me)
Hope this help you (if I try to help you)
rucanormally there is only 1 web.config (root level)
in there you can have
<authentication mode="Forms">
<forms loginUrl="Secure/Login.aspx" />
</authentication>
i know it is possible to have this securing different folders in different
ways (probably w the authorization) but i do it myself, as my user and
security system is a part of my application. When you log in your user is
stored in the session and dependant on the rights, and location info
associated w that user you get or don't get sertain stuff.
in other words i only use the web.config to make sure a user logs in
(instaid of going to a url direct)
hope it helps
eric
"ruca" <ruuca@.iol.pt> wrote in message
news:eehJXL4KEHA.2456@.TK2MSFTNGP12.phx.gbl...
> Hi,
> I have an application that I want to setup for each folder a web.config
file
> with different authentication, but when I try to do that it gives me an
> error saying that maybe that folder is not configured in IIS as virtual
> directory.
> In the root I don't want to have redirect to login page if i try to access
> any file in the root.
> If I want to access to any FOLDER present in application root I want to
> redirect to the Login page with authentication Forms type.
> I already try to put one we.config file in each folder but the error
> described above occurs.
> --
> Programming ASP.NET with VB.NET
> Thank's (if you try to help me)
> Hope this help you (if I try to help you)
> ruca
>
You can use a <location> element to set up different authentication for each
folder.
"ruca" <ruuca@.iol.pt> wrote in message
news:eehJXL4KEHA.2456@.TK2MSFTNGP12.phx.gbl...
> Hi,
> I have an application that I want to setup for each folder a web.config
file
> with different authentication, but when I try to do that it gives me an
> error saying that maybe that folder is not configured in IIS as virtual
> directory.
> In the root I don't want to have redirect to login page if i try to access
> any file in the root.
> If I want to access to any FOLDER present in application root I want to
> redirect to the Login page with authentication Forms type.
> I already try to put one we.config file in each folder but the error
> described above occurs.
> --
> Programming ASP.NET with VB.NET
> Thank's (if you try to help me)
> Hope this help you (if I try to help you)
> ruca
>
Still hapens the same error when I have this:
<location path="pss">
<system.web>
<customErrors mode="Off" />
<authentication mode="Forms">
<forms name="LoginPss" loginUrl="qsqLogin.aspx" />
</authentication>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
Programming ASP.NET with VB.NET
Thank's (if you try to help me)
Hope this help you (if I try to help you)
ruca
"Rick Spiewak" <rickspiewak@.mindspring.com> escreveu na mensagem
news:ONkI8E5KEHA.624@.TK2MSFTNGP11.phx.gbl...
> You can use a <location> element to set up different authentication for
each
> folder.
> "ruca" <ruuca@.iol.pt> wrote in message
> news:eehJXL4KEHA.2456@.TK2MSFTNGP12.phx.gbl...
> file
access
>
Sorry but are child web.config files removed ?
Patrice
"ruca" <ruuca@.iol.pt> a crit dans le message de
news:uGbMGk5KEHA.3628@.TK2MSFTNGP12.phx.gbl...
> Still hapens the same error when I have this:
> <location path="pss">
> <system.web>
> <customErrors mode="Off" />
> <authentication mode="Forms">
> <forms name="LoginPss" loginUrl="qsqLogin.aspx" />
> </authentication>
> <authorization>
> <deny users="?" />
> </authorization>
> </system.web>
> </location>
>
> --
> Programming ASP.NET with VB.NET
> Thank's (if you try to help me)
> Hope this help you (if I try to help you)
> ruca
> "Rick Spiewak" <rickspiewak@.mindspring.com> escreveu na mensagem
> news:ONkI8E5KEHA.624@.TK2MSFTNGP11.phx.gbl...
> each
web.config
an
virtual
> access
to
>
What child files? I only have this one Web.config file.
Programming ASP.NET with VB.NET
Thank's (if you try to help me)
Hope this help you (if I try to help you)
ruca
"Patrice" <nobody@.nowhere.com> escreveu na mensagem
news:%23Zr$So5KEHA.268@.TK2MSFTNGP10.phx.gbl...
> Sorry but are child web.config files removed ?
> Patrice
> "ruca" <ruuca@.iol.pt> a crit dans le message de
> news:uGbMGk5KEHA.3628@.TK2MSFTNGP12.phx.gbl...
for
> web.config
> an
> virtual
> to
>

Web.Config File - logging custom events in SQL Server.

I am trying to log events to SQL Server instead of the computers event
log, but, although I get no errors, I have no luck. The
webevents_events table is empty. I have a custom event that I am
raising (passwordchange), and can see it beign raised
successfully...just it seems to go nowhere. I have run aspnet_regsql
to setup the database to handle event recording. I am fairly sure I am
missing something in my web.config file. (I would like ALL
login/password related events to be logged in SQL server if possible).
Can anyone tell me what why my sight is not recording any activity in
SQL? (SOME non-custom events are being stored in my event logs...not
SQL Server)
Thanks,
Ryan
<--web.config file-->
<?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">
<connectionStrings>
<add name="ConnOne" connectionString="Data Source=myserver;Integrated
Security=True;Initial Catalog=aspnetdb"/>
<add name="ConnTwo" connectionString="Data Source=myserver;Initial
Catalog=SRUTPL;Integrated Security=True"
providerName="System.Data.SqlClient"/>
</connectionStrings>
<appSettings/>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
Visual Basic options:
Set strict="true" to disallow all data type conversions
where data loss can occur.
Set explicit="true" to force declaration of all variables.
-->
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authorization>
<allow roles="Administrator"/>
</authorization>
<compilation debug="true" strict="false" explicit="true"/>
<pages>
<namespaces>
<clear/>
<add namespace="System"/>
<add namespace="System.Collections"/>
<add namespace="System.Collections.Specialized"/>
<add namespace="System.Configuration"/>
<add namespace="System.Text"/>
<add namespace="System.Text.RegularExpressions"/>
<add namespace="System.Web"/>
<add namespace="System.Web.Caching"/>
<add namespace="System.Web.SessionState"/>
<add namespace="System.Web.Security"/>
<add namespace="System.Web.Profile"/>
<add namespace="System.Web.UI"/>
<add namespace="System.Web.UI.WebControls"/>
<add namespace="System.Web.UI.WebControls.WebParts"/>
<add namespace="System.Web.UI.HtmlControls"/>
<add namespace="CustomWebEvents"/>
</namespaces>
</pages>
<authentication mode="Forms"/>
<membership defaultProvider="MyMembershipProvider">
<providers>
<add name="MyMembershipProvider"
type="System.Web.Security.SQLMembershipProvider"
connectionStringName="ConnOne"/>
</providers>
</membership>
<roleManager enabled="true" defaultProvider="MyRoleProvider">
<providers>
<add connectionStringName="ConnOne" name="MyRoleProvider"
type="System.Web.Security.SQLRoleProvider"/>
</providers>
</roleManager>
<!--
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="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
<healthMonitoring>
<bufferModes>
<add name="Extra Critical Notification"
maxBufferSize="10"
maxFlushSize="5"
urgentFlushThreshold="1"
regularFlushInterval="Infinite"
urgentFlushInterval="00:01:00"
maxBufferThreads="1"/>
</bufferModes>
<providers>
<add connectionStringName="eventConn" name="MyWebEventProvider"
maxEventDetailsLength="1073741823" buffer="true" bufferMode="Extra
Critical Notification"
type="System.Web.Management.SqlWebEventProvider"/>
</providers>
<rules>
<add name="Password Change Event" eventName="Password Change
Event" provider="MyWebEventProvider" minInterval="00:00:01"/>
</rules>
<eventMappings>
<add name="Password Change Event"
type="CustomWebEvents.CustomWebEvents.PasswordChangedEvent,
CustomWebEvents"/>
</eventMappings>
</healthMonitoring>
</system.web>
</configuration>Sorry for the accidental double double post...

web.config file

Hi all,

Is it possible to programmatically add entries in the web.config file in the AppSettings section? If so, how would I go about doing that?

Cheers,
D.In .NET v1 not with built-in configuration API. You certainly can edit it like an XML file (with XML APIs in System.XML namespace) but editing would cause application restarts whatsoever so app couldn't configure its own settings.

In .NET v2 there is API for managing configuration in read/write manner.
Thanks,

I just used the System.Xml classes to accomplish what I needed.

Cheers,
D.

Web.Config File

Is it possible to allow users to enter 2 pages, without pages authorized ! i have a login page setup and the web.config file only allows users to enter the website using this page first but how do i allow a second page, e.g. a registration page ! while still blocking users from entering all other pages until they have logged inThe way I do it is to have my index page, login page, registration page, general public viewable info pages inside the root folder.

All pages that are private for members go inside a "UserAdmin" folder - a subfolder of root. In this folder I put a web.config with...


<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</configuration>

This will deny anyone who hasn't logged in.

In login.aspx use


System.Web.Security.FormsAuthentication.SetAuthCookie(strTextUsername, False)
strReturnPath = Request.QueryString("ReturnUrl")
If strReturnPath <> "" Then
Response.Redirect(FormsAuthentication.GetRedirectUrl(strTextUsername, False))
Else
Response.Redirect("UserAdmin/index.aspx")
End If

after you've checked the db to see if they entered valid information. If they tried to access a specific page such as /UserAdmin/uploadPics.aspx it will redirect them to that page after they authenticate(log in) which is nice for when people bookmark pages inside that folder.

Plenty of other ways to do this but so far I've found this to be the easiest for me.

web.config file

Hi,
when i install my web application, is it possible to add a key to web.config file with the value i wanted and then make web.config file to unreachable?

Thank youYou can put this in your web.config and then reference it by:

ConfigurationSettings.AppSettings("myKey")


<appSettings>
<add key="myKey" value="myValue" />
</appSettings>

yes i know it but i wanted to ask if it is possible to do it in runtime

Web.config file

hello,

I am developing a web application using ASP.NET (VB.NET), and I set the db connection string in Web.config file under appSettings category. The application was able to read the db connection string. I don't know what I did the application cannot read the db connection string in Web.config file any more. For instance,

strConn = ConfigurationSettings.AppSettings("dbConnectionString")

strConn is always empty. I tried to create a new web project, set connection string in Web.config file, and read the connection string into a web form. It still didn't work. If you know the problem, please let me know. Thanks

Web.config file:
<?xml version="1.0" encoding="utf-8">
<configuration>
<appSettings>
<add key="dbConnectionString" value = "Data Source=(local); database=db; uid=uid;pwd=pwd;" />
</appSettings
<system.web>
...
</system.web>
</configurationYour top line should be this (notice the extra question mark):

<?xml version="1.0" encoding="utf-8" ?>

web.config file

Hi, I am new to asp.net .. can anyone clearly explain what is a web.config file is used for ? can we have more than 1 web.config files in a Project if so .. can we name them as web1.config, web2.config files ? Orelse r we r expected to have just web.config file and if we want another .config file place it in a directory ? Plz someone tell me !!!Hello, first of all, you should always have a web.config file in your root directory of your web application, if you need any more web.config files for any folder inside your web application, first of all you should make that folder a virtual directory and then put inside it a web.config file. You always use web.config, the same name and web1, web2, NO. ALways the same name and in each virtual directory you can place sucha file with the configuration settings that you want to apply to the specific folder.
The web.config file is nothing but a configuration XML file, where you set or place general configuration for the whole web application to read from. I would recommend that you read this article on msdn which will give you a clear idea about the web.config file.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconaspnetconfiguration.asp

Best of Luck

Web.Config file - SQL Server Connection

Can anyone give me an example of using the Web.Config file to store SQL
Server Connection info? and then how to use it in my ASP.NET application?
Thanks!!!Check out this faq,
http://www.extremeexperts.com/Net/F...tionString.aspx
-Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com
"chuckdfoster" <chuckdfoster@.hotmail.com> wrote in message
news:%23dXH%235s4EHA.4008@.TK2MSFTNGP15.phx.gbl...
> Can anyone give me an example of using the Web.Config file to store SQL
> Server Connection info? and then how to use it in my ASP.NET application?
> Thanks!!!
>
Thank you. This was a great help!!!
"Saravana" <saravank@.sct.co.in> wrote in message
news:%23qdRn%23s4EHA.824@.TK2MSFTNGP11.phx.gbl...
> Check out this faq,
> http://www.extremeexperts.com/Net/F...tionString.aspx
> -Saravana
> http://dotnetjunkies.com/WebLog/saravana/
> www.ExtremeExperts.com
>
> "chuckdfoster" <chuckdfoster@.hotmail.com> wrote in message
> news:%23dXH%235s4EHA.4008@.TK2MSFTNGP15.phx.gbl...
application?
>

Web.Config file - SQL Server Connection

Can anyone give me an example of using the Web.Config file to store SQL
Server Connection info? and then how to use it in my ASP.NET application?
Thanks!!!Check out this faq,
http://www.extremeexperts.com/Net/F...tionString.aspx

-Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com

"chuckdfoster" <chuckdfoster@.hotmail.com> wrote in message
news:%23dXH%235s4EHA.4008@.TK2MSFTNGP15.phx.gbl...
> Can anyone give me an example of using the Web.Config file to store SQL
> Server Connection info? and then how to use it in my ASP.NET application?
> Thanks!!!
Thank you. This was a great help!!!

"Saravana" <saravank@.sct.co.in> wrote in message
news:%23qdRn%23s4EHA.824@.TK2MSFTNGP11.phx.gbl...
> Check out this faq,
> http://www.extremeexperts.com/Net/F...tionString.aspx
> -Saravana
> http://dotnetjunkies.com/WebLog/saravana/
> www.ExtremeExperts.com
>
> "chuckdfoster" <chuckdfoster@.hotmail.com> wrote in message
> news:%23dXH%235s4EHA.4008@.TK2MSFTNGP15.phx.gbl...
> > Can anyone give me an example of using the Web.Config file to store SQL
> > Server Connection info? and then how to use it in my ASP.NET
application?
> > Thanks!!!

Web.Config File - logging custom events in SQL Server.

I am trying to log events to SQL Server instead of the computers event
log, but, although I get no errors, I have no luck. The
webevents_events table is empty. I have a custom event that I am
raising (passwordchange), and can see it beign raised
successfully...just it seems to go nowhere. I have run aspnet_regsql
to setup the database to handle event recording. I am fairly sure I am
missing something in my web.config file. (I would like ALL
login/password related events to be logged in SQL server if possible).
Can anyone tell me what why my sight is not recording any activity in
SQL? (SOME non-custom events are being stored in my event logs...not
SQL Server)

Thanks,
Ryan

<--web.config file-->

<?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">
<connectionStrings>
<add name="ConnOne" connectionString="Data Source=myserver;Integrated
Security=True;Initial Catalog=aspnetdb"/>
<add name="ConnTwo" connectionString="Data Source=myserver;Initial
Catalog=SRUTPL;Integrated Security=True"
providerName="System.Data.SqlClient"/>
</connectionStrings>
<appSettings/>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.

Visual Basic options:
Set strict="true" to disallow all data type conversions
where data loss can occur.
Set explicit="true" to force declaration of all variables.
-->
<!--
The <authenticationsection enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authorization>
<allow roles="Administrator"/>
</authorization>
<compilation debug="true" strict="false" explicit="true"/>
<pages>
<namespaces>
<clear/>
<add namespace="System"/>
<add namespace="System.Collections"/>
<add namespace="System.Collections.Specialized"/>
<add namespace="System.Configuration"/>
<add namespace="System.Text"/>
<add namespace="System.Text.RegularExpressions"/>
<add namespace="System.Web"/>
<add namespace="System.Web.Caching"/>
<add namespace="System.Web.SessionState"/>
<add namespace="System.Web.Security"/>
<add namespace="System.Web.Profile"/>
<add namespace="System.Web.UI"/>
<add namespace="System.Web.UI.WebControls"/>
<add namespace="System.Web.UI.WebControls.WebParts"/>
<add namespace="System.Web.UI.HtmlControls"/>
<add namespace="CustomWebEvents"/>
</namespaces>
</pages>

<authentication mode="Forms"/>
<membership defaultProvider="MyMembershipProvider">
<providers>
<add name="MyMembershipProvider"
type="System.Web.Security.SQLMembershipProvider"
connectionStringName="ConnOne"/>
</providers>
</membership>
<roleManager enabled="true" defaultProvider="MyRoleProvider">
<providers>
<add connectionStringName="ConnOne" name="MyRoleProvider"
type="System.Web.Security.SQLRoleProvider"/>
</providers>
</roleManager>
<!--
The <customErrorssection 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="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
<healthMonitoring>
<bufferModes>
<add name="Extra Critical Notification"
maxBufferSize="10"
maxFlushSize="5"
urgentFlushThreshold="1"
regularFlushInterval="Infinite"
urgentFlushInterval="00:01:00"
maxBufferThreads="1"/>
</bufferModes>
<providers>
<add connectionStringName="eventConn" name="MyWebEventProvider"
maxEventDetailsLength="1073741823" buffer="true" bufferMode="Extra
Critical Notification"
type="System.Web.Management.SqlWebEventProvider"/>
</providers>
<rules>
<add name="Password Change Event" eventName="Password Change
Event" provider="MyWebEventProvider" minInterval="00:00:01"/>
</rules>
<eventMappings>
<add name="Password Change Event"
type="CustomWebEvents.CustomWebEvents.PasswordChangedEve nt,
CustomWebEvents"/>
</eventMappings>
</healthMonitoring>
</system.web>
</configuration>Sorry for the accidental double double post...

Web.config File Problem

Hello
I want to implement the forms based authentication. for a sub directory in my webapplication.
I have allready applied Forms based authentication in my webapplication ,,
I have added a folder in my webapplication for the admin side of the webside and want to implement forms based authentication. so that admin users can be checked for security. i added a web.config file. but when i add the code below

<authorization
<deny users="?" /
</authorization
<authentication mode="Forms"
<forms name=".ASPXAUTH" protection="All" timeout="60" loginUrl="login_form.aspx" /
</authentication
It Gives me error in the webconfig file .

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

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: 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 5: <deny users="?" />
Line 6: </authorization>
Line 7: <authentication mode="Forms">
Line 8: <forms name=".ASPXAUTH" protection="All" timeout="60" loginUrl="login.aspx" />
Line 9: </authentication>

Source File: c:\inetpub\wwwroot\GPM\User_Module\web.config Line: 7

------------------------

Version Information: Microsoft NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573

/************************************************** ****************

how can i correct it

Thanks

Software Developer
Chemmed Corporation USA
asif@dotnet.itags.org.chemmed.comhas the virtual directory been configured as an application in IIS?

Av.
"Malik Asif Joyia" <anjoyia@.hotmail.com> wrote in message news:u100a$1MEHA.2388@.TK2MSFTNGP09.phx.gbl...
Hello
I want to implement the forms based authentication. for a sub directory in my webapplication.
I have allready applied Forms based authentication in my webapplication ,,
I have added a folder in my webapplication for the admin side of the webside and want to implement forms based authentication. so that admin users can be checked for security. i added a web.config file. but when i add the code below

<authorization
<deny users="?" /
</authorization
<authentication mode="Forms"
<forms name=".ASPXAUTH" protection="All" timeout="60" loginUrl="login_form.aspx" /
</authentication
It Gives me error in the webconfig file .

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

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: 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 5: <deny users="?" />
Line 6: </authorization>
Line 7: <authentication mode="Forms">
Line 8: <forms name=".ASPXAUTH" protection="All" timeout="60" loginUrl="login.aspx" />
Line 9: </authentication>

Source File: c:\inetpub\wwwroot\GPM\User_Module\web.config Line: 7

------------------------

Version Information: Microsoft NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573

/************************************************** ****************

how can i correct it

Thanks

Software Developer
Chemmed Corporation USA
asif@.chemmed.com

Web.Config file path question "<appSettings file=..."

Hi, I have a web site that I am creating locally on my workstation's "C"
drive. I have a reference in my web.config to a resource file (it contains
global keys) using "\" as the root. Everything works fine. When I move it to
a test server the mapping to the file no longer works unless I include the
drive letter "D". I don't have to reference the drive letter on my
workstation why would I have to do it on test? I thought "\" meant: "The root
of the current drive".
This is the tag...

<appSettings file="\Resources\Company.Config"
Thanks for your thoughts!Check and make sure you are at root on the server. Websites have a lot of
flexibility and it is possible your site is a) a root on the local box and b)
a subweb on the server. If so, it is looking to root to attempt to find path
and root is at least one directory up from where you are expecting it to be.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************

"Shark Bait" wrote:

> Hi, I have a web site that I am creating locally on my workstation's "C"
> drive. I have a reference in my web.config to a resource file (it contains
> global keys) using "\" as the root. Everything works fine. When I move it to
> a test server the mapping to the file no longer works unless I include the
> drive letter "D". I don't have to reference the drive letter on my
> workstation why would I have to do it on test? I thought "\" meant: "The root
> of the current drive".
> This is the tag...
> <appSettings file="\Resources\Company.Config">
> Thanks for your thoughts!