HttpHandlers / Modules :: Adding MIMEType For .msg (MS Outlook) Files?
Apr 21, 2010
I have an asp page that allows users to view documents, so far all document type are working great. But when I try to open an .msg file It doesnt know what program to use. I did some digging and found that this is probably because the MIMEType is not listed in my IIS. I know I need to add .msg "application/vnd.ms-outlook" But the MSDN post that I read said to open up the IIS MMC and right click on the local computer listed and go to properties. Properties does not appear as an option for me on the local computer list (I am assuming that this is because I am running IIS 5.1 on an XP machine, rather than IIS 6) I did find another post where someone said to do the following:
right click on my app
-> HTTPHeaders
-> File Types
->Insert values ".MSG" and Content Types as "application/vnd.ms-outlook"
->Apply
I was able to do this, but it did not fix the problem. how to add an MIMEType correctly in IIS 5.1?
View 1 Replies
Similar Messages:
Nov 18, 2010
Is it possible to add a messagebox to an ASHX Handler? I used a handler to pass data from a Web Service to an internal system and need a messagebox to pop up to ask the user to choose from one option or another.
View 2 Replies
Dec 20, 2010
IE and Firefox (but not Chrome and Opera) not downloading the whole installer sometimes. File should be about 10 MB but is about 5-7 MB after download.I had written source code to download file as diffrent name than name in filesystem which may be the source of trouble. This is my code:
[Code]....
View 3 Replies
Feb 22, 2011
Is it possible to execute files from a different site in IIS than the one that's actually served? My problem is that my webhost allows for subdomains, but couples the subdomain with another folder than the default folder..
When opening domain.com i get the files from public_html on the ftp, but opening test.domain.com gets me the files from the test-folder
I need the subdomain to execute the files from public_html, but the support says that's not possible :( I was hoping some of the brilliant minds in here might have an idea.. I can of course add files and code to the subdomain-directory, but I wouldn't know what to write in like a httpmodule or something like that
I don't know which security settings that comes into play here, all I know is that the server is running IIS ASP.NET 4.0
View 1 Replies
Oct 29, 2010
I need to access image files (.jpg) on a server other than the web server my app runs on. I would like to use an httphandler to do this but I am unsure of the syntax to specify the path. I have tried mapping a drive on the web server to the file server but that didn't work. I have tried using a UNC path but that did not work either.
View 1 Replies
Jul 20, 2010
I am trying to call a webservice that requires me to authenticate and then pass the session id returned from the authenticate method to subsequent web service calls. The session id has to be passed as HTTP request header. So I tried using the following code to add the session id to a HTTP request header:
System.Collections.Specialized.NameValueCollection headers =
HttpContext.Current.Request.Headers;
Type t = headers.GetType();
//get the property
System.Reflection.PropertyInfo p = t.GetProperty("IsReadOnly",System.Reflection.BindingFlags.Instance
| System.Reflection.BindingFlags.IgnoreCase | System.Reflection.BindingFlags.NonPublic
| System.Reflection.BindingFlags.FlattenHierarchy);
//unset readonly
p.SetValue(headers, false,
null);
//add a header
headers.Add("Cookie",
"SID=" + sessionId );
The header is supposed to be called "Cookie" and the SID contains the session id. The problem is the last line in the code above gives an exception saying "Operation is not supported on this platform". I am running this code on my dev machine with with Windows XP Professional Service Pack 3 and IIS 5.1. I haven't been able to find any solution to this problem after days of searching. I also tried to deploy my web app on IIS directly but had the same error.
View 2 Replies
Oct 4, 2010
I have a problem with large respones and IIS7, the server runs out of memory. I've written the test code below that works pretty much like my real code... When i start to download the file i can se the memory usage rise until it hits 100% and Firefox complaints about lost connection to server, looks like IIS7 does not release cache or something.. Works in IIS6 by the way
[Code]....
View 2 Replies
Mar 4, 2011
I just bought an old domain name and am looking to redirect as many old URLs as possible to acquire backlinks intended for the original owner for pagerank reasons. The original site had a lot of static pages ending in .htm which need to be redirected to directories. I use httpcontext in my Global.asax file to initiate 301 redirects and this works great on folder names or .aspx files, but whenever I try to redirect a .htm it fails.
Sample code:
if (HttpContext.Current.Request.Url.ToString().ToLower().Contains("http://www.example.com/oldpage.htm"))
{
HttpContext.Current.Response.Status = "301 Moved Permanently";[code]....
I also tried using my Parallels H-Sphere interface provided by my hosting company to do a IIS redirect, but whenever I hit submit the page just starts an infinate loop of sending a request.
View 7 Replies
Nov 28, 2010
When I have a HttpHandler class in C#/ASP.NET mapped to a file extension in IIS any file with that extension fails to download/display in web browsers (it's downloaded as a 0-byte file in some browsers and nothing at all in other browsers). After removing the application mapping for the HttpHandler in IIS so it doesn't call the IHttpHandler class in C#, the web browser downloads the file successfully.
This was tested with an IHttpHandler class in C# that has an empty ProcessRequest method.
View 2 Replies
Jan 26, 2010
After adding a custom module, Module list is showing MyModule "Entry Type" as "Local".
and Entry Type of all other modules is "Inherited".
what is Entry Type and difference between "Local" and "Inherited"?
View 4 Replies
Jun 8, 2010
is httpmodules executed each and every time in request and response cycle ?? if Yes is it possible to disable a specific http module ??
View 3 Replies
Feb 7, 2011
How do we findout the whether the application is using any HTTPModules and httphandler in the applicaion?Is there anyway to findout from the url without checking the web.config file?
View 1 Replies
Jul 2, 2010
I got a website [URL] and I want to redirect http://www.example.com/folder to http://folder.example.com so if
folder has a page called example1.aspx [URL]
It should be called in this way:
http://folder.example.com/example1.aspx Is that possible that using IIS 7 and asp.net 4.
View 2 Replies
Mar 3, 2010
what is httphandler?what is the use ?
View 7 Replies
Apr 1, 2010
I have a HttpModule that rewrites the url:
eg: Folder/StaticPage.aspx?PageName=TestPage is re-written as
Folder/TestPage
This works fine on my local dev. machine on the Cassini server. But when its hosted in IIS (5.1 & 7.0) it fails to work, with the error as 404 Page Not Found.
View 3 Replies
Jan 24, 2010
I have written simple http module just to print Hello. but it is not working.
View 10 Replies
Oct 19, 2010
I am using Httphandler to access my pages. Have Loginstatus Control on the master pages.
OnLoggingOut for the Loginstatus control I am doing a Session.abandon()... But My session_end
does not get called in the Gobal.asax.I tried link button and everything. but when I take out the httphandler the Session_end gets executed in global.asax
I can handle the full session end on my own but is there any way to call Session_end in global.asax?
View 2 Replies
Feb 24, 2010
If I have an & in the URL I get a bad request. I have followed the instructions at [URL] but still no luck. If I remove
[Code]....
from web.config it works. Encoding the URL does not help.
View 7 Replies
Apr 22, 2010
I am trying to attach a pdf to a MailMessage, but it is not a file, rather it is a web page.
Allthough the pages respondes the PDF normaly, when I am attatching the IO.Stream to MailMessage, it is only 300B, so it cannot be opened.
This is the code:
[Code]....
Also I tried this one, but failed too:
[Code]....
View 2 Replies
Jan 4, 2011
I wants to url rewriting like as subdomain.
For example my website is website.com so that now i wants to url rewriting like
client1.website.com ,
client2.website.com,
client3.website.com,
clientN.website.com
In my website there are list of client whenever click on client my url like this
website.com/client.aspx?client=client1
website.com/client.aspx?client=client2
website.com/client.aspx?client=client3
website.com/client.aspx?client=clientN
Now i wants to url rewriting like as
client1.website.com
client2.website.com
client3.website.com
clientN.website.com
Also whenever once client is registered,After that client can directly open site
View 1 Replies
Jun 16, 2010
I have created my url rewrite handler and its working fine, but on live site i have IIS 6
and its not accepting the subdomain requests
when i type
http://website.com
it works fine but with
http://sub.wesite.com
i got the error Server not found
View 2 Replies
Jun 28, 2010
the project i'm working right now, client wants to make url seo friendly, if any event would enter from the admin section the url should show the name of the event itself.
right now it shows www.--------.com/eventdetails.aspx?id=879878
but the client wants www.---------.com/eventname/
the event comes dynamically every day.
View 3 Replies
Mar 31, 2011
I would like to perform HttpWebrequest every 10 min in my website. Right now it is performing onbutton click.
View 1 Replies
May 28, 2010
This can be accomplished by overriding the Application_BeginRequest method in the Global.ascx file:
[Code]....
View 2 Replies
Jan 15, 2010
How do I url rewrite without id in Address Bar?
Example:
[URL]
I don't want this..
[URL]
Is it possible?
View 6 Replies