Andre Luís Quintaes Guimarães
2004-Jul-10 19:40 UTC
[Samba] Asp.net via samba share problem
Hello, Besides some minor security problems (aspnet and iis users being mapped always as others on file acl) asp.net and asp reading files over a samba share were working quite alright. Now I started to have the following problem: [HttpException (0x80070038): Falha ao iniciar monitora??o de altera??es em 'h:\Directory_of_the_virtual_host_here\'.] System.Web.DirMonCompletion..ctor(DirectoryMonitor dirMon, String dir, Boolean watchSubtree, UInt32 notifyFilter) +140 System.Web.DirectoryMonitor.StartMonitoring() +42 System.Web.DirectoryMonitor.StartMonitoringFile(String file, FileChangeEventHandler callback, String alias) +154 System.Web.FileChangesMonitor.StartMonitoringDirectoryRenamesAndBinDirectory(String dir, FileChangeEventHandler callback) +278 System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +331 [HttpException (0x80004005): Erro de Inicializa??o do ASP.NET] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +965 System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +128 It means failed to initiate file alteration monitoring on the directory of the virtual host. I searched for this on the ned and found only a similar access denied problem, which is not my case, the error code for this case is 0x80070038 and , as always, shitty microsoft doesnt have any documentation for this. I have set some alarms (small shell script reading some applications and searching for the error message) to see when the error pops up, but on the applications monitored the error ceased to happen. Maybe on really active applications this doesnt happen, only on applications inactive for some time. There are two ways of fixing this (temporarily): 1) restart IIS. 2) Restart samba. Smbstatus returns everything normal, the same before and after the error. When aspnet errors occur they are individual for some vhosts, other vhosts and all asp (not asp.net) continue to work. Maybe messing up some samba and windows tcp parameters could help me fixing this. Any suggestions? Regards, Andr? Guimar?es Hostgold Hospedagem http://www.hostgold.com.br