I just refreshed from SVN but..

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.
6/26/2006 10:50:55 AM
Gravatar
Total Posts 4

I just refreshed from SVN but..

Hi all,

I just refreshed from SVN and everything compiled ok and i created my new data base and set the connection string values in web.config but when trying to access http://localhost/mojoportal i get the next error:

Server Error in '/mojoportal' 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: An error occurred while parsing EntityName. Line 583, position 97.

Source Error:

[No relevant source lines]

Source File: E:\Desarrollo\PuntoNet\Mono\Projects\mojoportal\Web\web.config    Line: 583


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


Then problem here is that the web.config does not have line 583

Thank you in advance for your help

Carlos Kassab

6/26/2006 11:47:49 AM
Gravatar
Total Posts 148

Re: I just refreshed from SVN but..

Sounds like it could be related to NeatHtml.  To check, temporarily change:

                <add key="UseNeatHtmlForXSSPrevention" value="true" />
 to:

                <add key="UseNeatHtmlForXSSPrevention" value="false" />

in the Web.config.  If that makes the problem go away, it's related to NeatHtml.

What version of mono are you using?  I think there was a bug in an earlier version mono that caused such an error, so you might try upgrading.

--Dean
6/26/2006 1:47:59 PM
Gravatar
Total Posts 18439

Re: I just refreshed from SVN but..

Hey Dean,

His error message indicates 2.0 .NET so I think he is using branches/2.1 on windows.

Still probably worth trying the setting as you indicated.

I've not seen this error myself though.

Joe
6/26/2006 3:07:50 PM
Gravatar
Total Posts 148

Re: I just refreshed from SVN but..

My bad.  I was thrown off by the word Mono in the source file path.  Assuming it is a NeatHtml problem, make sure you have a NeatHtml folder in your app root and make sure it contains everything from the Web\NeatHtml folder in the SVN.

--Dean
6/26/2006 3:11:16 PM
Gravatar
Total Posts 18439

Re: I just refreshed from SVN but..

Carlos,

Another thought occurred to me. Although the web.config does not have 583 lines in it, the culture file can be considered part of the web.config. Did you change anything in the culture file? Try using a different culture file and see if it makes a difference.

Joe
6/26/2006 3:25:39 PM
Gravatar
Total Posts 148

Re: I just refreshed from SVN but..

Wow.  I'm really not on my game today...  NeatHtml is definitely not the problem here.  I somehow missed that the error occurred "during the processing of a configuration file" and web.config is mentioned as the source file.  Please ignore all my earlier comments in this thread.  Joe, feel free to delete them.

Sorry for the confusion...

--Dean
6/27/2006 8:33:24 AM
Gravatar
Total Posts 4

Re: I just refreshed from SVN but..

Hi all,


Joe is rigth, i am using .net 2, it seems the problem was with the culture file, i am adding some transalations missing on it, now i am using cultureUSA to test first all is working, but now when i try to get the http://localhost/mojoportal/ i get the next error:

Server Error in '/mojoportal' Application.

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

Line 1288:            SiteSettings siteSettings = SiteSettings.GetCurrent();
Line 1289:
Line 1290: string currentStyle = siteSettings.Skin.Replace(".ascx", "") + "/style.css";
Line 1291:
Line 1292: if(siteSettings.AllowUserSkins)

Source File: e:\Desarrollo\PuntoNet\Mono\Projects\mojoportal\Web\Components\SiteUtils.cs    Line: 1290

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
mojoPortal.Web.SiteUtils.GetStyleSheetUrl() in e:\Desarrollo\PuntoNet\Mono\Projects\mojoportal\Web\Components\SiteUtils.cs:1290
mojoPortal.Web.StyleSheet.get_StyleLink() in e:\Desarrollo\PuntoNet\Mono\Projects\mojoportal\Web\Controls\StyleSheet.ascx.cs:73
mojoPortal.Web.StyleSheet.Page_Load(Object sender, EventArgs e) in e:\Desarrollo\PuntoNet\Mono\Projects\mojoportal\Web\Controls\StyleSheet.ascx.cs:49
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061


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

Thank you for your help friends.

Carlos Kassab
6/27/2006 5:31:30 PM
Gravatar
Total Posts 18439

Re: I just refreshed from SVN but..

Hi Carlos,

I'm not sure why you are getting that error. Maybe the siteSettings object is null for some reason. You could set a break point at line 1290 and stop the code at that point and check if siteSettings is null.

If it is null then set a breakpoint in Global.asax.cs line 79 and start again, then use F11 to step into where it creates siteSettings and see what if anything goes wrong.

siteSettings is created in Application_BeginRequest and then is stored in the HttpContext so it can be used anywhere in code for the rest of the request, so SiteSettings.GetCurrent is just getting a reference out of the HttpContxt but it will return null if siteSetting is not in HttpContext

Anyway those are the steps I would take to troubleshoot the problem if it were happening on my machine.

Hope it helps,

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