Error when when using any other kind of content than HTML on a page

mojoPortal is no longer supported on mono. This forum is here for archival purposes.

This thread is closed to new posts. You must sign in to post in the forums.
1/16/2009 4:39:32 PM
Gravatar
Total Posts 44

Re: Error when when using any other kind of content than HTML on a page

thats part of your default settings, which i should not touch in web.config:

 

<!-- ******* Database Settings *********************************** -->^
<!-- Note that each db platform has its own connection string, but the database used depends on which data dlls are in the bin folder^
it is not determined by configuration settings.^
-->^
^
<!-- MS SQL Database Settings *************************************** -->^
<add key="MSSQLConnectionString" value="server=yourservername;UID=yourdatabaseusername;PWD=yourdatabaseuserpassword;database=yourdatabasename" />^
<!-- ^
For using MS SQL set this to true for best performance but if running the web on mono you may need to set this to false. -->^
<add key="CacheMSSQLParameters" value="true" />^
<!-- do not change this unless you understand the workings of the code^
and have a reason to change it. -->^
<add key="MSSQLOwnerPrefix" value="[dbo]." />^
<!-- end MS SQL Database Settings *************************************** -->^
^
<add key="PostgreSQLConnectionString" value="Server=localhost;Port=5432;Encoding=unicode;User Id=mojouser;Password=mojo123;Database=mojoportal;Pooli
<add key="MySqlConnectionString" value="Data Source=localhost;Database=mojoportal;User ID=mojouser;Password=mojo123;Charset=utf8;" />^
<add key="FirebirdConnectionString" value="Data Source=localhost;Server Type=0;Port Number=3050;Database=C:\Users\JoeAudette\devprojects\mojoportal\
<add key="SqliteConnectionString" value="defaultdblocation" />^
<!--^
you can use a fully qualified file path as shown below^
or if you are using the default db at /Data/sqlitedb/mojo.db.config^
just leave this set to "defaultdblocation"^
<add key="SqliteConnectionString" value="version=3,URI=file:C:\\Projects\mojoportal\Web\Data\sqlitedb\mojoportal.db" />^
-->^
<!-- ******* End Database Settings *********************************** -->^
^

 

i am using a complete other username, which definitive works.
 

1/16/2009 4:40:00 PM
Gravatar
Total Posts 44

Re: Error when when using any other kind of content than HTML on a page

it seems, that the mechanism is not detecting the override.

1/16/2009 4:45:26 PM
Gravatar
Total Posts 18439

Re: Error when when using any other kind of content than HTML on a page

It works for me. make sure the web process has read permission on the user.config file.

For mysql the only connection string of concern is:

<add key="MySqlConnectionString" value="Data Source=localhost;Database=mojoportal;User ID=mojouser;Password=mojo123;Charset=utf8;" />

Make sure it exists in user.config and is correct, then touch Web.config.

I would test from the command line first with  MONO_OPTIONS="--debug" xsp2

before trying mod_mono and apache.

Hope it helps,

Joe

1/16/2009 4:47:19 PM
Gravatar
Total Posts 44

Re: Error when when using any other kind of content than HTML on a page

could you give me a more exact explanation of the test from commandline ? Whats the command?

user.config has enough permission, i also wanted to go sure now, and gave temporarily 777 on it.

1/16/2009 4:51:11 PM
Gravatar
Total Posts 18439

Re: Error when when using any other kind of content than HTML on a page

Its exactly as I already said, cd into the root of the Web folder then type

MONO_OPTIONS="--debug" xsp2

hit enter

Then open a browser and visit http://localhost:8080

course I guess if you have no gui you can't open a browser so maybe its not an option for you

Hope it helps,

Joe

1/16/2009 5:31:44 PM
Gravatar
Total Posts 44

Re: Error when when using any other kind of content than HTML on a page

After fighting around with permission problems (apache2 runs as www-data), if i start xsp, its my website's user.

i finally cleared everything and started the setup, which results in the follow threadexception:

(inside the console)

Internal error: OutputPage threw an exception System.Threading.ThreadAbortException: Thread was being aborted

