Links feature crashing site

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

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.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
3/17/2008 2:23:28 AM
Gravatar
Total Posts 48

Links feature crashing site

Hi there,

Just uploaded my first mojo site and everything was working great until I tried to add a "Links" feature. Once added, I receive the following error when trying to view the page that has the "Links" feature on it:

Server Error in '/' 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: Could not load type 'SubSonic.SQLiteDataProvider' from assembly 'SubSonic'.

Source Error:

Line 873: />
Line 874:
Line 875: <add name="subsonicSQLite" type="SubSonic.SQLiteDataProvider, SubSonic"
Line 876: connectionStringName="Subsonic-SQLite"
Line 877: generatedNamespace="mojoPortal.Data.Common"


Source File: D:\Domains\awebsite.com\wwwroot\web.config Line: 875

Any help fixing this would be appreciated,

Thanks, Reiss

3/17/2008 7:47:35 AM
Gravatar
Total Posts 18439

Re: Links feature crashing site

Ok, so you are working with a custom build from svn not from the official release files. I know this because SubSonic stuff wasn't in the last release.

I'm pretty sure you can solve this by commenting out the provider shown in your post from Web.config. In fact if you are using MS SQL, you can comment out all the other providers except the one for MS SQL.

Also there is a setting in the appSettings section of Web.config

<!--
Set this to your corresponding db platform
subsonicMSSQL
subsonicMySql
subsonicSQLite
subsonicPostgreSql
subsonicFirebirdSql
-->
<add key="SubSonicProvider" value="subsonicMSSQL" />

make sure this is set to the db you are using. Like if you are using MS SQL and somehow this is set to SQLite it could also cause the error.

Hope it helps,

Joe

3/17/2008 1:50:49 PM
Gravatar
Total Posts 48

Re: Links feature crashing site

Hi Joe,

Yeah, i'm working from the svn files. I've Commented out everything like you said but it's now showing the following error... This is only happening with the "Links" feature and it's when you click the "update" button to physically add the link. This is being run on a windows shared hosting environment with medium trust:

Server Error in '/' Application.
Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Source Error:

[No relevant source lines]


Source File: c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c7de5d08\a0cd0e6a\App_Web_fpjph2u3.13.cs Line: 0

Stack Trace:

[SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
SubSonic.Utilities.Utility.WriteTrace(String message) +0
SubSonic.RecordBase`1.ValidateColumnSettings() +96
SubSonic.ActiveRecord`1.Validate() +10
SubSonic.ActiveRecord`1.Save(String userName) +64
SubSonic.ActiveRecord`1.Save() +11
mojoPortal.Data.Common.DBLinks.AddLink(Guid itemGuid, Guid moduleGuid, Int32 moduleId, String title, String url, Int32 viewOrder, String description, DateTime createdDate, Int32 createdBy, String target, Guid userGuid) +588
mojoPortal.Data.DBLinks.AddLink(Guid itemGuid, Guid moduleGuid, Int32 moduleId, String title, String url, Int32 viewOrder, String description, DateTime createdDate, Int32 createdBy, String target, Guid userGuid) +116
mojoPortal.Business.Link.Create() +141
mojoPortal.Business.Link.Save() +18
mojoPortal.Web.LinksUI.EditLinks.UpdateBtn_Click(Object sender, EventArgs e) +574
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +7350
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +213
System.Web.UI.Page.ProcessRequest() +86
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +18
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.linksedit_aspx.ProcessRequest(HttpContext context) in c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c7de5d08\a0cd0e6a\App_Web_fpjph2u3.13.cs:0
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +358
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64


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


3/17/2008 2:09:51 PM
Gravatar
Total Posts 18439

Re: Links feature crashing site

Hi,

Well it sounds like I need to look into this as I have not yet tested SubSonic much if at all in medium trust. You may be able to get past it, its possible that the problem is not the SubSonic.dll but some of its dependencies. Try deleting the following files from the bin folder:

Mono.Data.Sqlite.dll
Mono.Security.dll
MySql.Data.dll
Npgsql.dll
FirebirdSql.Data.FirebirdClient.dll

If that doesn't work, in the latest svn trunk code I have reverted the MS SQL version of the links so it doesn't use SubSonic, so if you do svn update then rebuild you can probably get past this issue that way too.

Let me know if that works.

Hope it helps,

Joe

3/17/2008 2:26:57 PM
Gravatar
Total Posts 48

Re: Links feature crashing site

Hi Joe,

"MySql.Data.dll" was the only file from the ones you listed that was in the bin directory. I deleted the file and tried it again but i just received the same error.

I'll grab the latest svn files and give that a go like you suggested, hopefully it'll sort the problem out. I'll let you know how i get on.

Thanks again for the help,

Reiss

3/17/2008 5:12:51 PM
Gravatar
Total Posts 20

Re: Links feature crashing site

I just got a "Can't find the SubSonicService in your application's config" message when I added a Links module to a page. It happened at the end of the day, so I haven't taken a closer look to see if it's something I messed up in the web.config. I'll look at it in the morning, but I thought I'd go ahead and post here.

3/17/2008 9:35:51 PM
Gravatar
Total Posts 48

Re: Links feature crashing site

Hi Joe,

I used the latest svn files and it has fixed the problems, the links feature is working again.

Thanks for the help

3/18/2008 8:54:00 AM
Gravatar
Total Posts 20

Re: Links feature crashing site

Same here.

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