Re: mysterious error:

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Yep, they did fix it!
"George Ter-Saakov" <gt-nsp@xxxxxxxxxxx> wrote in message news:efyN2dALGHA.1536@xxxxxxxxxxxxxxxxxxxxxxx
I would suggest to drop the support of Webhost4life a line.
They were very helpful to me when I had a permission problem.

Although you gave full access to the folder you still might not have access to the file in that folder. It's easy to fix by setting flag on a folder level so every subfolder/file will inherit permissions.


George.
"Lloyd Dupont" <net.galador@ld> wrote in message news:efXsz4%23KGHA.1124@xxxxxxxxxxxxxxxxxxxxxxx
I have some work which works well on my computer.
developed with VS.NET 2005 and its embeded web server.
Today (for the 1st time in many years, yeah!) I tried an upgrade of my website.

I have many problem, which I don't have on my computer :-(

for exemple, the simple handler (below) work well locally while it doesn't work on the remote server.
Even though I set Full permission to read/write/execute/killmartian/other for the ASPNET process on the App_Data folder, this handler:
=======
<%@ WebHandler Language="C#" Class="test" %>

using System;
using System.IO;
using System.Web;

public class test : IHttpHandler
{
public void ProcessRequest (HttpContext context)
{
string file = HttpContext.Current.Server.MapPath("~/App_Data/testfile.txt");
using (StreamWriter sw = new StreamWriter(new FileStream(file, FileMode.OpenOrCreate, FileAccess.Write)))
sw.WriteLine("That did work!");

context.Response.ContentType = "text/plain";
context.Response.Write("That did work!");
}

public bool IsReusable { get { return false; } }
}
=======
Fail with error:
'c:\hosting\webhost4life\member\lloydd\TheCooksCompanion\App_Data\testfile.txt' is denied.

[UnauthorizedAccessException: Access to the path 'c:\hosting\webhost4life\member\lloydd\TheCooksCompanion\App_Data\testfile.txt' is denied.]
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +2014243
System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) +998
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access) +57
test.ProcessRequest(HttpContext context) in c:\hosting\webhost4life\member\lloydd\TheCooksCompanion\test.ashx:12

Any ideas?
This is excruciatingly painful!

Or maybe you could suggest me a good (and not too expensive) ASP.NET2.0 webserver provider?

--
I have taken a vow of poverty. If you want to really piss me off, send me money.


Relevant Pages

  • Re: Annoying problems with users permissions
    ... No easy answer to "fix" the account. ... Take Ownership of a File or Folder in Windows XP ... You can also reinstall all the software under your new profile ... "You don't have permission to open this file" or "this ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Unable To Show Hidden Files!!! HELP
    ... Ummm actually is BF's PC, he's kills it, I try to fix it. ... How do I give myself permission to access the folder? ...
    (microsoft.public.windowsxp.general)
  • Re: .Net Framework 3.5 SP1 leftover folders
    ... the registry key where its located is named KB954550-v7 ... And by default I don't have permission to access the folder I386 and AMD64 ... But I was wondering if you found a more elegant way to fix this problem... ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Network shares cannot connect
    ... Changed value to 0 just waiting to re-boot the server and test logins. ... Workstation Name: - ... let's focus on the Users Shared Folder first. ... To check this permission, please click the Advanced button, select ...
    (microsoft.public.windows.server.sbs)
  • Re: Network shares cannot connect
    ... Changed value to 0 just waiting to re-boot the server and test logins. ... Workstation Name: - ... let's focus on the Users Shared Folder first. ... To check this permission, please click the Advanced button, select ...
    (microsoft.public.windows.server.sbs)