.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Post New Web Links

XmlHttpRequest not working with Framework 4.0

Posted By:      Posted Date: September 29, 2010    Points: 0   Category :ASP.Net



In Studio '05 and '08 I've used pretty much used a standard call.. like:

ajax.open("POST", url) .. etc with a callback responce upon completion.

Works great when run locally and posted to a production server. I've started writting new code in VS '10 with the same aproach, however with some snags or a snag. Again the code works great locally, but published to either a production server or even my local desktop I get "Internal error" or not found..

The url is local on the site I'm writting... Workers/Sqlpipe.aspx

I've tried / or ~/ neither help, and it only seem to happen with 4.0, I've switched the target framework to 2.0, then 3.0 and 3.5... and the code works fine, its only with 4.0..

Please advise with any help or remidies..



View Complete Post

More Related Resource Links

XmlHttpRequest not working with iE (Working with all other browser Except IE)


Hey Friends, I am trying make 1 simple chat application like gmail,facebook etc. I am using VS 2008 and code AJAX.

I have wrtten one javascript code for sending and receiving messages from other page. Even its working fine with other browser except IE.

I am using XMLHttpRequest Object.

Here is my javascript code....

<script type="text/javascript">

var sTimeInterval;
function timedRefresh()
sTimeInterval = setTimeout("SetUrl()",4000);
function GetXmlHttpObject(handler)

var objXmlHttp = null;
if (navigator.userAgent.indexOf("Opera") >= 0)
alert("This example doesn't work in Opera")

var xmlHttp = null;
if (window.XMLHttpRequest)

objXmlHttp = new XMLHttpRequest();
objXmlHttp.onload = handler;

.NET framework 4 installation issue. - Not working in SCCM task sequence


Hi ,

I am facing two issues with .NET framework 4.

1. Initially I have wrapped the .NET framework 4 redistributable with command lines /q /norestart using wise script editor. This does work manually, but when placed in the SCCM task sequence, it fails without any information.

2. To the above issue, I tried using MSIs for .NET framework 4 instllation. But the MSIs are not getting installed individually. On install they says problem with this windows installer.

Any ideas?

framework 2.0 isnt working for one reason or anther.

For one reason or another when i try to download framework 2.0 at the last possible second it says " Error 25015,failed to install assembly 'C;\windows\microsoft.net\v2.050727\microsoft.visualbasic.dll' because of system error: 0x80131107".  I try down loading 4.0 but it still dosnt let me run my program....HELP!

.NET Framework 4 installed but not working



I run Windows 7 Professional 64bit and I have installed .NET Framework 4 from this link:


I cleaned up the %temp% folder and disabled by Avast Anti-

Multiple database support with Entity Framework

One of the features introduced in Entity Framework is being database independent. Which mean each database provider can support Entity Framework by implementing its provider.

This feature allows you build applications independent from the underplaying database provider. In this post I'm going to show how to build an application that support multiple databases using same conceptual model made by Entity Framework.

Working with SharePoint document libraries

Document libraries are collections of files that you can share with team members on a Web based on Microsoft Windows SharePoint Services. For example, you can create a library of common documents for a project, and team members can use their Web browsers to find the files, read them, and make comments. Users with Microsoft Office 2003 can check out and edit the files as if they resided on a local or network drive.

By default, your team Web site comes with a built-in document library named Shared Documents, which is listed on the Quick Launch bar as well as on the Documents and Lists page.

Creating a Generic Entity Framework 4.0 Repository

With .NET 4.0 right around the corner, I thought it would be cool to download Visual Studio 2010 beta 2 and start playing around with the next release of Entity Framework.

The initial release of Entity Framework came with a great deal of criticism. To make matters worse, there was a large uproar when it was rumored that Microsoft would be abandoning LINQ to SQL, in favor of Entity Framework. This was because, at the time, many developers felt Entity Framework was an inferior technology to LINQ to SQL. To set things right, Microsoft proactively moved forward with improving Entity Framework, in time for the 4.0 release of the .NET Framework. This is good news because my initial impressions, so far, have been nothing but positive.

ASP.NET 4.0 Dynamic Data and Many to Many Entity Framework Entities

I did not play much with Dynamic Data controls in VS2008 and just made a cool discovery in VS2010 Beta 2. This may not even be new, but as I'm sitting 30,000+ feet over the Atlantic ocean, I don't have access to VS2008 at the moment to check.

Working with DropDownList and ListBox Controls in ASP.NET

"In my application i am using dropdownlist to display all categories from a table. When the user clicks this control I display all records in that category. Category table also contains column called color.

I wanted display some categories in dropdown list different color and others in different color using ASP.NET."-Anonymous

Entity Framework 4 Tips for WinForms Development

I've been recently working on a smart client (WinForms) application backed by Entitiy Framework 4 (EF4) on Visual Studio 2010. In this blog post I will try to give you some tips regarding some limitations and points to be careful about EF4.

Bar Code Scanners with the .NET Compact Framework

Summary: Learn how to make your applications use bar code scanners in a generic way-ndependent of the specific bar code scanners that are used on different devices. Using the design patterns Façade and Factory, the implementation not only supports multiple bar code scanners, but it also makes it easy to add support for other bar code scanners. After a brief discussion about bar code scanners and the bar code scanner pattern, a download code sample, written in C#, demonstrates the use of the pattern and technologies.

Serial Communication with the .NET Compact Framework

Learn how to make your applications communicate over a serial port and how to handle common issues when implementing serial solutions. After a general discussion about serial communication and a common serial communication standard, this article demonstrates a practical use of the technologies through sample source code written in C#.

Server side validation of Fileupload control not working



I've tried this method in my code behind to try and validate that the Fileupload control has a file or not. I get the error message the the event "Server Validate" cannot be found. Can anyone tell why? Thanks.

Public Sub CustomValidator1_ServerValidate(ByVal source As Object, ByVal args As System.Web.UI.WebControls.ServerValidateEventArgs) Handles CustomValidator1.ServerValidate

' Get file name

        Dim uploadAvatar As FileUpload = DirectCast(AdvertisementForm.FindControl("uploadAvatar"), FileUpload)

        Dim UploadFileName As String = uploadAvatar.PostedFile.FileName

        If UploadFileName = "" Then
            ' There is no file selected
            args.IsValid = False
            Dim Extension As String = UploadFileName.Substring(UploadFileName.L

.net 4 framework getelementbyid for javascript without clientid


I thought I heard we would be able to get the value of an asp:textbox by id with javascript in the .net 4 framework? was I mistaken? if not does anyone know the syntax?

Row command working on all rows not selected one?



I have this code that hides a column in a gridview.  (The column houses another nested gridview).

    Protected Sub GridView1_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles GridView1.RowCommand
        If e.CommandName = "Select" Then
            If GridView1.Columns(0).Visible = False Then
                GridView1.Columns(0).Visible = True
                GridView1.Columns(0).Visible = False
            End If
        End If
    End Sub

The trouble is that if I click the select link on one row that action to hide is carried out on all rows.  How can I set this up so that it only hides the row that is selected?


upload file not working



iam using masterpage and ajax update panel, i have child page called  fileupload.aspx,i try to upload the file

but its not working , can i use updatepanel in child page , pls very urgent

looking forward for answer.

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend