• About Ken
  • Ken’s CV

All About SharePoint

~ Liedong(Ken) Zheng, Independent SharePoint Consultant

All About SharePoint

Tag Archives: IIS

401: “You do not have permission to view this directory or page.”

23 Wednesday Nov 2011

Posted by ken zheng in Tools

≈ Leave a comment

Tags

IIS

Most time the error indicates the app pool identity account in IIS may not have permission.

Fixing Error 2104: Could not download the Silverlight application. Check web server settings

07 Wednesday Apr 2010

Posted by ken zheng in .Net, Silverlight

≈ 1 Comment

Tags

IIS, Silverlight

Fixing Error: Unhandled Error in Silverlight 2 Application
Code: 2104
Category: Initializer Error
Message: Could not download the Silverlight application.
Check web server settings.

When you’re hosting Silverlight, you have to tweak your IIS6 or Appache settings to allow the server to know how to handle the extensions that it’s not familiar with. I’m sure in the future, Microsoft will encode this directly into new releases of IIS, but for now, you have to add these MIME types yourself.

.xaml application/xaml+xml
.xap application/x-silverlight-app
.xbap application/x-ms-xbap

To add the MIME types to IIS6:

1. Choose the Virtual Directory or Default Web Site in IIS
2. Open the context menu and choose “Properties”
3. Select the “HTTP-Headers” tab
4. Click the button labeled “File Types…” in MIME Map section
5. Choose “New Type” and type the extension from above into the extension field and the application type into the MIME type field.
6. After adding all 3, click “OK” then click “Apply” on the main menu. You’re done. No restart needed.

Changing The IIS Application Pool Identity For Impersonation

05 Monday Oct 2009

Posted by ken zheng in .Net

≈ Leave a comment

Tags

App Pool, IIS

Microsoft provides a tool that comes with the .Net framework that allows you to easily change the identity of a user that runs an IIS application pool.

With this method you can execute an Asp.Net web application with an integrated security SQL connection string such as:

Data Source=myServerAddress;Initial Catalog=myDataBase;Integrated Security=SSPI;

Providing the application pool user has the necessary permissions for the specified database then there will be no need to store any passwords in the web.config files.

Anyway once you have your domain user that you wish to use for the application pool run the following command:

%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis –ga [DOMAIN]\[USERNAME]

Running this command will give the specified user the correct permissions to the IIS metadata and also the cright file permissions:

However……..

Running this alone was not enough when I ran this on a couple of servers!

For some reason the aspnet_regiis tool does not set the required access on the windows\temp directory resulting in some very strange errors.

Set permissions on the %windir%\temp directory

1. View the permissions on %windir%\temp directory
2. Click on advanced to view the special permissions
3. Add a new user and enter the name of the user that is running the application pool
4. Set the following special permissions (basically the same as the Users group)
– Traverse Folder / Execute File
– Create Files / Write Data
– Create Folders / Append Data

Now you’re good to go with a new application pool user that has the right permissions!

ASP.NET, ASP.NET AJAX, jQuery, IIS Tutorial

11 Saturday Oct 2008

Posted by ken zheng in Uncategorized

≈ Leave a comment

Tags

ASP.NET, ASP.NET AJAX, IIS, jQuery

Scoot Gu has blogged a list of links to these technoloies. Check it now and refresh your knowledge
http://weblogs.asp.net/scottgu/archive/2008/10/10/october-10th-links-asp-net-asp-net-ajax-jquery-iis.aspx

Pages

  • About Ken
  • Ken’s CV

Blog Stats

  • 1,647,169 hits

.Net 3.5 5566 AJAX BCS BDC C# Calendar Content Type CSS Custom Page Document ID Fast Search favicon Feature IIS InfoPath infopath form JavaScipt JavaScript jQuery LINQ Listview Managed Property Master Page MCP MCPD migration MOQ MySite Page Layout PowerShell Proxy Search Search Scope SharePoiint 2010 SharePoiint 2010; Search SharePoin Sharepoint Sharepoint 2007 SharePoint2007 Sharepoint 2010 Sharepoint Search Silverlight Site Collection Site Definition Site Master Page site templates SPDisposeCheck SPD workflow SPSiteDataQuery SPUser SQL SSP stored procedure STSADM survey Tab TechEd Tech ED TSQL User Profile User Profiles Synchronization Service;SharePoint 2010 vs 2008 vs 2010 vs2010 WCF web.config webpart Web Part Web Service windbg workflow XML XSL XSLT

Archives

  • March 2016
  • April 2014
  • March 2014
  • February 2014
  • December 2013
  • October 2013
  • September 2013
  • March 2013
  • February 2013
  • August 2012
  • June 2012
  • May 2012
  • April 2012
  • February 2012
  • January 2012
  • December 2011
  • November 2011
  • October 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
  • March 2011
  • February 2011
  • January 2011
  • December 2010
  • November 2010
  • October 2010
  • September 2010
  • August 2010
  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008

Twitter Updates

  • @_hotham Hi, I have purchased lift passes to my boy who is 14. and then I realize that kids lesson will include lif… twitter.com/i/web/status/1… 5 months ago
  • @telstra @outage @3125 internet cable still not working since 8:30 am 1 year ago
  • @Telstra is internet cable service still down in Burwood Vic 3125? Have been issue for a day! 1 year ago
  • Anyone uses @Nintex Workflow for SharePoint online has email issue? all our external email actions are hanging since yesterday. 1 year ago
  • @Nintex Hi, is your Workflow External Email service is down? Since yesterday afternoon, no email being sent out usi… twitter.com/i/web/status/9… 1 year ago
Locations of visitors to this page

Blogroll

  • E-books Library
  • My Linkedin
  • SharePoint Community
  • SharePoint Developer Center
  • Silverlight Show
December 2019
M T W T F S S
« Mar    
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

Blog at WordPress.com.

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy