install problems on host

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.
8/31/2010 9:00:04 PM
Gravatar
Total Posts 2

install problems on host

Hi, I want to say mojoportal rocks and want to thank ya'll for all the work.

 I had mojoportal 2351 running on my local machine just fine. I scripted the database up to our host MSSQL 2008 and changed the local connection string to point to the host SQl server. Site works fine. I then set up the host in full trust, .net 4, integrated mode and copied all the files to the host. I am using the ,net 4 downloaded zip file. When connecting to the host site I get what appears to be a standard mojoportal error and the currentlog.config shows the following:

2010-08-31 18:12:17,571 INFO mojoPortal.Web.Global - Application Started.
2010-08-31 18:12:17,774 ERROR mojoPortal.Web.Global - xx.122.xxx.109-en-US - /
System.Security.SecurityException: System.Security.Permissions.SecurityPermission
at Brettle.Web.NeatUpload.UploadHttpModule.GetCurrentWorkerRequest()
at Brettle.Web.NeatUpload.UploadHttpModule.Application_BeginRequest(Object sender, EventArgs e)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
The type of the first permission that failed was:
System.Security.Permissions.SecurityPermission
The Zone of the assembly that failed was:
MyComputer
2010-08-31 18:13:02,874 ERROR mojoPortal.Web.Global - xx.122.xxx.109-en-US - /setup/default.aspx
System.Security.SecurityException: System.Security.Permissions.SecurityPermission
at Brettle.Web.NeatUpload.UploadHttpModule.GetCurrentWorkerRequest()
at Brettle.Web.NeatUpload.UploadHttpModule.Application_BeginRequest(Object sender, EventArgs e)
at system.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
The type of the first permission that failed was:
System.Security.Permissions.SecurityPermission
The Zone of the assembly that failed was:
MyComputer
2010-08-31 18:21:11,962 INFO mojoPortal.Web.Global - Global.asax.cs Application_End

As you can see I attempted to access the site it's self and then the setup.aspx with the same result. One thing I noticed is the IP listed above is my local address.

Any help would be greatly appreciated.

Thanks

Bill

9/1/2010 7:16:50 AM
Gravatar
Total Posts 18439

Re: install problems on host

Hi,

You need to follow the instructions for medium trust hosting here:

http://www.mojoportal.com/mediumtrust.aspx

Hope it helps,

Joe

9/1/2010 8:57:44 PM
Gravatar
Total Posts 2

Re: install problems on host

Thanks Joe. It didn't.

I ended up connecting to the host site with IIS manager and changing a few settings. Then it started working.

Bill

9/9/2010 5:47:16 AM
Gravatar
Total Posts 8

Re: install problems on host

First let me thank you for this very nice system!

I was trying to install my first mojoportal site in medium trust environment, and after I executed all the necessary steps suggested, there were still file permission problems on the server when I tried to use ImageGallery, or uploading images. At the end I was able to solve this problem thanks to my provider. I write it down here, it might help others as well.

After some investigation, I found that the file permission problem is caused by the CreateDirectory function, even if the Data and App_Data folder has all the necessary rights  assigned to them.

The reason for that is that the System.IO.Directory.CreateDirectory causes an error when the drive root the application is on does not have a certain permission given to it: the ASPNET process must also have READ ATTRIBUTE privileges (not read file) on the DRIVE ROOT (e.g. D:\) for the DirectoryInfo class in .NET to work correctly.

But this is not always possible. In medium trust, using e.g. the Plesk system on a shared hosting provider, this right can not be assigned to any of the folders of the application.

But it is possible to create a new virtual directory assigned to the directory folder of the hosting area (e.g. httpdocs) where the mojoportal is installed. This new virtual directory should have all the necessary rights.

After that the file permission problems were solved, and all upload functions working very nicely.

 

 

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