Wierd error - help pls!!!

  • Thread starter Thread starter David Li
  • Start date Start date
D

David Li

Hi guys,
Suddenly I got the following error message for all of my web applications.
It's gone if I restart the IIS service, but it comes back if I recompile any
of the web applications. Really appreciate it if anybody has some ideas
about this. Thanks in advance!!!


David

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

Value does not fall within the expected range.
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.ArgumentException: Value does not fall within the
expected range.

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:

[ArgumentException: Value does not fall within the expected range.]
System.Reflection.Assembly.GetReferencedAssemblies() +0
System.Web.UI.Util.GetReferencedAssembliesHashtable(Assembly a) +45
System.Web.Compilation.BaseCompiler.GetCompiledType() +382
System.Web.UI.ApplicationFileParser.CompileIntoType() +52
System.Web.UI.TemplateParser.GetParserCacheItemThroughCompilation() +126

[HttpException (0x80004005): Value does not fall within the expected range.]
System.Web.UI.TemplateParser.GetParserCacheItemInternal(Boolean
fCreateIfNotFound) +692
System.Web.UI.TemplateParser.GetParserCacheItemWithNewConfigPath() +125
System.Web.UI.TemplateParser.GetParserCacheItem() +88
System.Web.UI.ApplicationFileParser.GetCompiledApplicationType(String
inputFile, HttpContext context, ApplicationFileParser& parser) +171
System.Web.HttpApplicationFactory.CompileApplication(HttpContext context)
+43
System.Web.HttpApplicationFactory.Init(HttpContext context) +485
System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext
context) +170
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +414
 
Did you happen to put an exe in your bin?

I did that once and got a strange error like that.


David Li said:
Hi guys,
Suddenly I got the following error message for all of my web applications.
It's gone if I restart the IIS service, but it comes back if I recompile any
of the web applications. Really appreciate it if anybody has some ideas
about this. Thanks in advance!!!


David

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

Value does not fall within the expected range.
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.ArgumentException: Value does not fall within the
expected range.

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:

[ArgumentException: Value does not fall within the expected range.]
System.Reflection.Assembly.GetReferencedAssemblies() +0
System.Web.UI.Util.GetReferencedAssembliesHashtable(Assembly a) +45
System.Web.Compilation.BaseCompiler.GetCompiledType() +382
System.Web.UI.ApplicationFileParser.CompileIntoType() +52
System.Web.UI.TemplateParser.GetParserCacheItemThroughCompilation() +126

[HttpException (0x80004005): Value does not fall within the expected range.]
System.Web.UI.TemplateParser.GetParserCacheItemInternal(Boolean
fCreateIfNotFound) +692
System.Web.UI.TemplateParser.GetParserCacheItemWithNewConfigPath() +125
System.Web.UI.TemplateParser.GetParserCacheItem() +88
System.Web.UI.ApplicationFileParser.GetCompiledApplicationType(String
inputFile, HttpContext context, ApplicationFileParser& parser) +171
System.Web.HttpApplicationFactory.CompileApplication(HttpContext context)
+43
System.Web.HttpApplicationFactory.Init(HttpContext context) +485
System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext
context) +170
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +414
--------------------------------------------------------------------------
 
Thank you for the reply. I found the reason: my code calls some unmanaged
Win32 code with passing just 1 wrong parameter and it crashes the IIS!
Luckily it's fixed now.


David


some guy with a computer said:
Did you happen to put an exe in your bin?

I did that once and got a strange error like that.


David Li said:
Hi guys,
Suddenly I got the following error message for all of my web applications.
It's gone if I restart the IIS service, but it comes back if I
recompile
any
of the web applications. Really appreciate it if anybody has some ideas
about this. Thanks in advance!!!


David

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

Value does not fall within the expected range.
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.ArgumentException: Value does not fall
within
the
expected range.

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:

[ArgumentException: Value does not fall within the expected range.]
System.Reflection.Assembly.GetReferencedAssemblies() +0
System.Web.UI.Util.GetReferencedAssembliesHashtable(Assembly a) +45
System.Web.Compilation.BaseCompiler.GetCompiledType() +382
System.Web.UI.ApplicationFileParser.CompileIntoType() +52
System.Web.UI.TemplateParser.GetParserCacheItemThroughCompilation() +126

[HttpException (0x80004005): Value does not fall within the expected range.]
System.Web.UI.TemplateParser.GetParserCacheItemInternal(Boolean
fCreateIfNotFound) +692
System.Web.UI.TemplateParser.GetParserCacheItemWithNewConfigPath() +125
System.Web.UI.TemplateParser.GetParserCacheItem() +88
System.Web.UI.ApplicationFileParser.GetCompiledApplicationType(String
inputFile, HttpContext context, ApplicationFileParser& parser) +171
System.Web.HttpApplicationFactory.CompileApplication(HttpContext context)
+43
System.Web.HttpApplicationFactory.Init(HttpContext context) +485
System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext
context) +170
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +414
--------------------------------------------------------------------------
 
Back
Top