invalid character in the given encoding web.config

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
1/7/2013 6:31:27 AM
Gravatar
Total Posts 32

invalid character in the given encoding web.config

Hi,

I updated my code to the  latest version via TortoiseHG. Within Visual studio , when I run the app (F5). I get the following error.

"invalid character in the given encoding web.config" highlighting the following line in the web.config.


Line 78: <add key="UseSSLForLDAP" value="false" />
 

Any suggestions?

Thanks in advance

Lynton

1/7/2013 7:30:11 AM
Gravatar
Total Posts 18439

Re: invalid character in the given encoding web.config

Hi,

Somehow some of the web.config files were using ansi encoding instead of utf8. I've just corrected that and pushed the updated files to the repository.

Hope that helps,

Joe

1/7/2013 8:24:06 AM
Gravatar
Total Posts 32

Re: invalid character in the given encoding web.config

Joe, I still have the error.

1/7/2013 8:36:37 AM
Gravatar
Total Posts 18439

Re: invalid character in the given encoding web.config

A mistake or typo in user.config can also cause this kind of error. You can't really rely on the line numbers reported in the error because of the way <appSettings from user.config are combined with web.config, the runtime sees it all as one file so it can report incorrect line numbers. Also make sure your user.config is using utf8 encoding, I fixed the user.config.sample file which also had ansi encoding.

1/7/2013 1:25:03 PM
Gravatar
Total Posts 32

Re: invalid character in the given encoding web.config

Thanks Joe, the problem was with my user.config

You must sign in to post in the forums. This thread is closed to new posts.