> create an app_data folder in your site, which asp.net does not monitor.
>
[quoted text clipped - 21 lines]
>>
>> Andy
just found this:
https://connect.microsoft.com/VisualStudio/feedback/Workaround.aspx?FeedbackID=240686
and I have implemented Kritter's hack which works fine for me on XP and win
2003 - copied below FYI:
Entered by [By]Kritter on 23/07/2007
A dirty hack that works:
PropertyInfo p =
typeof(System.Web.HttpRuntime).GetProperty("FileChangesMonitor",
BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Static);
object o = p.GetValue(null, null);
FieldInfo f = o.GetType().GetField("_dirMonSubdirs", BindingFlags.Instance |
BindingFlags.NonPublic | BindingFlags.IgnoreCase);
object monitor = f.GetValue(o);
MethodInfo m = monitor.GetType().GetMethod("StopMonitoring",
BindingFlags.Instance | BindingFlags.NonPublic);
m.Invoke(monitor, new object[] { });
This code will turn off monitoring from the root website directory, but
monitoring of Bin, App_Themes and other folders will still be operational,
so updated DLLs will still auto deploy.
> Thanks Bruce,
>
[quoted text clipped - 30 lines]
>>>
>>> Andy
Patrice - 10 Sep 2007 16:30 GMT
My personal preference is just to not store those files under my web site
structure :
- you can server files stored outside of your structure (using an ASPX page
or a handler that allows additionaly to control how it is accessed
especially if those files are not supposed to be served to everyone)
- you could also likely use a virtual folder
This keep your web application and its data apart...
--
Patrice
> just found this:
>
[quoted text clipped - 55 lines]
>>>>
>>>> Andy
Andy Fish - 11 Sep 2007 16:13 GMT
for the most part that is exactly what I am doing
however, to serve optimized (linearized) pdfs properly is rather more
complicated because the browser requests chunks of the file with separate
HTTP requests, so for this case I decided the best solution was to make a
temporary copy of the PDF underneath the web root, then redirect the browser
to it. that way the optimized download works properly without lots of extra
code
Andy
> My personal preference is just to not store those files under my web site
> structure :
[quoted text clipped - 68 lines]
>>>>>
>>>>> Andy
Patrice - 11 Sep 2007 17:56 GMT
Good point.
In my particular case, it was more a library of misc documents so I served
anyway all files using an attachment disposition for consistency.
Plus I always use myself "save as" on third party site as I really dislike
this feature that makes generally the browser (at least IE) much less
responsive IMHO ;-)
It looks this is discussed here and there :
http://www.google.com/search?hl=en&q=pdf++download+aspnet+handler+accept+range
Interesting topic.
---
Patrice
> for the most part that is exactly what I am doing
>
[quoted text clipped - 80 lines]
>>>>>>
>>>>>> Andy