Some issues setting up 2.2.8.0

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/15/2008 9:08:56 AM
Gravatar
Total Posts 18

Some issues setting up 2.2.8.0

Hi,

I uploaded 2.2.8.0 (except the ClientAcript and Data folders from 2.2.7.9 as mentioned in your blog) and cleared the database to do a clean installation. However, although the site seems running fine, there are some problems I encountered while setting it up:

(I''m running in medium trust, and mysql, and have followed the steps in the medium trust documentation)


1. Goto /Setup/Default.aspx, error:

Configuring feature Shared Files - 00:00:01.2498960
Configuring feature Survey - 00:00:01.2655197
Running script webstore - 0.0.1.1 - 00:00:01.2811434
MySql.Data.MySqlClient.MySqlException: Can't create table '.\mytest_db\ws_cartoffersalt.frm' (errno: 121) at MySql.Data.MySqlClient.MySqlStream.OpenPacket() at MySql.Data.MySqlClient.NativeDriver.ReadResult(UInt64& affectedRows, Int64& lastInsertId) at MySql.Data.MySqlClient.MySqlDataReader.GetResultSet() at MySql.Data.MySqlClient.MySqlDataReader.NextResult() at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior) at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery() at MySql.Data.MySqlClient.MySqlHelper.ExecuteNonQuery(MySqlConnection connection, String commandText, MySqlParameter[] commandParameters) at mojoPortal.Data.DBPortal.DatabaseHelperRunScript(String script, String overrideConnectionInfo) at mojoPortal.Data.DBPortal.DatabaseHelperRunScript(FileInfo scriptFile, String overrideConnectionInfo) at mojoPortal.Business.DatabaseHelper.RunScript(Guid applicationId, FileInfo scriptFile, String overrideConnectionInfo) - 00:00:01.4686278
Configuring feature Web Store - 00:00:01.4686278
Configuring feature Xml/Xsl - 00:00:01.4842515
Ensuring all features are installed in server admin sites... - 00:00:01.4998752

I don't think is the MySql in medium trust issue, as other tables are working fine. Since I'm not using Webstore at the moment, I just ignore it.


2. Then when goto the home page, firefox gave me this:

Redirect Loop

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
The browser has stopped trying to retrieve the requested item. The site is redirecting the request in a way that will never complete.

* Have you disabled or blocked cookies required by this site?
* NOTE: If accepting the site's cookies does not resolve the problem, it is likely a server configuration issue and not your computer.

Then I did some comparison on the files in the root with 2.2.7.9, i found there is an extra Index.aspx. After renaming this to Index1.aspx. The default page works. Not sure this is related to my host's setting or what, I tried on my pc didn't have this issue tough.


3. SharedFiles module: I've added a SharedFiles module, when I clicked 'upload' on a file, error:

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.EnvironmentPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Source Error:

[No relevant source lines]

Source File: App_Web_pmzec5a3.1.cs Line: 0

Stack Trace:

