When I run .aspx I get access denied to 'K2ROM'

  • 28 January 2004
  • 2 replies
  • 0 views

Badge +3
Server Error in '/SCElectronics' Application.
--------------------------------------------------------------------------------

Access is denied: 'K2ROM'.
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: Access is denied: 'K2ROM'.

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 'K2ROM' could not be loaded.


=== Pre-bind state information ===
LOG: DisplayName = K2ROM, Version=3.13603.1.0, Culture=neutral, PublicKeyToken=10ba86d4fd9ffdf3
(Fully-specified)
LOG: Appbase = file:///c:/inetpub/wwwroot/SCElectronics
LOG: Initial PrivatePath = bin
Calling assembly : K2SmartForms, Version=3.3288.1.0, Culture=neutral, PublicKeyToken=null.
===

LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/scelectronics/feb949c4/eec4b307/K2ROM.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/scelectronics/feb949c4/eec4b307/K2ROM/K2ROM.DLL.
LOG: Attempting download of new URL file:///c:/inetpub/wwwroot/SCElectronics/bin/K2ROM.DLL.



Stack Trace:


[FileLoadException: Access is denied: 'K2ROM'.]
SourceCode.K2SmartForms.K2SmartForm.LoadData() +0
SourceCode.K2SmartForms.K2SmartForm.OnLoad(EventArgs e) +268
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731

2 replies

Badge +3
DOH! Remove IIS Anonymous Access from the Virtual Directory and it works
Badge +7
Yup, you've got it right.

Anonymous access must be disabled for the specific Virtual directory in order for the credentials of the current logged-on user to be passed to K2.net Server.

Cheers!

Reply