Server stack trace:
at Mono.WebServer.XSPRequestBroker.Close (Int32 requestId, Boolean keepAlive) [0x00020] in /home/installer/xsp-2.0/src/Mono.WebServer/XSPRequestBroker.cs:67
at (wrapper remoting-invoke-with-check) Mono.WebServer.XSPRequestBroker:Close (int,bool)
at (wrapper xdomain-dispatch) Mono.WebServer.XSPRequestBroker:Close (object,byte[]&,byte[]&,int,bool)

Exception rethrown at [0]:

at (wrapper xdomain-invoke) Mono.WebServer.XSPRequestBroker:Close (int,bool)
at (wrapper remoting-invoke-with-check) Mono.WebServer.XSPRequestBroker:Close (int,bool)
at Mono.WebServer.XSPWorkerRequest.CloseConnection () [0x0000b] in /home/installer/xsp-2.0/src/Mono.WebServer/XSPWorkerRequest.cs:319
at System.Web.HttpResponse.Close () [0x00017] in /home/installer/mono-20090112/mcs/class/System.Web/System.Web/HttpResponse.cs:598
at System.Web.HttpApplication.FinalErrorWrite (System.Web.HttpResponse response, System.String error) [0x00014] in /home/installer/mono-20090112/mcs/class/System.Web/System.Web/HttpApplication.cs:1037
at System.Web.HttpApplication.OutputPage () [0x000ed] in /home/installer/mono-20090112/mcs/class/System.Web/System.Web/HttpApplication.cs:1073
at System.Web.HttpApplication.PipelineDone () [0x0003a] in /home/installer/mono-20090112/mcs/class/System.Web/System.Web/HttpApplication.cs:1093
Unhandled exception: System.Threading.ThreadAbortException: Thread was being aborted
at Mono.WebServer.MonoWorkerRequest.ProcessRequest () [0x00053] in /home/installer/xsp-2.0/src/Mono.WebServer/MonoWorkerRequest.cs:646
at Mono.WebServer.BaseApplicationHost.ProcessRequest (Mono.WebServer.MonoWorkerRequest mwr) [0x0002d] in /home/installer/xsp-2.0/src/Mono.WebServer/BaseApplicationHost.cs:150
System.Threading.ThreadAbortException: Thread was being aborted

Server stack trace:
at Mono.WebServer.BaseApplicationHost.ProcessRequest (Mono.WebServer.MonoWorkerRequest mwr) [0x00044] in /home/installer/xsp-2.0/src/Mono.WebServer/BaseApplicationHost.cs:156
at Mono.WebServer.XSPApplicationHost.ProcessRequest (Int32 reqId, Int64 localEPAddr, Int32 localEPPort, Int64 remoteEPAdds, Int32 remoteEPPort, System.String verb, System.String path, System.String queryString, System.String protocol, System.Byte[] inputBuffer, System.String redirect, IntPtr socket, Mono.WebServer.SslInformations ssl) [0x0017a] in /home/installer/xsp-2.0/src/Mono.WebServer/XSPApplicationHost.cs:105
at (wrapper remoting-invoke-with-check) Mono.WebServer.XSPApplicationHost:ProcessRequest (int,long,int,long,int,string,string,string,string,byte[],string,intptr,Mono.WebServer.SslInformations)
at (wrapper xdomain-dispatch) Mono.WebServer.XSPApplicationHost:ProcessRequest (object,byte[]&,byte[]&,int,long,int,long,int,string,string,string,string,byte[],string)

Exception rethrown at [0]:

at (wrapper xdomain-invoke) Mono.WebServer.XSPApplicationHost:ProcessRequest (int,long,int,long,int,string,string,string,string,byte[],string,intptr,Mono.WebServer.SslInformations)
at (wrapper remoting-invoke-with-check) Mono.WebServer.XSPApplicationHost:ProcessRequest (int,long,int,long,int,string,string,string,string,byte[],string,intptr,Mono.WebServer.SslInformations)
at Mono.WebServer.XSPWorker.RunInternal (System.Object state) [0x000e6] in /home/installer/xsp-2.0/src/Mono.WebServer/XSPWorker.cs:182

 