[SecurityException: Request for the permission of type 'System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
System.Security.CodeAccessPermission.Demand() +59
System.IO.Path.GetTempPath() +54
Brettle.Web.NeatUpload.FilesystemUploadStorageProvider.GetDefaultTempDirectory() +247
Brettle.Web.NeatUpload.FilesystemUploadStorageProvider.GetTempDirectory(NameValueCollection attrs) +387
Brettle.Web.NeatUpload.FilesystemUploadedFile.Initialize(FilesystemUploadStorageProvider provider, String controlUniqueID, String fileName, String contentType, UploadStorageConfig storageConfig) +37
Brettle.Web.NeatUpload.FilesystemUploadStorageProvider.CreateUploadedFile(UploadContext context, String controlUniqueID, String fileName, String contentType, UploadStorageConfig storageConfig) +80
Brettle.Web.NeatUpload.FilesystemUploadStorageProvider.CreateUploadedFile(UploadContext context, String controlUniqueID, String fileName, String contentType) +18
Brettle.Web.NeatUpload.UploadStorage.CreateUploadedFile(UploadContext context, String controlUniqueID, String fileName, String contentType, UploadStorageConfig storageConfig) +48
Brettle.Web.NeatUpload.UploadedFileCollection.Get(String key) +394
Brettle.Web.NeatUpload.InputFile.get_file() +50
Brettle.Web.NeatUpload.InputFile.get_FileName() +9
mojoPortal.Web.SharedFilesUI.SharedFilesModule.btnUpload_Click(Object sender, EventArgs e) +182
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.default_aspx.ProcessRequest(HttpContext context) in App_Web_pmzec5a3.1.cs:0
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +358
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64

 

Thanks in advance.

12/15/2008 9:23:41 AM
Gravatar
Total Posts 18439

Re: Some issues setting up 2.2.8.0

Hi,

1. Seems like a potential script bug in the web store script for MySql, I will investigate asap.

2. mojoPortal does include an Index.aspx page, but generally you should set your default document in IIS to Default.aspx to use the main content management system. Index.aspx is a page that hosts a Silverlight application framework that I am developing but is just in early stages now. As long as Default.aspx is set as your default document it should not interfere with anything. In the future it will be possible to configure Index.aspx as the default document for those who want to primarily use the Silverlight app framework.

3. Is because you can't use NeatUpload in Medium trust, you must comment out all references to it in Web.config

Best,

Joe

12/16/2008 4:45:38 AM
Gravatar
Total Posts 18

Re: Some issues setting up 2.2.8.0

The web.config is copied from web.mediumtrust.config. And after checking again, I find that all the NeatUpload section have been commented out. Except these:

<add key="NeatUpload.MaxRequestLength" value="1000000" />

<controls> ...

<add namespace="Brettle.Web.NeatUpload" assembly="Brettle.Web.NeatUpload" tagPrefix="NeatUpload" />
<add namespace="Brettle.Web.NeatHtml" assembly="Brettle.Web.NeatHtml" tagPrefix="NeatHtml" />

Do I need to comment out those? Or do I need to remove the dll in the bin as well?

Thanks again.

12/16/2008 5:47:19 AM
Gravatar
Total Posts 18439

Re: Some issues setting up 2.2.8.0

I'm not sure, maybe the shared files feature is broken in medium trust. I will look into it as soon as  I can.

Best,

Joe

12/25/2008 6:53:57 PM
Gravatar
Total Posts 148

Re: Some issues setting up 2.2.8.0

toyumail, does adding a folder called NeatUpload_Temp under your App_Data folder help?  Joe, what version of NeatUpload is mojoPortal using nowadays?

--Dean

 

12/27/2008 7:38:44 AM
Gravatar
Total Posts 18439

Re: Some issues setting up 2.2.8.0

Hi Dean,

Just now I tested  our shared files module in Medium Trust and it worked on my machine using the old version of NeatUpload that we have been using all along. I do have the folder you mentioned so maybe that is the solution for toyumail.

I'm still using a very old version of NeatUpload. I downloaded your 1.3.0 version when I saw the release announcement, but went out of town for Christmas so didn't get to doing anything except reading the documentation. I'm downloading your 1.3.1 version now and plan to try and integrate it today. Looks like you've added a lot of nice improvements. I'll let you know if I run into any issues, your great documentation makes me confident it will go smoothly.

The only issue I currently have with the old version is that not long ago I ajaxified the shared files feature with an updatepanel. It uploads files fine but I couldn't get the progress bar working. I have the InputFile control inside the UpdatePanel and I register the upload button as a postback control. I tried putting the progress bar outside the updatepanel but it didn't work. Again, this is with the old version of NeatUpload I've been using for a long time. Maybe with the new version I can get the progress bar working again.

Hope you're doing well and enjoying the holidays.

Best,

Joe

 

12/27/2008 11:16:22 AM
Gravatar
Total Posts 18439

Re: Some issues setting up 2.2.8.0

Hi Dean,

With the old version of NeatUpload I could make things work normally in medium trust by commenting out the NeatUpload module, but with the new version I cannot. When I visit a page with the shared files module which has the NeatUpload FileInput on it, even after commenting out all references to NeatUpload in Web.config, I get an error:

[SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
System.Web.HttpApplication.get_Modules() +25
Brettle.Web.NeatUpload.UploadModule.get_InstalledModule() +177
Brettle.Web.NeatUpload.UploadModule.get_IsEnabled() +47
Brettle.Web.NeatUpload.FileControl.InitializeFiles() +119
Brettle.Web.NeatUpload.FileControl.OnInit(EventArgs e) +35
Brettle.Web.NeatUpload.InputFile.OnInit(EventArgs e) +48
System.Web.UI.Control.InitRecursive(Control namingContainer) +333
System.Web.UI.Control.InitRecursive(Control namingContainer) +210
System.Web.UI.Control.InitRecursive(Control namingContainer) +210
System.Web.UI.Control.InitRecursive(Control namingContainer) +210
System.Web.UI.Control.InitRecursive(Control namingContainer) +210
System.Web.UI.Control.InitRecursive(Control namingContainer) +210
System.Web.UI.Control.InitRecursive(Control namingContainer) +210
System.Web.UI.Control.InitRecursive(Control namingContainer) +210
System.Web.UI.Control.InitRecursive(Control namingContainer) +210
System.Web.UI.Control.AddedControl(Control control, Int32 index) +198
System.Web.UI.ControlCollection.Add(Control child) +80
mojoPortal.Web.UI.Pages.SiteHome.LoadPage() +750
mojoPortal.Web.UI.Pages.SiteHome.Page_Load(Object sender, EventArgs e) +13
System.Web.UI.Control.OnLoad(EventArgs e) +99
mojoPortal.Web.mojoBasePage.OnLoad(EventArgs e) +12
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6785
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +242
System.Web.UI.Page.ProcessRequest() +80
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.default_aspx.ProcessRequest(HttpContext context) in App_Web_jyyflwsc.2.cs:0
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75


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

I tried also leaving in the NeatUpload config section and setting it to useHttpModule=fasle but then no pages can be accessed at all due to security exception.

So I may need to revert to the old version of NeatUpload that I was using before.

Best,

Joe

12/27/2008 1:27:05 PM
Gravatar
Total Posts 148

Re: Some issues setting up 2.2.8.0

The medium trust issue is a bug.  I'm working on it now.  Thanks for reporting it.

--Dean

 

12/29/2008 7:19:23 AM
Gravatar
Total Posts 18439

Re: Some issues setting up 2.2.8.0

Hey Dean,

I'm using NeatUpload 1.3.3 but there is still a problem in Medium Trust. It no longer throws security exceptions but file uploading fails with the error:

The connection to the server was reset while the page was loading.
The network link was interrupted while negotiating a connection.

With the old version of NeatUpload it was possible to upload files in medium trust after commenting out NeatUpload. If you think this can be solved I will hold off on reverting to the old version and wait for your next update. I've got other changes I would like to merge to trunk but I don't want to merge it with this broken so depending on when I hear from you I may need to go ahead and revert.

Best,

Joe

1/1/2009 10:08:32 AM
Gravatar
Total Posts 18439

Re: Some issues setting up 2.2.8.0

It turned out that the new version of NeatUpload does degrade gracefully in medium trust if commented out in Web.config. The problem turned out to be that the file I was uploading was larger than the default allowed size. After increasing the maxRequestLength setting it worked fine.

I've now go the 1.3.4 version of NeatUpload integrated in my sandbox and will have it merged to trunk later today.

Best,

Joe

4/20/2009 7:00:08 AM
Gravatar
Total Posts 18

Re: Some issues setting up 2.2.8.0

IIS6/7, medium trust, mysql, 2.2.9.6.

Sorry to bring up this post again. I'm the original poster who was having issue with the SharedFiles module.

I've now upgraded the same site to 2.2.9.6. Cleanly delete and upload all again except the Data folder.

However, the SharedFiles problem still exist. Whenever I tried to upload a file, I got this message:

We're sorry but a server error has occurred while trying to process your request.

The error has been logged and will be reviewed by our staff as soon as possible. It is possible that the error was just a momentary hiccup and you may wish to use the back button and try again or go back to the home page.
 

And the error log:

2009-04-20 19:47:51,082 ERROR mojoPortal.Web.Global - 60.48.160.234-en-US - /downloads2.aspx
System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)
at System.Security.CodeAccessPermission.Demand()
at System.IO.Path.GetTempPath()
at Brettle.Web.NeatUpload.FilesystemUploadStorageProvider.GetDefaultTempDirectory()
at Brettle.Web.NeatUpload.FilesystemUploadStorageProvider.GetTempDirectory(NameValueCollection attrs)
at Brettle.Web.NeatUpload.FilesystemUploadedFile.Initialize(FilesystemUploadStorageProvider provider, String controlUniqueID, String fileName, String contentType, UploadStorageConfig storageConfig)
at Brettle.Web.NeatUpload.FilesystemUploadedFile..ctor(FilesystemUploadStorageProvider provider, String controlUniqueID, String fileName, String contentType, UploadStorageConfig storageConfig)
at Brettle.Web.NeatUpload.FilesystemUploadStorageProvider.CreateUploadedFile(UploadContext context, String controlUniqueID, String fileName, String contentType, UploadStorageConfig storageConfig)
at Brettle.Web.NeatUpload.FilesystemUploadStorageProvider.CreateUploadedFile(UploadContext context, String controlUniqueID, String fileName, String contentType)
at Brettle.Web.NeatUpload.UploadStorage.CreateUploadedFile(UploadContext context, String controlUniqueID, String fileName, String contentType, UploadStorageConfig storageConfig)
at Brettle.Web.NeatUpload.UploadStorage.ConvertToUploadedFile(String controlUniqueID, HttpPostedFile file)
at Brettle.Web.NeatUpload.UploadModule.ConvertToUploadedFile(String controlUniqueID, HttpPostedFile file)
at Brettle.Web.NeatUpload.FileControl.InitializeFiles()
at Brettle.Web.NeatUpload.FileControl.OnInit(EventArgs e)
at Brettle.Web.NeatUpload.InputFile.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.AddedControl(Control control, Int32 index)
at System.Web.UI.ControlCollection.Add(Control child)
at mojoPortal.Web.UI.Pages.SiteHome.LoadPage()
at mojoPortal.Web.UI.Pages.SiteHome.Page_Load(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at mojoPortal.Web.mojoBasePage.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.default_aspx.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
The action that failed was:
Demand
The type of the first permission that failed was:
System.Security.Permissions.EnvironmentPermission
The Zone of the assembly that failed was:
MyComputer
 

Please help as I need this feature as soon as possible. Or else could you please recommend another workaround or another module which I can use for user to upload files?

Best Regards

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