Comments (7)
Not sure it is something that is possible.
I originally coded this for sending video however I could never work out how to handle range requests.
Feel free to muck around with the source, I'll definitely accept pull requests if you work it out.
from iis-x-sendfile-plugin.
i cant speak en well,
i'm php programmer and i have the code for range in php
but i don't know how convert it to c#, ( for example how explode string to array )
in php you can add this code
http://stackoverflow.com/a/157447/1827594
and in c# i just add few code maybe help you
first add http request
HttpRequest request = HttpContext.Current.Request;
then add this if
if (request.Headers["HTTP_RANGE"] != null )
{
}
but i don't know how explode and handle data, it's very easy, first give the range, second put file from this rang to output not from the start
from iis-x-sendfile-plugin.
So I updated to support range requests. Unfortunately I do not have a C# compiler to test on my PC at this point, so the code is completely untested and you'll have to compile the XSendfile.dll
yourself.
Let me know if you get it working!
from iis-x-sendfile-plugin.
I compile it and it's failed here is the error
Error 1 'System.Web.Util.FileUtil' is inaccessible due to its protection level ..\IIS-X-Sendfile-plugin-master\XSendfile\XSendfileHttpModule.cs 69 22 XSendfile
Error 2 'System.Web.StaticFileHandler' is inaccessible due to its protection level ..\IIS-X-Sendfile-plugin-master\XSendfile\XSendfileHttpModule.cs 94 49 XSendfile
Error 3 The name 'BindingFlags' does not exist in the current context ..\IIS-X-Sendfile-plugin-master\XSendfile\XSendfileHttpModule.cs 94 94 XSendfile
Error 4 The name 'BindingFlags' does not exist in the current context ..\IIS-X-Sendfile-plugin-master\XSendfile\XSendfileHttpModule.cs 94 116 XSendfile
Error 5 Cannot implicitly convert type 'object' to 'string'. An explicit conversion exists (are you missing a cast?) ..\IIS-X-Sendfile-plugin-master\XSendfile\XSendfileHttpModule.cs 95 31 XSendfile
Error 6 'System.Web.StaticFileHandler' is inaccessible due to its protection level ..\IIS-X-Sendfile-plugin-master\XSendfile\XSendfileHttpModule.cs 97 54 XSendfile
Error 7 The name 'BindingFlags' does not exist in the current context ..\IIS-X-Sendfile-plugin-master\XSendfile\XSendfileHttpModule.cs 97 106 XSendfile
Error 8 The name 'BindingFlags' does not exist in the current context ..\IIS-X-Sendfile-plugin-master\XSendfile\XSendfileHttpModule.cs 97 128 XSendfile
Error 9 'System.Web.Util.StringUtil' is inaccessible due to its protection level ..\IIS-X-Sendfile-plugin-master\XSendfile\XSendfileHttpModule.cs 98 21 XSendfile
Error 10 'System.Web.HttpCachePolicy' does not contain a definition for 'SetIgnoreRangeRequests' and no extension method 'SetIgnoreRangeRequests' accepting a first argument of type 'System.Web.HttpCachePolicy' could be found (are you missing a using directive or an assembly reference?) ..\IIS-X-Sendfile-plugin-master\XSendfile\XSendfileHttpModule.cs 103 32 XSendfile
from iis-x-sendfile-plugin.
I guess you can't access other modules. Would need to copy all the code from the MS version.
Will do this later tonight. Hopefully it'll compile then.
from iis-x-sendfile-plugin.
i cant understood your mean, i compile it with visual studio 2012 , what i need to do ?
from iis-x-sendfile-plugin.
Hello guys,
Is DLL still supported? I am trying install module, but always get error that no corresponding assembly entry in web.config
Thanks!
from iis-x-sendfile-plugin.
Related Issues (7)
- License? HOT 7
- Byte-range requests and Content-length HOT 9
- Do not override existing cache headers
- IIS 10 HOT 5
- Not an issue HOT 1
- .NET only? Global? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iis-x-sendfile-plugin.