Could not load file or assembly 'sts.FormWizard.Business' or one of its dependencies. Access is denied

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/11/2011 10:34:18 PM
Gravatar
Total Posts 21

Could not load file or assembly 'sts.FormWizard.Business' or one of its dependencies. Access is denied

Please excuse my ignorance, I am NOT a programmer or web professional.  I purchased FormWizard, and followed the installation instructions as listed in the zip package.  I installed it on a working site, and now I am getting the following error:

Could not load file or assembly 'sts.FormWizard.Business' or one of its dependencies. Access is denied.
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.IO.FileLoadException: Could not load file or assembly 'sts.FormWizard.Business' or one of its dependencies. Access is denied.

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. 

Assembly Load Trace: The following information can be helpful to determine why the assembly 'sts.FormWizard.Business' could not be loaded.


WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

This is likely an simple fix for you guys.  Please help because I simply cannot get the site back up (trying for about 4 hours now).  I was going to put formwizard on my other site as well if I got it working here, but now I am deathly afraid of it.

Thank you in advance guys.

Bob

2/12/2011 6:36:35 AM
Gravatar
Total Posts 18439

Re: Could not load file or assembly 'sts.FormWizard.Business' or one of its dependencies. Access is denied

Hi Bob,

Possible causes for this:

  • you are not using the latest version of mojoPortal, Form Wizard Pro requires mojoPortal 2.3.6.1 or higher, you may need to upgrade your mojoPortal to the latest version
  • you did not upload the files to the correct location, are the .dll files for Form Wizard in the /bin folder of your web site?
  • you uploaded the wrong version of the files, the Form Wizard package has versions for .NET 3.5 and .NET 4 and you must use the right one for your installation

Hope it helps,

Joe

2/12/2011 1:33:21 PM
Gravatar
Total Posts 21

Re: Could not load file or assembly 'sts.FormWizard.Business' or one of its dependencies. Access is denied

Joe,

   Thank you very much for the quick response.  I should have clarified what I had done first (sorry).  I downloaded the newest release 2.3.6.2 and downloaded the formwizard after I purchased it.  I installed mojo as per the installation video, and the site worked.  I am set up to use .NET 4 through IIS, and I used the files and directories from the dotnet4 directory in the package (formwizard) that I downloaded.  I copied them to the respective directories, then I navigated to www.visionsdb.com/setup/default.aspx, and got that error.  I checked the system event logs, but I can't see an immediate reason for the error (it merely reiterated what mojo told me).

   I re-checked the directory permissions, and everything seems in proper order.  I have 2 other mojo websites on the same server, and they are working extraordinarily well.  As you stated, it is highly likely that I installed the formwizard improperly, but it seemed as I was doing so that I was in agreement with the installation.  Sadly, I am a hardware person and FAR behind you (and most of the others in the forums) with respect to this platform.  Perhaps I bit off more than I can chew, because I had achieved mediocrity rapidly with the base mojo app.

   From the error that I showed you, can you pick out a glaring issue other that what previously stated?  Should I take a screen shot of my directory and file structure for you?  Please advise

Regards,

BoB

2/13/2011 6:23:46 AM
Gravatar
Total Posts 18439

Re: Could not load file or assembly 'sts.FormWizard.Business' or one of its dependencies. Access is denied

Hi Bob,

Does the file exist directly below the root of your site in /bin/sts.FormWizard.Business.dll ?

The installation requires installing the "contents" from the wwwroot folder in the dotnet40 folder into the root of the site. This means that you don't copy the dotnet4 folder nor the wwwroot folder, just the contents of the wwwroot folder, and you paste or upload that directly into the root of your site.

If the files does exist, then I would try uploading it again in case it got corrupted during upload.

Just for sanity I tried a clean installation of mojoPortal 2.3.6.2 and Form Wizard Pro here and it all worked fine.

Hope it helps,

Joe

2/13/2011 7:24:12 AM
Gravatar
Total Posts 21

Re: Could not load file or assembly 'sts.FormWizard.Business' or one of its dependencies. Access is denied

Joe,

   I opened the formwizard zip package and navigated to the dotnet40/wwwroot directory.  I selected all of the contents and copied them to c:\inetpro\wwwroot\visionsdb which is the root folder of the website.  I noticed that some files were overwritten (I am assuming so due to modifications necessary for the app).  The files ended up in the following directories:

