FORMS NOT SUBMITTING DUE, IIS CRASH: appSettings KEY in web.confi

G

Guest

We have a contact us page that is used throughout our sites. I have over the
last few days modified all sites to obtain information from Application
Settings.

It is a simple form that when ran on the server sends an email using keys in
application settings block of the web.config file.

I have played about with the key and sometimes it works and sometimes does
not. The key seems to be crashing IIS on Windows Server 2003 SP1.

The key reads as follows:

<add key="contactUsFormSmallText" value="All Quotes sre subject to change.
Telephone calls and faxes are only accepted between our published office
working hours. Calls may be recorded for training and security purposes."/>

if I change the key to have no value or just the value test all works fine.

I have loads of other keys that even contain longer values. I have typed the
values and tried to alter the value but still get my problem. When I try and
clcik the submit button on the form with codebehind nothing happens, it does
not seem to even send anything back to the server.

Any ideas?
 
J

Juan T. Llibre

Is the key written out on the same line ?




"Dr. Paul Caesar - CoullByte (UK) Limited"
 
G

Guest

no, all on seperate lines.

The web.config file on the other web sites also having same problem with
similar key values.

using VS2003 Framework 1.1
 
J

Juan T. Llibre

I can display it fine as it is.

<appSettings>
<add key="contactUsFormSmallText" value="All Quotes sre subject to change.
Telephone calls and faxes are only accepted between our published office
working hours. Calls may be recorded for training and security purposes."/>
</appSettings>

And then, in the aspx :

Dim MyKey As String = ConfigurationSettings.AppSettings("contactUsFormSmallText")
key1.Text = MyKey

See it running at : http://asp.net.do/test/testappsettingskey.aspx




"Dr. Paul Caesar - CoullByte (UK) Limited"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top