Setting the ContentType for content published using a VirtualPathProvider

J

Jan

Is it possible to set the ContentType for the VirtualFile-descendant that a
custom virtual path provider returns in response to a call to its GetFile
method? Right now, web browsers tend to misinterpret the XML-data I return,
because I cannot specify that the content type is text/xml.
 
J

Jan

Thanks, Bruce!

Perhaps I misunderstood your reply - if I'm running my code directly from
Visual Studio 2005, using the built-in development web server, where can I
set MIME mappings?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,152
Members
46,697
Latest member
AugustNabo

Latest Threads

Top