Alvin Stefanus
Alvin Stefanus

Reputation: 2153

Web Config Error Causing 500 Internal Server Error

I have this inside my Web.config:

<system.net>
    <mailSettings> 
        <smtp deliveryMethod="Network" from="admin@xxxxxx.com"> 
            <network defaultCredentials="false" host="mail.xxxxxx.com" password="xxxxxxx" port="25" userName="admin@xxxxxx.com" enableSsl="false" /> 
        </smtp> 
    </mailSettings> 
</system.net>

This causes any request to my website becomes

500 Internal Server Error

This makes the hosting server assumes that my Web.config is not valid. Before it was fine, my Web site can run with no problem. I cannot see any syntax error in it?

What is going on here?

Upvotes: 0

Views: 1240

Answers (1)

Geoff Cox
Geoff Cox

Reputation: 6152

Posting from comment thread as answer: You likely have a special character in your password that may require XML encoding.

Upvotes: 1

Related Questions