Sunday, October 27, 2013

Access Denied on Create Self-Signed Certificate

So, While creating a self signed certificate, I got "Access denied" error message.







I was logged in with my admin account, but I still need to grant "Modify"  rights on RSA/Crypto folder.

BTW, In 2008 R2, RSA folder is in c:\ProgramData\Microsoft\Crypto\RSA, and needless to say ProgramData is a hidden folder


Tuesday, October 22, 2013

HTTP Error 401.3 - Unauthorized

HTTP Error 401.3 - Unauthorized
You do not have permission to view this directory or page because of
the access control list (ACL) configuration or encryption settings for
this resource on the Web server.
 
We have a Web application with Forms Authentication, and any export from the website
resulted in above error.

In the beginning, all we got was generic 401 - Unauthorized acess
 

I had to go to IIS,Default Web Site -> Error Pages ->Edit Feature Settings -> and check 
"Detailed errors" and NOT  "Detailed errors for local request...."

Once that's done, I got this instead of generic 401, I got 401.3
 
 

To resolve this

1) I checked my application pool, it was using Application Pool Identity

2) So, on my web site, I clicked on Anonymous Authentication (make sure that its enabled),
Edit, change the identity from specific user to "Application Poool Identity"




















































 
 
3) IIS Reset, and no more 401 Errors
 
Hope this helps...
 

Tuesday, October 15, 2013

Conext.Session is Null in ProcessRequest of Generic Handler

I couldn't figure out for a while, why context.Session was always null in my Generic Handler.

I was trying to save my dataset in the session, and it kept failing with "object reference not set to an instance of an object"

In order for the session state to be available to a handler, you need to implement "IRequiresSessionState". So the following fixed it

public class Export : IHttpHandler,System.Web.SessionState.IRequiresSessionState
{
   
    public void ProcessRequest (HttpContext context)
    {

....
context.Session["DataSet" ] = ds;
....
}
}


Sunday, September 29, 2013

Update Logitech Media Server on WD LIVE NAS

Login to NAS using putty ( please refer to earlier post) here

uninstall LMS

/etc/init.d/logitechmedia stop

apt-get remove --purge logitechmediaserver

reboot


login again

cd /DataVolume/shares/Public
aptitude update
wget wget http://downloads.slimdevices.com/LogitechMediaServer_v7.7.3/logitechmediaserver_7.7.3_all.deb
dpkg -i logitechmediaserver_7.7.3_all.deb