Upgrade issue on Godaddy

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.
2/14/2013 1:28:45 PM
Gravatar
Total Posts 30
www.CSBA.org

Information Technologies, Resources and Services

California School Boards Association

Upgrade issue on Godaddy

Hi,

I'm in the process of upgrading to the latest version from 2.3.9.0 on GoDaddy. I've done this four or five times in the past with no issues. I'm on a shared server with .Net 2/3.5.

I get the deploy files from codeplex ( the MSSQL 3.5 version )  and unzip them.

I back up my we.config and user.config.

I wipe the directory of all files.

I upload the new files.

I make sure the directory permissions are set for /App_Data and /Data.

I check the user.config to make sure nothing has changed other then my connection string, and make changes as needed.

then using a compare tool I check the web.config and make adjustments as needed.

Upload the config files and hit the setup/default.aspx page and normally all is good.

 

But this time I get...

Server Error in '/' Application.

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) +7608435 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 'Lucene.Net, Version=3.0.3.0, Culture=neutral, PublicKeyToken=85089178b9ac3181' 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 'Lucene.Net, Version=3.0.3.0, Culture=neutral, PublicKeyToken=85089178b9ac3181' 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 'Lucene.Net, Version=3.0.3.0, Culture=neutral, PublicKeyToken=85089178b9ac3181' 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 'Lucene.Net, Version=3.0.3.0, Culture=neutral, PublicKeyToken=85089178b9ac3181' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8910527 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +333


Version Information: Microsoft .NET Framework Version:2.0.50727.4234; ASP.NET Version:2.0.50727.4223

----------------------------------------------------------------------

 

Any thoughts on why I might be getting this?

 

 

 

2/14/2013 2:22:13 PM
Gravatar
Total Posts 18439

Re: Upgrade issue on Godaddy

Hi,

We updated to a new version of Lucene.NET and apparently the .NET 3.5 version of it is not compatible with medium trust as I am able to produce the same error here. It works fine with the .NET 4 package of Lucene under medium trust so I had no reason to think there would be any problem.

I'm looking into a solution for this but for the moment I recommend either restore your previous version or change to .NET 4 or 4.5 hosting and use the .NET 4 package of mojoPortal. 

I'm not sure its going to be feasible to fix this though I will try. We've been getting closer to dropping support for .NET 3.5 and things like this are only driving us closer to doing that because it is becoming problematic to keep it working.

I'll post again if I can figure out a way to fix it.

Best,

Joe

2/14/2013 3:01:31 PM
Gravatar
Total Posts 18439

Re: Upgrade issue on Godaddy

I have posted this problem in the bug tracker for Lucene.NET. I'm hoping they will fix it soon.

2/14/2013 4:06:36 PM
Gravatar
Total Posts 30
www.CSBA.org

Information Technologies, Resources and Services

California School Boards Association

Re: Upgrade issue on Godaddy

Thanks Joe.

I was looking at changing my hosting so that I can use the .net 4 version. I'll look into that after I roll the site back to 2.3.9.0/

 

Thanks,

 

Jeff

2/14/2013 4:56:20 PM
Gravatar
Total Posts 2239

Re: Upgrade issue on Godaddy

Hi Jeff,

If you're looking for solid mojoPortal hosting with mojoPortal Experts on staff, take a look at i7MEDIA. We'll even help you move your site.

Thanks,
Joe D.

2/16/2013 11:43:49 AM
Gravatar
Total Posts 18439

Re: Upgrade issue on Godaddy

Hi Jeff,

I was able to fix the problem and update the package mojoportal-2-3-9-5-mssql-net35-deploymentfiles.zip so it now works in medium trust. I had to use conditional compilation to make the .NET 3.5 build use the older version of Lucene.NET. Still I recommend everyone to use .NET 4 or ideally 4.5 as we will drop support for .NET 3.5 at some point in the not too distant future.

Best,

Joe

2/18/2013 5:56:20 PM
Gravatar
Total Posts 30
www.CSBA.org

Information Technologies, Resources and Services

California School Boards Association

Re: Upgrade issue on Godaddy

Thanks for letting me know.

 

 

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