iis not returning .json file

 

 

ERROR

The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map. error when requesting json

 

RESOLUTION

By default, IIS in W2K3 and above won’t serve files that aren’t of a MIME type that it knows about (instead returning 404 errors).

You need to add a MIME type to IIS to allow it to serve that type of file. You can set it at the site level or at the server level.

To set this for the entire server:

  • Open the properties for the server in IIS Manager and click MIME Types
  • Click “New”. Enter “JSON” for the extension and “application/json” for the MIME type.

Ref: http://stackoverflow.com/questions/332988/get-iis6-to-serve-json-files-inc-post-get

 

Default App Pool in IIS 7 stops when localhost/ is hit from the browser

Default App Pool in IIS 7 stops when localhost/ is hit from the browser

  1. http://stackoverflow.com/questions/13322937/iis-http-error-503-the-service-is-unavailable

 

In eventvwr I see:

The description for Event ID 5059 from source Microsoft-Windows-WAS cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

 

If the event originated on another computer, the display information had to be saved with the event.

 

The following information was included with the event:

 

DefaultAppPool

 

WAS is: http://msdn.microsoft.com/en-us/library/ms734677(v=vs.110).aspx

I tired changing the app pool to 2.0  f/w and also installing the .net f/ws using aspnet_regiis.exe /i

But no luck.

BEST: http://stackoverflow.com/questions/19652709/http-error-503-the-service-is-unavailable-app-pool-stops-on-accessing-website

I then turned off and on the WAS using turn windows features on/off (http://technet.microsoft.com/en-us/library/ee323462(v=office.13).aspx ) ..in turning on I see this in eventvwr

 

The description for Event ID 10010 from source Microsoft-Windows-DistributedCOM cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

 

If the event originated on another computer, the display information had to be saved with the event.

 

The following information was included with the event:

 

{A9E69610-B80D-11D0-B9B9-00A0C922E750}

 

IIS Quirks and Tips

1.       To run any application under an App Pool That’s been configured with a Account, first make sure that the account exist in the Directory (Local or Remote) group and next make sure it’s added in the IIS_WPG Group in Local Users And Groups ( go to manage from rt clk on My Comp)

2. At times u’ll see that the chages made to the iis settings don’t persist post iisreset. I have faced this many times with IIS 6. The best way to deal with this is to first do:

  1. On the task bar click Start, point to Programs, point to Administrative Tools, and then click Services.
  2. Right-click IISAdmin Service and click Stop.

Then make the changes in inetmgr and then do iisreset. This will store the metadata and also restart the IIS Admin Svc.

You may want to double check if the changes have persisted and that the IIS Admin svc is running though.

ref: http://support.microsoft.com/kb/286196

IIS Performance

BASICS

  1. Does iis handle only 1 http request at a time?
  2. how to make my web service on iis process multiple requests simultaneously
    1. http://stackoverflow.com/questions/587420/iis7-only-serves-up-one-page-at-a-time-its-a-making-me-crazy
    2. Does IIS 7 have limit of simultaneous requests?
      1. http://stackoverflow.com/questions/2147351/does-iis-7-have-limit-of-simultaneous-requests
      2. Does web app limit the no. of simultaneous requests to the same host?
        1.  http://stackoverflow.com/questions/4214621/multiple-calls-to-the-same-web-service-blocking says that it Does: .NET limits enforces a limit of 2 concurrent web requests to a single host. The limit affects all threads in the process, in case of ASP.NET even different applications running in the same application pool.
        2. http://support.microsoft.com/kb/821268: This problem might occur because ASP.NET limits the number of worker threads and completion port threads that a call can use to execute requests.
        3. http://stackoverflow.com/questions/7849884/what-is-limiting-the-of-simultaneous-connections-my-asp-net-application-can-ma
        4. http://stackoverflow.com/questions/14333593/scalability-issue-when-using-outgoing-asynchronous-web-requests-on-iis-7-5
        5. http://stackoverflow.com/questions/7849884/what-is-limiting-the-of-simultaneous-connections-my-asp-net-application-can-ma

Experience

  1. At first we had done a huge amount of logging done by our Web App within IIS. Once we disabled this, our performance increased by almost an order of magnitude.

Amazon Web Services

I read here that:

Amazon is a perfect example, actually. At some point Bezos insisted that every part of Amazon’s code base had to be an API and respond to web requests. Article here: apievangelist.com/2012/01/12/… . You can see this when you log in — Amazon uses OpenID for its own login system! Most websites use a built-in system for login. One advantage is that I think they can use the same login for all of their sites and services.

And

One of the most successful implementation of SOA was at Amazon. Because of their design, they could re-package their whole infrastructure and sell it as Amazon Web Service.

 

Hence I was curious to find out about it.

 

Ref: Wiki

Amazon Web Services (abbreviated AWS) is a collection of remote computing services (also called web services) that together make up a cloud computing platform, offered over the Internet by Amazon.com. The most central and well-known of these services are Amazon EC2 and Amazon S3. The service is advertised as providing a large computing capacity (potentially many servers) much faster and cheaper than building a physical server farm.

Officially launched in 2006,[1] Amazon Web Services provide online services for other web sites or client-side applications. Most of these services are not exposed directly to end users, but instead offer functionality that other developers can use in their applications. Amazon Web Services’ offerings are accessed over HTTP, using REST and SOAP protocols. All services are billed based on usage, but how usage is measured for billing varies from service to service.

Personal

I have used AWS in the past to host my .Net web Svc and App on their IIS servers

Subs to : http://aws.typepad.com/

CREATE FREE ASURE WEBSITE

The only reason that I’m doing this is to be able to check out the new Monoco Web Editor ….

What I  really want to do is:

1.       Create a VS Online Project

2.       Code using VS 2013

3.       Deploy the service on Asure

4.       Debug the client (and remote Asure svc using remote debugging)

5.       Do code change in Asure using Monaco

It is shown here: http://weblogs.asp.net/jgalloway/archive/2013/11/13/a-quick-look-at-the-new-visual-studio-online-quot-monaco-quot-code-editor.aspx

Anyways, now that I don’t have credit card I can’t sign up for Asure..so that’s that… for now..

 

 

–>

Register a domain name

register a domain name – Google Search.

I tried out ;

1. Register.com : $5/yr = Rs 350

2. godaddy.com : 589/yr

Here i see options like hosting and website builder, which i quickly found to be sucky…

anyways, so what to do after buying a domain ?

Buy a web hosting service to provide your online space and enable you to get your website online at your purchased domain name.

You can either find a hosting service (some are free, some are cheap and some are expensive) that will also host your domain name.The web hosting place is where you store your website files.

Alternatively, you could host it yourself. You could install something like Apache on a separate PC, and setup your router to send HTTP requests to that server. You’ll need a fixed IP address though – your ISP may not want to give you one, or may charge for it.

You upload you website files that you designed (or had designed) to your web hosting account via FTP (file transfer protocol). You can get free software for transferring files to your computer to your website by downloading files from CoffeeCup or FileZilla.

MOre Advanced options : 11 Things to Do After Buying a Domain Name