Search This Blog

Wednesday, October 22, 2014

SharePoint 2010 .htm files prompts user to download the file

Issue Description
When the user click on a .htm file in SharePoint site , user will be prompted to save the file rather than the file opening in the browser.

Solution
1) Open Central Administration -> Manage web applications -> Select web application -> General Settings

2) Web Application General Settings -> Browser File Handling ->Strict. Change this to Permissive



Workaround

Rename your files with .aspx extension (*.aspx)

Thursday, October 9, 2014

Moving IIS SMTP Directory to a different drive location

After installing the SMTP server for enabling SharePoint incoming email feature, I had noticed that the IIS SMTP directories are by default placed in the location: C:\inetpub\mailroot
I wanted to move this to E: drive. 



The general command to do this is :
cscript.exe [directory]/[file.vbs] set smtpsvc/1/[command] [dir destination]

Below are the steps to do this:

1. Browse to Internet Information Services (IIS) 6.0 Manager
2. Right-click Default SMTP Virtual Server and Stop


3. Create the new folder locations (Copy the current inetpub folder to a different drive/partition) or manually create the necessary folders
4. Open command prompt (Run as administrator)

cd C:\inetpub\AdminScripts

Cscript.exe adsutil.vbs set smtpsvc/1/dropdirectory E:\inetpub\mailroot\Drop
Cscript.exe adsutil.vbs set smtpsvc/1/badmaildirectory E:\inetpub\mailroot\Badmail
Cscript.exe adsutil.vbs set smtpsvc/1/pickupdirectory E:\inetpub\mailroot\Pickup
Cscript.exe adsutil.vbs set smtpsvc/1/queuedirectory E:\inetpub\mailroot\Queue


6. Browse to Internet Information Services (IIS) 6.0 Manager
7. Right-click Default SMTP Virtual Server and Start


Propellerads