Configuration Error

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
12/13/2017 3:59:30 PM
Gravatar
Total Posts 47

Configuration Error

Hi everybody!

I have installed the new 2.6.0 MSSQL version of Mojoportal on a local server running on Windows Server 2016 Standard.

Microsoft .Net Framework version 4.7.2 is installed on the server (even if IIS8 shows 4.5 Version.NET CLS v4.0.30319).

MS SQL 2017 Express is installed on the server, and I have adminstrative rights on the machine.

Everything seems fine, but when I run the setup page I get stuck with the following message (I translate the error message):

Parser Error Message:  XML cannot contain char '--' nor end with char '-'. Line 21, pos 5.

Source code Error:
 

Line 19: <namespaces> 

Line 20: <add namespace="System.Web.Mvc" />

Line 21: <add namespace="System.Web.Mvc.Ajax" />

Line 22: <add namespace="System.Web.Mvc.Html" />

Line 23: <add namespace="System.Web.Optimization" />


Original File: Localpath\mywebsite\web.config    Line: 21

Version Info: Microsoft .NET Framework:4.0.30319;  ASP.NET:4.7.2558.0

I cannot find a solution, I am pretty sure I am doing something wrong, and that there is a configuration mistake I made. Do you have any idea to solve?

Thanks in advance

 

Mari

 

 

 

12/13/2017 4:12:01 PM
Gravatar
Total Posts 2239

Re: Configuration Error

Hi,

Take a close look at your web.config file and your user.config file. Chances are you removed the opening of a comment (<!--) but didn't remove the closing of the comment (-->). You could have also put a comment inside a comment which will break things as well.

Try using an xml validator to see if that points you in the right direction. This one should do the trick.

Thanks,
Joe

12/14/2017 5:08:37 AM
Gravatar
Total Posts 47

Re: Configuration Error

Thanks Joe!!!

You are precious! I solved the issue in a snap. I had two nested comments in user.config (my fault!). Now everything works fine! smiley

Mari

 

 

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