How to register .SVC on IIS.
1. Go to Visual Studio Command Prompt and run below
command
aspnet_regiis.exe -i
2. Manually Navigate to below folder
C:\Windows\Microsoft.NET\Framework\v3.0\Windows
Communication Foundation
3. Run below command
servicemodelreg -i
4. Restart WWW on Windows
Services
5. This should bring up .svc on IIS
Safari Issues with IPAD/IPHONE
Safari uses different HTTP User-Agent strings depending on context!
The iPad (and iPhone/iPod Touch) don’t use the same HTTP User-Agent string when a website is accessed normally via the Safari application versus a webpage that was saved to the home screen (which still uses Safar internally). Here’s an example:
Normal Safari: Mozilla/5.0 (iPad; U; CPU OS 4_3_3 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2
Website as app: Mozilla/5.0 (iPad; U; CPU OS 4_3_3 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Mobile/8J2
ASP.NET doesn’t recognize the latter as being Safari – it recognizes it as a generic browser with no capabilities. As an example: Supports JavaScript? Nope.
Add this hack to your base page to fix it. It makes ASP.NET think that anything based on AppleWebkit is a newer browser
protected void Page_PreInit(object sender, EventArgs e)
{
if (Request.UserAgent != null && Request.UserAgent.IndexOf("AppleWebKit",
StringComparison.CurrentCultureIgnoreCase) > -1)
{
this.ClientTarget = "uplevel";
}
}
Display your web site nicely in iPads / iPhones
- ensure there's no vital flash objects on the page as it isn't supported by many mobile browsers (yet?)
- appropriate screen size (using viewport meta tag)
- keeping in mind that there's no mouse cursors, meaning no hover/double-clicks are available any mouse dragging gestures are different on touch devices
- remember all pop-ups are open in new tabs and won't be seen at the same time as the main window, use javascript modal divs as alternative
- test all your javascript and css to ensure everything looks and works the same (Safari requires -webkit- prefix for the newest CSS properties)
- create a Home screen icon for your website (a nice thing to have)