Thursday, September 9, 2010

A script reference cannot be included multiple times in composite script references.

Sometimes when running web pages having ajax implemented you may receive the following error message


A script reference cannot be included multiple times in composite script references.

The reason for this error message is you have more than one script manager in the page. So remove the extra scriptmanager controls


To correct the problems please consider the following steps

1. Make sure you have only one scriptmanager in the page

2. Check the masterpage if theire is scriptmanager

Element 'ScriptManager' is not a known element. This can occur if there is a compilation error in the Web Site ajax, javascript, asp.net, c#.net

When trying to implement implement ajax into your website you may receive the following error message


Element 'ScriptManager' is not a known element. This can occur if there is a compilation error in the Web Site

While trying to solve this problems you please make sure the following points

1. Please make sure ajx have installed. If you do't have please download and install from here

2. You should upgrade the file settings of your web.config with the ajax file settings

3. You should make sure Visual Studo 2005 SP1 installed

4. Install ASP.NET AJAX Control Toolkit (Optional)

Wednesday, September 8, 2010

Null is Null or not an object Jquery, javascript, ajax, asp.net, lightbox, prototype, js

Sometimes when you are opening some web pages you will receive the following error message

Null is Null or not an object

The error message is comming in the following situations

Jquery.js and prototype.js

You may be using jQuery.js and prototype.js in same html file in such case the confusion will come to the program if you are using '#' to identify jquery objects. So you replace '#' with 'jQuery' and get solve the issue

document.getElementById('') is null

Sometimes you will use a document.getElementById('') to find some controls and and will use that controls in that case you make sure the object is not null

A Runtime Error has occurred. Do you wish to debug? Error: Access is Denied

When opening some web pages which runs ajax 1.0 enabled ASP.NET 2.0 website

A Runtime Error has occurred.
Do you wish to Debug?
Line: 5
Error: Access is Denied


The reasons for this error message may be.

1. You use an iframe element in a Web page that points to another Web page
from a different domain.

2. The Web page from a different domain uses ASP.NET AJAX server controls.
You perform an action in the iframe element that triggers an
asynchronous postback operation.

3. In Microsoft Internet Explorer, you click to select the following
check boxes under Browsing on the Advanced tab in Internet Options:


Disable script debugging (Internet Explorer)

Disable script debugging (Other)

This problem occurs because the Web page that contains the iframe element and the Web page to which the iframe element points are in different domains. The AJAX 1.0-enabled ASP.NET script fails when it tries to determine the offset of the content.

To resolve this error follow the below steps

1. Make sure that the Web page that contains the iframe element and the
Web page to which the iframe element points are in the same domain.

2. Update the JavaScript files to avoid the error message. Use the external script files that exist in the AJAX Library package instead of the resource-based files that exist in the AJAX Extension package.

An unknown error occurred while processing the request on the server. The status code returned from the server was: 12031 ajax asp.net error message

Hello All

I have done a web application in asp.net 2.0

and hosted on my web server UK

Later i integrated ajax into it now i am getting

the following error message

An unknown error occurred while processing the request on the server. The status code returned from the server was: 12031

Please answer this and help me

Monday, February 8, 2010

The operation has timed - Out System.TypeInitializationException asp.net web service Ip address class

In visual studio when trying add web reference to a web service you may receive the following error message

There was an error downloading 'http://WebServerName/WebServicePath/WebServiceName'. The operation has timed-out.


Or when using ipaddress class will receive a TypeInitializationException

Unhandled Exception: System.TypeInitializationException: The type initializer for "System.Net.Sockets.Socket" threw an exception. ---> System.Net.Sockets.SocketException: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full at System.Net.Sockets.Socket.InitializeSockets() at System.Net.Sockets.Socket..cctor()


The reason for this error is

When you install a protocol or a network adapter on your computer, the operating system creates a protocol binding between the network adapters and the protocols that are installed on your computer. Typically, a computer can store up to 50 protocol binding details. Therefore, if the number of protocol bindings exceeds 50, and you use the IPAddress class directly or indirectly (such as when you try to add a Web reference or when you call a Web service method), you receive the error messages that are mentioned in the "Symptoms" section of this article.


To resolve this problem you must reduce the number of protocols binding on your computer to less than 50. Follow the following steps

1. Start->Settings-> Network and Dial-up Connections and right click any existing connection

2. Properties-> Select an unused protocol select uninstall

3. Click on yes to the propmpt

Sunday, February 7, 2010

Unable to get local copy of file web references\mappointservice\reference.cs. Visual Studio 2005 upgrades MapPoint Web Service SDK 4.1

If you are trying to open Microsoft MapPoint Web Service Software Development Kit (SDK) version 4.1 in visual studio 2005 or higher visual studio will upgrade the project and you will receive the following error message

ERROR: Unable to get local copy of file web references\mappointservice\reference.cs.

This error is comming because visual studio 2005 includes additional features for visual c#.net and vb.net which were not present in earlier versions of visual studio. Other reason is upgrade wizard does not correctly convert the mappoint SDK sample projects.

To resolve this

* Start visual studio 2005

* On the File menu, point to Open, and then click Project/Solution.

* Locate the project file (.csproj or .vbproj) that you want to open, and then
click Open.

* In Solution Explorer, right-click the name of the project, and then click Add
Web Reference.

* In the URL box, type the following URL:
http://staging.mappoint.net/standard-30/mappoint.wsdl
Click Go.

* Click Add Reference.


* Right-click the project, and then click Rebuild Solution.


REGARDS