GoDaddy Install

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.
3/16/2012 4:06:17 PM
Gravatar
Total Posts 37

GoDaddy Install

running

operating system: Windows XP
database: SQL server 2005
version: mojoportal-2-3-8-1-mssql-net40-deploymentfiles

Hi All -

Firstly - I love this product!

I have been wrestling with my install all day now and need help.

I have followed these installation steps:

1. Create your db and db user
2. Open user.config.sample in a text editor and save as user.config
3. Set the correct connection string in user.config
4. Copy the contents of the  wwwroot folder to the root of your web site.
5. Make sure the /Data folder and /App_Data folder are completely writable by the web process user (the user that is the identity on the application pool is the euser who needs permission), set permissions on these folders if needed to make them wriable. No other folders need to be writable.
6. Visit yoursiteroot/Setup/Default.aspx to complete the installation, it will run all the needed db scripts and other configuration steps.

I have double checked that my connection string is correct and that my write permission on the Data and App_Data folder are set to write.

My URL is: paparazziproposals.com -- When I run paparazziproposals.com/Setup/Default.aspx I get this:

"500 - Internal server error.

There is a problem with the resource you are looking for, and it cannot be displayed."

I have spoken to GoDaddy and they provided me with a web.config file that shows an error stack.

Click my URL using their web.config file to view the error stack:

www.paparazziproposals.com

Any advice is appreciated.

Greg (newbie)

3/16/2012 4:14:55 PM
Gravatar
Total Posts 42

Re: GoDaddy Install

Maybe server doesn't support .NET 4. Have you tried the 3.5 version?

3/16/2012 7:38:10 PM
Gravatar
Total Posts 37

Re: GoDaddy Install

Thanks Tomzi. You were right - the economy server i am on does not support .Net 4.

I uploaded Mojo 3.5 and am still getting errors.

here is error stack. Any advice is still very much appreciated.

Required permissions cannot be acquired.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Security.Policy.PolicyException: Required permissions cannot be acquired.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[PolicyException: Required permissions cannot be acquired.] System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Boolean checkExecutionPermission) +7606579 System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Int32& securitySpecialFlags, Boolean checkExecutionPermission) +57[FileLoadException: Could not load file or assembly 'Microsoft.ApplicationServer.Caching.Core, Version=101.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)] System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0 System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +43 System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +127 System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +142 System.Reflection.Assembly.Load(String assemblyString) +28 System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46[ConfigurationErrorsException: Could not load file or assembly 'Microsoft.ApplicationServer.Caching.Core, Version=101.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)] System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +613 System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +203 System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +105 System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +178 System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +54 System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed) +600 System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories) +128 System.Web.Compilation.BuildManager.CompileResourcesDirectory() +31 System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +304[HttpException (0x80004005): Could not load file or assembly 'Microsoft.ApplicationServer.Caching.Core, Version=101.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)] System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +58 System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +512 System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +729[HttpException (0x80004005): Could not load file or assembly 'Microsoft.ApplicationServer.Caching.Core, Version=101.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8894031 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +333

3/16/2012 7:59:51 PM
Gravatar
Total Posts 2239

Re: GoDaddy Install

Looks like you're using the full trust web.config in a medium trust environment.

GoDaddy is nortorious for really really bad hosting environment configurations. Think about it, the operating system is windows XP which is not a server OS and is no longer supported by Microsoft.

HTH,
Joe D.

3/16/2012 8:06:20 PM
Gravatar
Total Posts 37

Re: GoDaddy Install

Sorry Joe -

That XP part was a brain fart on my part - my pc is running XP :)

The server is a windows server running IIS 7.0.

Any idea how I get the right web.config?

TIA

Greg

3/16/2012 8:11:10 PM
Gravatar
Total Posts 42

Re: GoDaddy Install

The Web.net35.mediumtrust.config should be in the mojoportal package or you can download it from the server.

3/16/2012 8:16:08 PM
Gravatar
Total Posts 2239

Re: GoDaddy Install

Hi,

Understood on the XP deal. GoDaddy used to use XP for hosting so I wouldn't be surprised to see it again.

The default web.config released with mojoPortal is Medium Trust. The full trust web.config is named web.fulltrust.config. It sounds like the web.config files got swapped. Not a big deal, open the web.config and then make sure that all lines with a comment like <!-- Comment this out in Medium Trust --> above them are commented out. Those lines should be:

(~Line 4)
<section name="neatUpload" type="Brettle.Web.NeatUpload.ConfigSectionHandler, Brettle.Web.NeatUpload" allowLocation="true" requirePermission="false" />

(~Line 1063)
<neatUpload useHttpModule="true" maxNormalRequestLength="4096" maxRequestLength="2097151" multiRequestUploadHandlerUrl="~/NeatUpload/MultiRequestUploadHandler.ashx" maxUploadRate="300" xmlns="http://www.brettle.com/neatupload/config/2008">
</neatUpload>

Also, make sure you have the following uncommented in your user.config file.

<add key="RunningInMediumTrust" value="true" />

HTH,
Joe D.

3/16/2012 8:55:22 PM
Gravatar
Total Posts 37

Re: GoDaddy Install

Thanks for the awesome help Joe!

<add key="RunningInMediumTrust" value="true" /> was commented out - I fixed that.

Still getting errors. You can view them here:

www.paparazziproposals.com

This sure is frustrating. I am just about to quit GoDaddy forever. Just checked all settings again for the 5th time. I am at a loss.

:(

3/17/2012 6:48:52 AM
Gravatar
Total Posts 37

Re: GoDaddy Install -- Abandoned for a hosting account on Arvixe.

Hi All -

Thanks again for the help with this. I have abandoned the install on GoDaddy for a equivalent hosting account on Arvixe.

Thanks again for the help.

Greg

3/17/2012 1:29:42 PM
Gravatar
Total Posts 2239

Re: GoDaddy Install

Glad I could help you. Although I prefer i7MEDIA hosting, Arvixe is a lot better than GoDaddy. :-)

Thanks,
Joe D.

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