Error during login: the iMIS website may not be functioning properly

Hi,

We had a planned power interruption in our building Friday night so we shut down our servers using windows sceduler at midnight.  On Saturday when the power was fully restored and servers were rebooted, we had troubles login into iMIS desktop as well as web views.  Our public website seems working fine but users cannot change password.  The error we got from the iMIS desktop is "Error during login: the iMIS website may not be functioning properly.  Please see your sustem administrator".  I have followed tech support's instruction to reset all permissions and have restart our IIS from application server, none seemed to work.  Does anyone know how to fix this error?

Thanks.

Wen-Lu Chao
IT & Database Manager
PIAA

 

 

 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Detailed Error message from our Application Server

Below is the error message we got from application server:

 

Server Error in '/iMIS_Prod' Application.
--------------------------------------------------------------------------------

Could not load file or assembly 'Asi.Webroot.AsiCommon.Controls.CrystalReports' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
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 'Asi.Webroot.AsiCommon.Controls.CrystalReports' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))

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 'Asi.Webroot.AsiCommon.Controls.CrystalReports' 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].

Stack Trace:

[FileLoadException: Could not load file or assembly 'Asi.Webroot.AsiCommon.Controls.CrystalReports' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))]

[FileLoadException: Could not load file or assembly 'Asi.Webroot.AsiCommon.Controls.CrystalReports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))]
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 'Asi.Webroot.AsiCommon.Controls.CrystalReports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))]
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.Configuration.AssemblyInfo.get_AssemblyInternal() +29
System.Web.Compilation.CompilationUtil.GetTypeFromAssemblies(AssemblyCollection assembliesCollection, String typeName, Boolean ignoreCase) +132
System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +291
System.Web.Profile.ProfileBase.AddProfilePropertySettingsForCompilation(ProfilePropertySettingsCollection propertyCollection, Hashtable ht, String groupName) +294
System.Web.Profile.ProfileBase.GetPropertiesForCompilation() +291
System.Web.Compilation.ProfileBuildProvider.get_HasCompilableProfile() +20
System.Web.Compilation.ProfileBuildProvider.GetProfileTypeFromAssembly(Assembly assembly, Boolean isPrecompiledApp) +13
System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories) +8812798
System.Web.Compilation.BuildManager.CompileCodeDirectories() +265
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +320

[HttpException (0x80004005): Could not load file or assembly 'Asi.Webroot.AsiCommon.Controls.CrystalReports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))]
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 'Asi.Webroot.AsiCommon.Controls.CrystalReports, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8894095
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +259

 

Problem Fixed

Hi,

For your information, the login problem is fixed.  IIS caches files in this temporary directory, and when the power went out, one or more of the files it would pull was corrupted. So tech support just suggested deleting the directory so that IIS would refresh those temporary files.  Now we are able to login iMIS.

Wen

IMIS website may not be functioning properly

Hi Wen,

We got this error message too this morning. Would you be able to tell me the exact name and location of the temporary directory?

Hoping to hear from you soon.

thanks

Rita Catabay
Amnesty International Australia

IMIS website may not be functioning properly

Hi Wen,

We got this error message too this morning. Would you be able to tell me the exact name and location of the temporary directory?

Hoping to hear from you soon.

thanks

Rita Catabay
Amnesty International Australia

Finding the temp directory location

Use this SQL query: select ParameterValue from SystemConfig where ParameterName = 'TempDirectory'

It turned out to be CrystalReport error

See the ASI Tech Support responded to our issue that fixed this error:

This error is referencing Crystal Reports. Have you recently installed Crystal Reports on your iMIS application server? iMIS 15 installs the Crystal runtime during the core components install and if you later installed another version of Crystal on this server, it may be conflicting with the one iMIS installed.

If that is not the case and no other version of Crystal Reports is installed on this server, then what I'd suggest doing next is to delete the temporary .NET files for iMIS and restart IIS. The temp folder for iMIS .NET is located under

C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files

and will be named the same name as your virtual directory (or application name) in IIS. In this case, it should be called iMIS_prod. Go ahead and make a backup copy of this folder, then delete the iMIS_prod folder under C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files folder and then restart IIS. And then test going back to http://mail/iMIS_prod and see if you still get the error

Hope this helps!

Wen