Password Protect a single aspx page

2. January 2012

 

In IIS 7 you can either password protect a folder or password protect a specific page. When you password protect a folder all the files or objects within that folder will be password protected. However there maybe some instances where you do not want to password protect the entire content of that folder but merely a single page. To achieve this simply follow these steps.

 

  1. Connect to the web server using IIS 7 Manager.

  2. Click on “Content View “at the bottom of the IIS 7 Manager and navigate to the file you want to password protect.

  3. Right click on the target file and choose “Switch to Features View”.

  4. Double click on Authorization Rules.

  5. Click “Add Deny Rule”.

  6. In the pop up dialogue box, select “All anonymous users”.

  7. Click “OK”.

 

The web.config will now have this element inputted into it. Bear in mind that you do not have to go through IIS 7 Manager to achieve this. You can directly go to your applications web.config file and input the proper elements and properties to password protect a specific page.

 

<locationpath="file1.aspx"><system.webServer><security><authorization><addaccessType="Deny"users="?"/></authorization></security></system.webServer></location>


Bookmark it!

.NET, C#, IIS 7.0, , ,


Cleanup Windows 7 and Windows Server 2008 R2 SP1 Backup Files

16. November 2011

If you’ve installed service pack 1 for Windows 7 or Windows Server 2008 R2 and you’re happy you won’t need to uninstall it,

you can cleanup the service pack backup files by running the command below from an elevated command prompt.  This uses the Deployment Image Servicing and Management (DISM) tool.

Go into C:\Windows\System32

DISM.exe /online /Cleanup-Image /spsuperseded

The command freed 1.6GB on my Windows 7 desktop and 1.8GB on a Windows Server 2008 R2 Std server.

 

You can do the same for Windows Vista with vsp1cln.exe for service pack 1 and compcln.exe for service pack 2.

by running the following command:

vsp1cln.exe and compcln.exe

 

If you want to remove the windows update files create following:

A Batch file with:

@echo off
net stop wuauserv
rd /s /q C:\Windows\SoftwareDistribution
net start wuauserv
pause

Execute it.

 

Happy Reducing.



Bookmark it!

, , ,


IPhone and IPad Apps

10. June 2011

I have developed an IPad App for Teamspeak version 3.

It's in beta state, so just take a first look on it:

 

Screenshots can be found here: Screenshots

New Video can be found here: Video

 

Have fun Laughing

 



Bookmark it!

App, IPad, IPhone, Objective-C, , ,


NEW Version 3.8 TeamSpeak Sidebar Gadget für Windows Vista und Windows7

8. March 2011

I recommend you update to the latest version 3.8.

 

Screenshots can be found here: Screenshots

New Video can be found here: Video

Documentation can be found here: Documentation

Have fun Laughing

Download Sidebar Gadget Teamspeak 3.8



Bookmark it!

.NET, ajax, javascript, Sidebar Gadget, webservice, ,


Windows Media Connect on Windows Server 2008

26. November 2010

Here's how you do it:

1. Find a copy of Windows Media Connect 2.0, this is no longer provided my MS but can still be found around the web. Another place you could potentially find it is in the file umupnp.exe on the Windows Home Server installation media.


2. Now out of the box this won't install on Windows Server 2008, so don't bother trying, you need to extract the files from the archive. 


3. Create a folder, for example C:\Program Files\Media Connect


4. Copy the following 3 files which were extracted from the archive mentioned in the last step into your new folder: wmccds.exe, wmccfg.exe, wmcsci.dll


5. Run regsvr32 "C:\Program Files\Media Connect\wmcsci.dll"


6. Run "C:\Program Files\Media Connect\wmccds.exe" -installwithfiles


7. Run sc config "WMConnectCDS" depend= none


8. Run sc config "WMConnectCDS" depend= upnphost/HTTP (These 2 commands are essentially an easy way to remove the HTTPFilter service dependency which does not exist on Server 2008. It's functionality now resides in HTTP, I could of done this from the registry as well but in my experience that requires a reboot)


9. Enable the SSDP Discovery Service by setting it to manual startup from the GUI or using sc config "SSDPSRV" start= demand


10. Enable the UPNP Host Device Service by setting it to manual startup from the GUI or using sc config "upnphost" start= demand


11. Run wmccfg.exe and do the initial setup.


From this point you've got media sharing running that is basically the same as the WMP sharing feature (maybe even a bit more appropriate for a Server environment), and it can be reconfigured using wmccfg as needed.

As a side note this works for both x86 and x64 versions (including Server 2008 R2). It also works in Vista and Windows 7 as well for anyone who wants to avoid Media Player on their desktop and still use Media Connect sharing.

Enjoy.



Bookmark it!

General