1/16/2009 5:35:24 PM
Gravatar
Total Posts 44

Re: Error when when using any other kind of content than HTML on a page

After a refresh, i get this message:

I verified this, but the permissions are set for the user global and db. everything except the administration-stuff.

strange...

mojoPortal Content Management System Welcome to mojoPortal Setup
Probing system...
File system permissions ok.
MySQL database connection ok.
mojoSetup has detected that the database user does not have permission to alter the database schema. You need to correct this or provide a connection string with sufficient permission.

database initial schema needs to be created.
Note: This page shows some information that is helpful during setup and upgrades but for security it would be best not to show any information when the system is up to date. You can disable setup and suppress all information on this page by setting DisableSetup=true in Web.config. When you need to upgrade, you can set this back to false. If you are logged in as Administrator setup will run and you will be able to see this page even if it is disabled in Web.config so you can easily leave it disabled and just login before upgrading. But if you are not logged in you will need to enable setup in Web.config.

1/16/2009 5:37:26 PM
Gravatar
Total Posts 44

Re: Error when when using any other kind of content than HTML on a page

And the next error:

Internal error: OutputPage threw an exception System.Threading.ThreadAbortException: Thread was being aborted

Server stack trace:
at Mono.WebServer.XSPRequestBroker.Close (Int32 requestId, Boolean keepAlive) [0x00020] in /home/installer/xsp-2.0/src/Mono.WebServer/XSPRequestBroker.cs:67
at (wrapper remoting-invoke-with-check) Mono.WebServer.XSPRequestBroker:Close (int,bool)
at (wrapper xdomain-dispatch) Mono.WebServer.XSPRequestBroker:Close (object,byte[]&,byte[]&,int,bool)

Exception rethrown at [0]:

at (wrapper xdomain-invoke) Mono.WebServer.XSPRequestBroker:Close (int,bool)
at (wrapper remoting-invoke-with-check) Mono.WebServer.XSPRequestBroker:Close (int,bool)
at Mono.WebServer.XSPWorkerRequest.CloseConnection () [0x0000b] in /home/installer/xsp-2.0/src/Mono.WebServer/XSPWorkerRequest.cs:319
at System.Web.HttpResponse.Close () [0x00017] in /home/installer/mono-20090112/mcs/class/System.Web/System.Web/HttpResponse.cs:598
at System.Web.HttpApplication.FinalErrorWrite (System.Web.HttpResponse response, System.String error) [0x00014] in /home/installer/mono-20090112/mcs/class/System.Web/System.Web/HttpApplication.cs:1037
at System.Web.HttpApplication.OutputPage () [0x000ed] in /home/installer/mono-20090112/mcs/class/System.Web/System.Web/HttpApplication.cs:1073
at System.Web.HttpApplication.PipelineDone () [0x0003a] in /home/installer/mono-20090112/mcs/class/System.Web/System.Web/HttpApplication.cs:1093
 

1/16/2009 5:38:30 PM
Gravatar
Total Posts 44

Re: Error when when using any other kind of content than HTML on a page

After this 2 execptions which forced me to restart the xsp2 server, i finally got this page:

 

