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

Posted on 2004-10-23
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
    LVL 34

    Accepted Solution

    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

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

    Author Comment

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Here are the symptoms: You start receiving calls from users that one of your legacy web apps isn't coming up, so you log into your IIS 5 server to check it out.  When you pull up the services, you notice that the WWW Publishing service isn't runn…
    First of all, clustering IIS is something you should rarely consider doing. In almost all cases, Microsoft Network Load Balancing (NLB) ( is a much better solution when you need to p…
    With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
    This video discusses moving either the default database or any database to a new volume.

    856 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

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now