Running gallery module from localhost gives error

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.
7/27/2006 4:15:42 AM
Gravatar
Total Posts 19

Running gallery module from localhost gives error

Hi,

The gallery module works well when running it on www.domainname.com

When I tried to run it on my local maskin(http://localhost/..) it gives error, how to fix this?

-Thanks

Thanh

7/27/2006 4:17:36 AM
Gravatar
Total Posts 18439

Re: Running gallery module from localhost gives error

It works fine for me under localhost. Can you give the stack trace of the error?
What version of mojoportal?
7/27/2006 4:22:07 AM
Gravatar
Total Posts 19

Re: Running gallery module from localhost gives error

Hi,

I'm using version 1.0.4 for asp.net 1,1

Joe, I'm trying to modify the gallery module to become a game review database.

I'm setting a mobile game portal at www.mobipea.com.

Is that a good idea to create a game review database based on the gallery module

Thanks

Thanh

--------------------------------------------------------------------

Reference to undeclared attribute group 'http://www.w3.org/1999/xhtml:Common.attrib'. An error occurred at file:///E:/Projects/Mobipea/src/Web/NeatHtml/schema/xhtml-inlphras-1.xsd, (186, 6).

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.Xml.Schema.XmlSchemaException: Reference to undeclared attribute group 'http://www.w3.org/1999/xhtml:Common.attrib'. An error occurred at file:///E:/Projects/Mobipea/src/Web/NeatHtml/schema/xhtml-inlphras-1.xsd, (186, 6).

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:

[XmlSchemaException: Reference to undeclared attribute group 'http://www.w3.org/1999/xhtml:Common.attrib'. An error occurred at file:///E:/Projects/Mobipea/src/Web/NeatHtml/schema/xhtml-inlphras-1.xsd, (186, 6).]
   System.Xml.Schema.Compiler.SendValidationEvent(XmlSchemaException e, XmlSeverityType severity)
   System.Xml.Schema.Compiler.SendValidationEvent(String code, String msg, XmlSchemaObject source)
   System.Xml.Schema.Compiler.CompileAttributeGroup(XmlSchemaAttributeGroup attributeGroup)
   System.Xml.Schema.Compiler.CompileTo(SchemaInfo schemaInfo)
   System.Xml.Schema.Compiler.Compile(XmlSchema schema, String targetNamespace, SchemaInfo schemaInfo)
   System.Xml.Schema.XmlSchema.Compile(XmlSchemaCollection collection, XmlNameTable nameTable, SchemaNames schemaNames, ValidationEventHandler validationEventHandler, String targetNamespace, SchemaInfo schemaInfo, Boolean compileContentModel, XmlResolver resolver)
   System.Xml.Schema.XmlSchema.Compile(ValidationEventHandler validationEventHandler)
   Brettle.Web.NeatHtml.XssFilterInfo..ctor(String schemaLocation)
   Brettle.Web.NeatHtml.XssFilter.GetForSchema(String schemaLocation)
   mojoPortal.Web.SiteUtils.PreventCrossSiteScripting(String htmlString)
   mojoPortal.Web.GalleryControl.Page_Load(Object sender, EventArgs e)
   System.Web.UI.Control.OnLoad(EventArgs e) +67
   System.Web.UI.Control.LoadRecursive() +35
   System.Web.UI.Control.LoadRecursive() +98
   System.Web.UI.Control.LoadRecursive() +98
   System.Web.UI.Control.LoadRecursive() +98
   System.Web.UI.Control.LoadRecursive() +98
   System.Web.UI.Control.LoadRecursive() +98
   System.Web.UI.Page.ProcessRequestMain() +731

            
7/27/2006 4:35:18 AM
Gravatar
Total Posts 148

Re: Running gallery module from localhost gives error

Looks like one or more xsd files are missing from the E:/Projects/Mobipea/src/Web/NeatHtml/schema/ folder. 

FYI, I suspect this problem is not specific to the gallery module but would occur with any module that displays user-provided content (e.g. the forums module).  If you think the above folder is not missing any files, can you test the forums module and let me know whether the problem happens there too?

Thanks,

--Dean



7/27/2006 8:18:37 AM
Gravatar
Total Posts 18439

Re: Running gallery module from localhost gives error

Thanks Dean,

When I saw this error I was hoping you would help.

Thanh,

This error looks releated to NeatHtml which is used to prevent cross site scripting attacks. Dean is the author of NeatHtml so he is the best one to help with this.

You can disable NeatHtml in Web.config with:
<add key="UseNeatHtmlForXSSPrevention" value="false" />

That might make your error go away but better to fix the problem than to disable NeatHtml, so please work with Dean and follow any advice he gives.

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