Welcome to mojoPortal Setup
Probing system...
File system permissions ok.
MySQL database connection ok.
database permissions are sufficient to alter schema.
database initial schema already exists.
database core schema is up to date.
1 site(s) found.
Configuring feature HTML-Inhalt - 00:00:00.1535660
Configuring feature Seitenstatistik - 00:00:00.3626420
Running script blog - 0.0.0.1 - 00:00:00.4281670
Running script blog - 0.0.0.2 - 00:00:00.4939200
Running script blog - 0.0.0.3 - 00:00:00.5074380
Running script blog - 0.0.0.4 - 00:00:00.6937380
Running script blog - 0.0.0.5 - 00:00:00.6976850
Running script blog - 0.0.0.6 - 00:00:00.7022800
Configuring feature Blog - 00:00:00.7183800
Running script contactform - 0.0.0.1 - 00:00:00.9739870
Running script contactform - 0.0.0.2 - 00:00:01.0172170
Configuring feature Kontaktformular - 00:00:01.0337400
Running script eventcalendar - 0.0.0.1 - 00:00:01.0663910
Running script eventcalendar - 0.0.0.2 - 00:00:01.0802870
Configuring feature Kalender - 00:00:01.1016410
Running script feed-manager - 0.0.0.1 - 00:00:01.1383360
Running script feed-manager - 0.0.0.2 - 00:00:01.2059990
Running script feed-manager - 0.0.0.3 - 00:00:01.2117660
Configuring feature Feed Manager - 00:00:01.2211570
Configuring feature Image Gallery (Simple Folder Version) - 00:00:01.3223980
Running script forums - 0.0.0.1 - 00:00:01.3299320
Running script forums - 0.0.0.2 - 00:00:01.4928670
Configuring feature Foren - 00:00:01.4993280
Configuring feature Google Map - 00:00:01.5514910
Configuring feature Html Fragment include - 00:00:01.6439830
Running script imagegallery - 0.0.0.1 - 00:00:01.6601100
Running script imagegallery - 0.0.0.2 - 00:00:01.6903600
Configuring feature Bildgalerie - 00:00:01.7030810
Running script linksmodule - 0.0.0.1 - 00:00:01.7784350
Running script linksmodule - 0.0.0.2 - 00:00:01.8128560
Configuring feature Link-Tabelle - 00:00:01.8197190
Running script pollfeature-byChristianFredh - 0.0.0.1 - 00:00:01.8405530
Running script pollfeature-byChristianFredh - 0.0.0.2 - 00:00:01.8828760
Running script pollfeature-byChristianFredh - 0.0.0.3 - 00:00:01.8896550
Configuring feature Poll - 00:00:01.9327040
Running script sharedfiles - 0.0.0.1 - 00:00:01.9393140
Running script sharedfiles - 0.0.0.2 - 00:00:02.0134640
Configuring feature Gemeinsam benutzte Dateien - 00:00:02.0246650
Running script surveyfeature - 0.0.1.0 - 00:00:02.0455380
Running script surveyfeature - 0.0.1.1 - 00:00:02.1141550
Running script surveyfeature - 0.0.1.2 - 00:00:02.1219430
Running script surveyfeature - 0.0.1.3 - 00:00:02.1371020
Configuring feature Survey - 00:00:02.1492700
Running script webstore - 0.0.0.1 - 00:00:02.1559320
Running script webstore - 0.0.0.3 - 00:00:03.8401860
Running script webstore - 0.0.0.4 - 00:00:03.8526680
Running script webstore - 0.0.0.5 - 00:00:03.8557390
Running script webstore - 0.0.0.6 - 00:00:03.8744790
Running script webstore - 0.0.0.7 - 00:00:03.8906960
Running script webstore - 0.0.0.8 - 00:00:03.8949530
Running script webstore - 0.0.0.9 - 00:00:03.9015250
Running script webstore - 0.0.1.0 - 00:00:03.9198570
Running script webstore - 0.0.1.1 - 00:00:03.9402200
Running script webstore - 0.0.1.2 - 00:00:04.1842270
Running script webstore - 0.0.1.3 - 00:00:04.4050200
Running script webstore - 0.0.1.4 - 00:00:04.4383340
Running script webstore - 0.0.1.5 - 00:00:04.5115570
Running script webstore - 0.0.1.6 - 00:00:04.5223660
Running script webstore - 0.0.1.7 - 00:00:04.5403740
Running script webstore - 0.0.1.8 - 00:00:04.5472420
Running script webstore - 0.0.1.9 - 00:00:04.5934290
Running script webstore - 0.0.2.0 - 00:00:04.6304000
Running script webstore - 0.0.2.1 - 00:00:04.6456800
Running script webstore - 0.0.2.2 - 00:00:04.6769430
Running script webstore - 0.0.2.3 - 00:00:04.8079300
Running script webstore - 0.0.2.4 - 00:00:04.9115640
Running script webstore - 0.0.2.5 - 00:00:05.0513070
Running script webstore - 0.0.2.6 - 00:00:05.0813990
Running script webstore - 0.0.2.7 - 00:00:05.0895090
Running script webstore - 0.0.2.8 - 00:00:05.1112550
Running script webstore - 0.0.2.9 - 00:00:05.1169780
Running script webstore - 0.0.3.0 - 00:00:05.1479210
Running script webstore - 0.0.3.1 - 00:00:05.2142440
Running script webstore - 0.0.3.2 - 00:00:05.2234290
Running script webstore - 0.0.3.3 - 00:00:05.3285120
Running script webstore - 0.0.3.4 - 00:00:05.3432980
Running script webstore - 0.0.3.5 - 00:00:05.3592220
Configuring feature Web Store - 00:00:05.4107740
Configuring feature Xml/Xsl - 00:00:05.4370730
Ensuring all features are installed in server admin sites... - 00:00:05.4430560
No pages found so creating default content...
Setup is complete, click the link below to go to the home page.
Site Home Page

