If for any reason you coudn’t be able to update your first gen iPhone with my previous guide or you just have a new 3G model and are running under windows, well this is your lucky day as you can use Winpwn the win version of Mac’s PwnageTool the software used to unlock actual iphones by Iphone Dev Team.
You can download it directly from:
Here are a couple of tutorials that may help you:
- Iclarified’s WinPwn how to for 2g - TheIphoneProject.org’s guide to WinPwn
First of all there are a couple of things that you may want to know:
- I don’t know yet how to install Installer.app in 2.0 firmware so you will loose all the great apps that can be downloaded with it.
- You will have Cydia instead, that is a great tool (an APTGET GUI for the advanced users)
- This proccess will jailbreak, unlock and activate your iphone.
- This is a hacking procedure so please do it at your own risk!
The task was, trough an HttpHandler, to output .css and .js files. It was quite simple at first, the steps to achieve this are:
- From IIS Manager register types *.css and *.js to be handled by aspnet_isapi.dll (Asp.Net proccess).
- Create a class that implements the interface IHttpHandler.
- Register in the web config the path that respond to the resource generated by out class -let’s say MyClass/file.css-.
This makes the application to behave like this: if you request the path already defined (e.g.: http://localhost/MyClass/file.css) then the clase we created takes place and outputs the appropriate file.
The issue was trying to access static .css and .js files. The .css files that didn’t match the registered path where caught by the Asp.Net default handler: DefaultHttpHandler. To make it simple it just takes the request and reverts it back to IIS. This can cause an infinite loop that prevents the file from being displayed. The weird thing is this issue happens when you map specific files with the asp.net procces, but if you just match * this never happens.
The solution was to register in the web.config the css and js files to StaticFileHandler that is an implementation of the IHttpHandler interface that just outputs files as is, without any proccessing.
I know that the title is a cliche, but as a development/tech blog I coudn’t think in a more appropriate way to say hello to my brand new blog. I’ll be blogging about tech stuff, and anything related to that. I hope this will help you.
Regards!