View Single Post
  #6 (permalink)  
Old June 19th, 2003, 06:29 PM
clayv clayv is offline
Registered User
 
Join Date: Jun 2003
Location: San Rafael, CA, USA.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

First a caveat:
I use C# so this is untested with VB.NET

I also had this working under .NET 1.0 and it suddenly stopped after upgrading to .NET 1.1 and VS 2003. After trying lots of different permissions on my box (the suggested fix when the exception is thrown is to alter the permissions using the Security tab for the file - which is unavailable on a XP box running in a workgroup), I took a look at the FileStream class and noticed that the default access is Read/Write, which you would want to fail for an anonymous web user..

So the fix is to change your FileStream constuctors in the ModuleConfig.cs files to the following (note C# syntax):

FileStream fs = new FileStream(fileName, FileMode.Open, FileAccess.Read);

Hope that fixes it for you too!

Clay Ver Valen