Database PlatformMySQL
Version2.2.8.2
StatusYour installation is up to date.

Note: This page shows some information that is helpful during setup and upgrades but for security it would be best not to show any information when the system is up to date. You can disable setup and suppress all information on this page by setting DisableSetup=true in Web.config. When you need to upgrade, you can set this back to false. If you are logged in as Administrator setup will run and you will be able to see this page even if it is disabled in Web.config so you can easily leave it disabled and just login before upgrading. But if you are not logged in you will need to enable setup in Web.config.

1/16/2009 5:42:35 PM
Gravatar
Total Posts 44

Re: Error when when using any other kind of content than HTML on a page

I had to set CustomError to off.

to see that error on the main page:

Server Error in '/' Application
Field 'mojoPortal.Web.layout.ScriptManager1' not found.

Description: HTTP 500. Error processing request.

Stack Trace:

System.MissingFieldException: Field 'mojoPortal.Web.layout.ScriptManager1' not found.
at ASP.app_masterpages_layout_master.__BuildControlTree (ASP.app_masterpages_layout_master __ctrl) [0x00000]
at ASP.app_masterpages_layout_master.FrameworkInitialize () [0x00000]
at System.Web.UI.UserControl.InitializeAsUserControlInternal () [0x00019] in /home/installer/mono-20090112/mcs/class/System.Web/System.Web.UI/UserControl.cs:225
at System.Web.UI.MasterPage.CreateMasterPage (System.Web.UI.TemplateControl owner, System.Web.HttpContext context, System.String masterPageFile, IDictionary contentTemplateCollection) [0x000a5] in /home/installer/mono-20090112/mcs/class/System.Web/System.Web.UI/MasterPage.cs:124
at System.Web.UI.Page.get_Master () [0x00028] in /home/installer/mono-20090112/mcs/class/System.Web/System.Web.UI/Page.cs:2622
at mojoPortal.Web.mojoBasePage.SetupMasterPage () [0x00000]
at mojoPortal.Web.mojoBasePage.OnPreInit (System.EventArgs e) [0x00000]
at mojoPortal.Web.UI.Pages.SiteHome.OnPreInit (System.EventArgs e) [0x00000]
at System.Web.UI.Page.InternalProcessRequest () [0x00120] in /home/installer/mono-20090112/mcs/class/System.Web/System.Web.UI/Page.cs:1503
at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x0005b] in /home/installer/mono-20090112/mcs/class/System.Web/System.Web.UI/Page.cs:1347

 

 

This looks like an ajax problem.

 

1/16/2009 5:43:25 PM
Gravatar
Total Posts 18439

Re: Error when when using any other kind of content than HTML on a page

the connection permission error never lies, permissions are per host by default with MySql so I think you need to give permission to 'youruser@localhost' or 'youruser@any'

What version of Mono and what OS are you using again? I've lost track.

The thread abort exception sounds like something I'm seeing in mono built from svn but not the 2.2 release. To get past it try copy the files from /Data/skins to /Data/Sites/1/skins/

The setup page tries to do this but it throws threadabort exceptions using current mono from svn

If the folder /Data/Sites/1/ exists it should skip this on the setup page.

Hope it helps,

Joe

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