c:\inetpub\wwwroot\visionsdb\bin
c:\inetpub\wwwroot\visionsdb\App_GlobalResources
c:\inetpub\wwwroot\visionsdb\Data
c:\inetpub\wwwroot\visionsdb\FormWizard
c:\inetpub\wwwroot\visionsdb\Setup

The event viewer shows this error:

Exception information:
    Exception type: ConfigurationErrorsException
    Exception message: Could not load file or assembly 'sts.FormWizard.Business' or one of its dependencies. Access is denied.
   at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
   at System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory()
   at System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai)
   at System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig)
   at System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies()
   at System.Web.Compilation.BuildManager.CallPreStartInitMethods()
   at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)

Could not load file or assembly 'sts.FormWizard.Business' or one of its dependencies. Access is denied.
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
   at System.Reflection.Assembly.Load(String assemblyString)
   at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)

Request information:
    Request URL: http://localhost/visionsdb/setup/default.aspx
    Request path: /visionsdb/setup/default.aspx
    User host address: 127.0.0.1
    User: 
    Is authenticated: False
    Authentication Type: 
    Thread account name: NT AUTHORITY\NETWORK SERVICE

Thread information:
    Thread ID: 1
    Thread account name: NT AUTHORITY\NETWORK SERVICE
    Is impersonating: False
    Stack trace:    at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
   at System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory()
   at System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai)
   at System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig)
   at System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies()
   at System.Web.Compilation.BuildManager.CallPreStartInitMethods()
   at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)

I wanted to see if I could undue the problem by removing the formwizard files, and copying the deployment files from the original core application download (without removing the database and starting over).  Oddly enough, I still get the same error.  Looking at the event log above, it appears that there is an authentication problem, but I didn't change any settings from the point in which the website was working and the point in which I copied the formwizard files.  Unfortunately, I do not possess the detailed knowledge of the interactions, so I don't know which direction to go.  It is likely one small setting somewhere that I am overlooking.

I think I am following the steps properly, I am at the point in which I will happily give somebody control of the desktop to show me where my error is.  I almost believe that it is a machine setting and NOT mojo that is the problem.

I think when this is over, I'll owe you a CASE of beer, and a POUND of coffee...

Thanks,

BoB

2/13/2011 7:30:13 AM
Gravatar
Total Posts 18439

Re: Could not load file or assembly 'sts.FormWizard.Business' or one of its dependencies. Access is denied

Hi Bob,

If you'd like to send me remote desktop credentials and ip or domain name to connect to I'll take a look and try to diagnose it.

joe dot audette at g mail dotcom

What I would suggest is create a new user account and make it an admin, then after I finish helping you, you can just disable or delete the user.

Best,

Joe

2/13/2011 7:33:23 AM
Gravatar
Total Posts 21

Re: Could not load file or assembly 'sts.FormWizard.Business' or one of its dependencies. Access is denied

Joe,

   Not sure if this is relevant or not, but I have several other sites that are working beautifully, and I installed them with the microsoft web platform installer.  When I tried to install this time, it crashed on me, and I had to install manually.  However, I was able to get the site working very easily by following the installation video.

   I think it is time to crank the amp and jam for a little while to relieve some stress now...hopefully talk to you again later.

Regards,

BoB

2/13/2011 7:35:12 AM
Gravatar
Total Posts 18439

Re: Could not load file or assembly 'sts.FormWizard.Business' or one of its dependencies. Access is denied

You mentioned before it was a root level site with the url: 

www.visionsdb.com/setup/default.aspx

which is a root level web site but in your error log it shows as:

http://localhost/visionsdb/setup/default.aspx

in which case it is not a root level site but an application below the root at localhost and would need the visiondb folder configured as an application to run in that context.

 

 

2/13/2011 12:37:22 PM
Gravatar
Total Posts 21

Re: Could not load file or assembly 'sts.FormWizard.Business' or one of its dependencies. Access is denied

Joe,

   Thanks for the rapid resolution.  Thank you for helping me get the form working properly.  For those playing the home game, it seemed to be an error on MY end and Joe was kind enough to log in and backtrack my steps and get it all working.

   Many thanks...the 6 pack is on me!

BoB

2/13/2011 12:40:28 PM
Gravatar
Total Posts 18439

Re: Could not load file or assembly 'sts.FormWizard.Business' or one of its dependencies. Access is denied

Hi Bob,

Glad to help and many thanks for the beers! Much appreciated.

Cheers,

Joe

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