I have a virtual path provider that serves static files from my virtual file system,is it possible to configure the IIS to server static files through my virtual path provider or do I need to create a custom static file handler?
Configuring IIS 7 to handle static files through a Virtual Path Provider
1.8k Views Asked by marcus At
1
There are 1 best solutions below
Related Questions in ASP.NET-MVC
- Can MVC.NET prevent SQL-injection at razor or controller level?
- Getting and passing MVC Model data to AngularJS controller
- Access property of an object of type [Model] in JQuery
- Entity Framework Code First with Fluent API Concurrency `DbUpdateConcurrencyException` Not Raising
- Bundling and minification issue in MVC
- ASP-MVC Code-first migrations checkbox not active
- Why does Azure CloudConfigurationManager.GetSetting return null
- Dynamic roles list in CustomAuthorize ASP MVC
- Jquery: Change contents of <select> tag dynamically
- Why web API return 404 when deploy to IIS
- MVC route URL not containing parameter
- Invalidate user credentials when password changes
- MVC : Insert data to two tables
- MVC - Only allow users to edit their own data
- Submit Button on Razor View doesn't call Action Result - MVC
Related Questions in IIS
- Create an IIS web request activity light
- Why web API return 404 when deploy to IIS
- Adding site Binding programmatically IIS 7.5
- .net Web Api 2 Owin authentication token expires suddenly and often on IIS 8.5
- Redirecting subdomain to directory on Azure
- Saving Image To a Temp Folder is Loosing Session
- The page cannot be displayed because an internal server error has occurred on server
- Approach for performing long running tasks in .NET
- Why does IIS Anonymous Authentication turn on by itself after I publish my project to server?
- IIS 7 ERR_CONNECTION_TIMED_OUT only with public IP
- Maximum value for IIS .NET Compilation Batch Time-out
- ASP.Net 1.1 app on IIS 7 waiting threads
- File upload web api 2.0 error after deployment on IIS 8.5
- nginx and IIS - dealing with invalid hostname and SSL
- Allow console application to access Windows Authenticated web app
Related Questions in IIS-7
- Create an IIS web request activity light
- SSL certificate error 403.13 in IIS 7.5
- IIS 7 ERR_CONNECTION_TIMED_OUT only with public IP
- ASP.Net 1.1 app on IIS 7 waiting threads
- Node.js with Socket.io - Long Polling fails and throws "code":1,"message":"Session ID unknown" response
- Publishing a website under IIS 7 and getting ��Y�o�8�}���x��� (odd characters)
- ASP ProcessModel and WCF
- IIS Rewrite Rule for path
- What are the PHPMailer requirement for sending mail and receiving mail in IIS 7
- HTTP Error 405.0 - Method not allowed error in asp.net mvc 4 post method
- Deploying a classic ASP site from IIS 6 (2003 WS) to IIS 7 (WS 2008). Tried Manual deploy and msdeploy
- Unauthorized Access Exception on IIS7 virtual directory with proper permissions
- IIS 7 no images when friendly url is on
- Zend Application Redirection Not Working After Migrated on Windows with IIS
- Can I find out which user php is running under from php_info()
Related Questions in VIRTUALPATHPROVIDER
- GetCacheDependency not called in custom VirtualPathProvider
- Virtual Path Provider with embedded resource Asp.Net MVC as class library
- Including a MVC View or string in a javascript bundle using Bundling framework
- EmbeddedResourceVirtualPathProvider + Bundling with wildcards
- What does MSBuild escape in embedded resorce names
- MEF and Razor Views inside Class Library
- Embedded resources when using virtual path provider
- VirtualPathProvider issue
- Breakpoints in Embedded Razor Views not being hit when using a VirtualPathProvider
- Cannot debug EmbeddedResource views loaded via custom VirtualPathProvider
- Using custom VirtualPathProvider to load embedded resource Partial Views
- Override some Methodes of VirtualPathProvider
- Reference problems when using VirtualPathProvider to dynamically load a view
- Running a custom VirtualPathProvider with a PreCompiled website
- Reusable ASP.NET User Control Library : Virtual path provider or ascx/aspx copy?
Related Questions in STATICFILEHANDLER
- Change file root for StaticFileHandler
- Problem using custom HttpHandler to process requests for both .aspx and non-extension pages in IIS7
- Why StaticFile handler running instead of Custom handler
- Django static files on heroku
- HTTP Error 500.0 on StaticFile when using custom identity for AppPool
- Why is IIS 10 default document not working for a static file?
- Configuring IIS 7 to handle static files through a Virtual Path Provider
- Docker Nginx with Angular JS - Load Static CSS, Images, JS with dynamic url
- IIS7 Staticfilehandler changing GIF file colors
- Using self.render() in a StaticFileHandler
- Custom Http Handler in MVC 3 Application
- Start an apache server in any directory from command line
- Web hosting is telling me I need to add http handlers for static content in my web.config?
- IIS 10 serve static file truncated if being written to
- Hosting static file for Download Python Tornado
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
If I read correctly say you wanted to handle static files with the extesion pac, that is MyFile.pac from your virtual site.
Open IIS7 and go to your virtual site, in the features view double click MIME Types, then click Add.. and put in your extension and an appropriate MIME type, such as "text/plain".
This is a IIS way of doing it but like you say it could be done with a custom static file handler.
(this is assuming your static files have an extension that are not being dealt with already, as many are)