Could not load assemblies on shared hosting??

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.
4/13/2010 5:02:08 PM
Gravatar
Total Posts 116

Could not load assemblies on shared hosting??

Hi all,

I have been trying to get mojoportal up and running on my shared hosting which is Eukhost (UK) and is running:

IIS 6.0

ASP 3.5 SP1

MojoPortal - started with 2.3.4.1 and changed to 2.3.4.2 today (hoping the error would be fixed! lol)

 

I have read the instructions provided, setup my SQL 2005 DB and user and added those details to the user.config file, uploaded all the files via FTP and I have asked the hosting company to set permissions on the Data folder and the App_Data folder.

When I go to the setup page of my test site (http://www.jrctest.co.uk.dnpwebhosting.net/setup/default.aspx) I get one of 2 errors.  With the default web.config file I get the standard error page and when I changed the web.config file over to assume Medium Trust (which I later found out it was due to shared hosting) and set <customErrors mode="Off" defaultRedirect="Error.htm"> then I get:

Parser Error Message: Could not load file or assembly 'mojoPortal.Web' or one of its dependencies. The system cannot find the file specified. (E:\HostingSpaces\jrcwebso\jrctest.co.uk\wwwroot\web.config line 955)

I tried commenting this line out and it just move the error to the next line and the next httpModule - I haven't tried commenting them all out.

I have also tried reuploading a couple of times.

I have been on with the hosting company who can't really help but assure me that the fact it says MS.NET 2.xxx at the bottom of the error page isnt a problem and that 3.5 SP1 is up and running fine......

Pretty much stuck and out of things to try now, I am rather hoping that this is a simple newbie error and there is something I am doing wrong e.g. does anything need marking as an ASP app anywhere.........  I have wondered about upgrading to a VPS server but would rather like a good play around with mojportal first....

Any help or suggestions greatly appreciated :-)

4/14/2010 4:41:16 AM
Gravatar
Total Posts 116

Re: Could not load assemblies on shared hosting??

Messing around again today trying to get it working and tried turning off custom errors in the full trust web.config file - still fails but on the neatupload httpmodule - don't think it is an issue necessarily with the neatupload but seems to be the first httpmodule that it tries to load......

Should I enable debug mode in the web.config file and see if I can get any more info? 

4/14/2010 7:13:00 AM
Gravatar
Total Posts 18439

Re: Could not load assemblies on shared hosting??

Did you upload the wwwroot folder or did you already have a folder with that name?

The mojoPortal package has a wwwroot folder, you are not supposed to upload the folder, you are supposed to upload the contents of the folder to the root folder of your web hosting.

If you uploaded the wwwroot folder then the files are not in the correct location and therefore it cannot find them.

Hope it helps,

Joe

4/14/2010 7:22:57 AM
Gravatar
Total Posts 116

Re: Could not load assemblies on shared hosting??

Hi Joe,

Thanks for the input - I will describe what I did below and see if that helps make sense of anything....... (and apologies in advance for stating what is most likely obvious)

The shared hosting I use uses dotnetpanel as the control panel and I already had a couple of domains created that I just use as test domains, one of them being jrctest.......

once I have created the domain via the control panel I can connect to it via FTP and filezilla and see a number of folders under my account folder which are either the domains I host or test domains.  Under each of theses folders are 3 sub folders called data, logs and wwwroot

All I did was to upload the contents of the release files wwwroot folder into the wwwroot folder into the jrctest folder on the server so I have for example /jrcwebso/jrctest.co.uk/wwwroot/bin  

This is the way I have always done when building simpler domains and also the much more complex domain I host which runs on blogengine (although in that case I had to ask the hosting people to mark the BlogEngine folder as an ASP application......??)

Hope that this highlights some simple mistake I have made.... :-)

4/14/2010 7:30:01 AM
Gravatar
Total Posts 18439

Re: Could not load assemblies on shared hosting??

Hi,

It sounds like you did the correct steps as far as uploading. Possibly file system permissions are not correct. If the web process user does not have read permissions to all the files and folders, specifically the bin folder in this case then it would cause this error.

Probably you need to also use Medium Trust configuration, usually medium trust issues manifest as security exceptions, so my first guess is file system permissions is the problem in this case but still worht going ahead and configure for medium trust as this is needed in most shared hosting.

Hope it helps,

Joe

4/14/2010 7:32:26 AM
Gravatar
Total Posts 116

Re: Could not load assemblies on shared hosting??

Thanks Joe, will give it a try and report back :-)

4/14/2010 7:37:35 AM
Gravatar
Total Posts 18439

Re: Could not load assemblies on shared hosting??

Hi,

Thanks for the beer!

btw, you mentioned 

I had to ask the hosting people to mark the BlogEngine folder as an ASP application......??

typically a root web site is already marked as an application, if mojoPortal is installed in a sub folder not a root web site then it also need to be marked as an application as would any .NET app.

Hope it helps,

Joe

4/14/2010 7:48:21 AM
Gravatar
Total Posts 116

Re: Could not load assemblies on shared hosting??

No problem Joe sure it will be the first of many and thanks for sharing such an amazing and complex product!

I asked them to look at permissions and they all seem fine and I am hitting the same error so assuming I need to mark mojoportal as an ASP app which folders do I need to mark (sorry for the newbie questions but blogengine.net was in a self contained folder that needed marking) as the app from the releasefiles/wwwroot folder ?

4/14/2010 8:06:21 AM
Gravatar
Total Posts 18439

Re: Could not load assemblies on shared hosting??

If mojoPortal is in the wwwroot folder then that is the folder that needs to be an application.

Hope it helps,

Joe

4/14/2010 8:54:23 AM
Gravatar
Total Posts 116

Re: Could not load assemblies on shared hosting??

Woo Hoo - up and running! smiley

I had a good long chat with a guy that has been very helpful before on the Eukhost livechat and he looked into it for me.  Tried the ASP app thing but he said that was already setup correctly.  He asked me for the IIS setup instructions and once I had sent him a link to the IIS setup page on here he went off and had a root around and got it up and running in a few mins.  I asked him whether I had done something wrong or what the problem was for when I setup another site with mojoportal and was told: 

" The setup folder was setup as an application. it was not required since you were installing it on the root of the site and the wwwroot folder is already setup as an virtual application folder for your site. "

Not sure how/why the setup folder was setup as an application as its not something I have done (maybe a legacy folder from what was there before who knows.......) but the main thing is that it all works fine now and the fun can really start cool

 

If anyone else ever wants to setup on Eukhost (under shared hosting) then it should be as simple as following Joe's instructions, using the Medium Trust setup and off you go - if you get stuck then a guy called Raymond seems very good, helpful and thorough :-)  In general I have found them to be very good and very helpful.

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