ASP.NET Calendar - Knowledge Base

« Back to Knowledge Base list

Problems referencing the JavaScript file / Missing JavaScript file

Q:

I am using the Calendar and received a runtime error:
"There was a problem referencing the obout Calendar javascript file..."

I don't see any JavaScript file in the Calendar folder at all and I've downloaded the latest version.

What should I do?


A:

The message can appear if your web application doesn't correctly reference the web resource files.
In this case we suggest to change your IIS settings.

Follow these steps:

On the server, where this error occurs,

1. Open IIS console and go into the properties of your website.
2. Switch to "Home Directory" tab.
3. Click on "Configuration" button under "Application Settings"
4. In a new window go into "Mappings" tab.
5. Copy (into notepad, for example) all values for .aspx extension.
6. Click "Add" button to add a new entry.
7. "Executable" field is the same as the path for .aspx extension
(example: c:\windows\microsoft.net\framework\v2.0.50727\aspnet_isapi.dll)
8. "Extension" field must be ".axd"
9. Verbs are limited to "GET,HEAD,POST,DEBUG"
10. UNcheck "Verify that file exists" (important that it is unchecked)

Click OK on all open dialogs.  This should now reference web resource  files correctly.


If you still have that message then you need to reference the Calendar script files manually.

You can 
download the JavaScript file of the Calendar from here:
http://www.obout.com/DLL/temp/Calendar/JavaScriptFiles/Calendar_JS_Files.zip
Then you need to reference the .js file from the <head> section of your page:

<head>
 <script type="text/javascript" src="scripts/oboutCalendar2.js"></script>
 ...
</head>