Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Getting exceptions errors in web application running on IIS within XP Pro SP2

Posted on 2004-10-23
Medium Priority
Last Modified: 2012-08-13
Have recently upgraded a web server (XP Pro) to XP SP2 and since then I am getting errors in my web application.  I also upgraded the application at the same time (bad idea) so it is hard to pin point the cause.  I routinely set up this application (Maximizer) and have set up this version of it.  This is my first shot on XP SP2.

The application logs in and displays graphics.  When data is called from a SQL server on a separate server, this error shows up, referencing illegal characters in the path:

Server Error in '/MaximizerEmployee' Application.

Illegal characters in path.
Description: An unhandled exception occurred during compilation using the CodeDomProvider 'Microsoft.CSharp.CSharpCodeProvider'. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: Illegal characters in path.

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: Illegal characters in path.]
   System.Security.Permissions.FileIOPermission.HasIllegalCharacters(String[] str) +276
   System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList) +88
   System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String[] pathList, Boolean checkForDuplicates, Boolean needFullPath) +43
   System.IO.Directory.GetCurrentDirectory() +205
   System.CodeDom.Compiler.CodeCompiler.Compile(CompilerParameters options, String compilerDirectory, String compilerExe, String arguments, String& outputFile, Int32& nativeReturnValue, String trueArgs) +356
   System.CodeDom.Compiler.CodeCompiler.FromFileBatch(CompilerParameters options, String[] fileNames) +548
   System.CodeDom.Compiler.CodeCompiler.FromDomBatch(CompilerParameters options, CodeCompileUnit[] ea) +428
   System.CodeDom.Compiler.CodeCompiler.FromDom(CompilerParameters options, CodeCompileUnit e) +90
   System.CodeDom.Compiler.CodeCompiler.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromDom(CompilerParameters options, CodeCompileUnit e) +37
   System.Web.Compilation.BaseCompiler.GetCompiledType() +227

Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573

My immediate goal is to isolate whether the problem is:

1. Something in the SQL permissions. (not likely, DSN works).
2. Something in file permissions locally.
3. A windows or IIS problem.
4. A problem in my Maximizer app.

Since the app works in the fat client, and works partially in the web client, I am suspicious of SP2 but I am not sure.  Any insights would be appreciated.
Question by:wintecgroup
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 34

Accepted Solution

Dave_Dietz earned 500 total points
ID: 12391549
From the stack trace is apears that the exception was thrown due to the appearance of an illegal character in a path for which FileIOPermssion was verified.

I would have to say that this is likely an issue in the applciation itself.  It may be that a character that was legal prior to SP2 isn't any longer or perhaps the directory structure is different in some way on this installation.

Dave Dietz

Author Comment

ID: 12487611
After uninstalling XP SP2 my app works fine again.  It is something, not yet determined what, that SP2 disabled.

Author Comment

ID: 12696299
There may be things the developers can do with the app, but the app ran fine pre-XP SP2.  Removing XP SP2 does fix the problem for now.

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Debug Tools to analyse IIS process: This article focus on taking memory dumps from IIS to determine which code is taking more time and to analyse which calls hangs/causes more CPU usage. To take dumps,download the following. Install1: To st…
Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question