Monday, January 19, 2009

Make sure the application for the file type (.aspx) is installed.

After I created new WebSite in VS 2005 I'm getting this error

---------------------------Microsoft Visual Studio---------------------------

There is no editor available for 'C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\WebSites\WebSiteUpload\Default.aspx'.
Make sure the application for the file type (.aspx) is installed.

---------------------------OK ---------------------------

Solution:

run from a Visual Studio Command Prompt, type "devenv.exe /setup" and then "devenv /resetskippkgs" (without the quotes)

Thursday, January 08, 2009

It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.

Error

"It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS."

This is the error message caused when I developed the ASP.NET application my development server. After few analysis I found that web.config should be moved to root directory from the sub directory. If you all want to have a web.config in the sub-directory, then the only settings you can specify are authorization, appsettings etc., Another root cause for the problem may be you may have one duplicate web.config file in a subfolder.

ASP.NET MVC - Sport Facility Booking system

  The project relies on some external service providers. Thus accessing them via their API requires authentication. An API Key need to be su...