VS 2008 - PageMethod Not Working "The Server Method Testing Failed"

Oct 28, 2010

I have a master page/content page going on in this situation. The page has two page methods that work, and they feed info to a pair of autocomplete extenders. The script manager on the Master Page has 'EnablePageMethods' set to true. The content page has a ScriptManagerProxy. The strange thing is that I have used this pattern on four other pages within the project.

<System.Web.Services.WebMethod()> _
Public Shared Function testing(ByVal uid As String, ByVal issn As String, ByVal journalName As String) As String
Return "true"
End Function

Here is the javaScript code:

function AddJournal(uid, issn, journalName) {
alert("uid: " + uid + " issn: " + issn + " name: " + journalName);
PageMethods.testing(uid, issn, journalName,
function(res) {
if (res !== "true") {
alert(res);
} else {
alert("The journal " + name + ", issn as " + issn + " was successfully entered.");
}
return;
},
function(res) {
alert("The journal database could not be accessed
" + res.get_message() + "
Status Code: " + res.get_statusCode() + "
Exception Type: " + res.get_exceptionType() + "
Please try again.");
});
}

The fail function is executed, and the status code is 0 (zero), and the exception type is an empty string. I can change the function with no parameters, and I get same error. I can the leave the parameters at three on the VB side, and change the parameters to two on the client side; then I do not get the error message, but none the other alerts are executed.

View 3 Replies


Similar Messages:

AJAX :: PageMethod And Server Method Failed Error?

Jun 14, 2010

I have a long running PageMethod defined in the cs that is being called from javascript and after 4 minutes I am getting the below error and 504 status code for my aspx page and onFail callback is raised.

<HTML><HEAD>
<TITLE>Gateway Timeout - In read </TITLE>
</HEAD><BODY> [code].....

View 2 Replies

AJAX :: Pagemethod Authentication Failed?

Mar 3, 2011

I have a page that requires user login via Forms Authentication. Is it possible to use Page Methods in this page? My current attempt is resulting in the following error:Message: Sys.Net.WebServiceFailedException: The server method 'GetPlanContent' failed with the following error: System.InvalidOperationException-- Authentication failed.

View 2 Replies

Security :: The Server Method 'Login' Failed?

May 7, 2010

I'm trying to use ASP.NET MembershipProvider from an Ajax client (only html, css, js) (login.htm) by using a WCF service (AuthenticationService.svc). When running login.htm I get "Microsoft JScript runtime error: Sys.Net.WebServiceFailedException: The server method 'Login' failed with the following error: -- The server method 'Login' failed."I'm completely stuck what goes wrong here?login.htm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

[code]...

View 4 Replies

VS 2008 Pagemethod When Creating New Record?

Oct 21, 2010

I have a pagemethod that saves data to my database. Initially I worked on editing an existing record. So I'd load a page by adding the FileNumber to the url:

Code:
[URL]

for example. Then on the click of my save button I send all the textbox ojects etc to a javascript function which then gets the values to save, and passes them to my pagemethod. I did this so I won't have to have refresh the page each time a user updates the file. ajxaified it in other word. Now whan creating a new record, I pass -1 as the fileNumber in my querystring. I do this so in my code, I will know it is a new record and I will write the required logic. However once the new file is created, I get the its primary key value by using SCOPE_IDENTITY(). then unless I refresh the page from my javascript function the url will remain

Code:
[URL]

View 16 Replies

Javascript - Pass Multiple Parameters To OnSuccess Method Of PageMethod?

Dec 9, 2010

I'm calling PageMethod "SameMethod" from javascript method "caller" so that I can get some values from DB. After I get values, control is continuing in "onSuccess" method. Problem is that I need to use some variable values ("importantValue") from javascript method "caller" in "onSuccess" method.


function caller(){
var importantValue = 1984;
PageMethod.SomeMethod(param1,..., onSuccess, onFailure)
}

onSuccess method should be something like this:

function onSuccess(pageMethodReturnValue, importantValue ){
}

Is it possible and, if it is, how to pass multiple parameters (besides return values of page method) to "onSuccess" method of PageMethod?

View 2 Replies

Security :: Failed To Connect Sql Server 2008 On The Same PC?

Mar 12, 2010

In the VS2008, everything works just fine. But after deploy app to the IIS7, tried to access SQL Server 2008 on the same PC, I got the following errors:

[SqlException (0x80131904): Login failed for user 'NT AUTHORITYNETWORK SERVICE'.]
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +4846887
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +194

[Code]....

View 4 Replies

VS 2008 - Logon Failed Due To Server Configuration

Sep 7, 2011

I am using Integrated Windows authentication and Role based authorization.The web.config file has two Active Directory groups.Sample code of web.config file for Role based authorization (Actually I got this sample code from a moderator of this site Gary works well).

Code:
<location path="Bloodgroup.aspx">
<system.web>
<authorization>
<allow roles="MedcenterGroup1"/>
<deny users="*"/>
</authorization>
</system.web>
</location>

So user's who doesn't belog to "Group1" AD group, should get Unauthorized error. It works exactly like that. But, before getting unauthorized error, it shows a pop up screen (as shown in the attached picture) prompting to put userid and password. If a user in AD group "Group1" accesses "Blood group. aspx" page, popup message doesn't come which is correct. Following is the code in web.config file to handle errors:

Code:
The <customErrors> section enables configuration of what to do if/when an unhandled error occurs during the execution of a request. Specifically, it enables developers to configure html error pages to be displayed in place of a error stack trace. -->

<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="401" redirect="Errors.aspx" />
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>

Question 1: why does the popup box prompting user id and password comes up?
Question 2: I have put in web.config file in customErrors tag to direct to Errors.apsx page when I get 401.2, it should be redirected to Errors.aspx page. But it is not getting re-directed.

View 17 Replies

Using WindowsIdentity.GetCurrent() Failed In Windows Server 2008 R2?

Dec 7, 2010

I have an asp.net 2.0 application that is suppose to pick the Identity of the currently logged in user on a client machine and use it to setup working environment for the user. On win xp and windows server 2003 this works fine. but on moving the application to Windows Server 2008 R2 .

View 1 Replies

SQL Reporting :: Make Spider Charts Using Sql Server 2008 As The Database And Working With Visual Studio 2008?

Aug 10, 2010

I want to make spider charts like this one: [URL] I want to know can I prepare it using reporting service 2008? I am using sql server 2008 as the database and working with Visual studio 2008.

View 4 Replies

AJAX :: PageMethod Not Working With IIS6

Jun 16, 2015

My website is running fine on my local system but when i upload it on IIS6 of my local computer [Ajax.AjaxMethod] is not working. How i will solve it.

View 1 Replies

Pagemethod Implementation Is Not Working In Chrome Browser?

Nov 30, 2010

My Pagemethod implementation is not working in Chrome browser. I have ASP.NET 3.5 web application developed in VS 2008.

The code below not working in chrome or Safari:

function FetchDataOnTabChange(ucName)
{
PageMethods.FetchData(ucName, OnSuccessFetchDataOnTabChange, OnErrorFetchDataOnTabChange);
}
function OnErrorFetchDataOnTabChange(error)
{
//Do something
}
function OnSuccessFetchDataOnTabChange(result)
{
//Do something
}

View 2 Replies

DataSource Controls :: SQL Server 2008 Management Studio Failed Install Via Web Platform Installer

May 7, 2010

I sucessfully installed SQL Server Express 2010 on my windows server. I then tried to install the SQL Server 2008 management studio via Web Platform Installer but it failed (it did however sucessfully install powershell).

[Code]....

View 1 Replies

.net Mysql Sql Server 2008 Installation Method

Feb 14, 2011

i have a simple questions. I am programming in Visual studio using vb.net. As Database i am using mysql with the .Net connector and using the membership provider. Do i need to install microsoft sql server 200X too ? (although i will not use it)

View 1 Replies

SQL Server :: General Error Login Failed For User ''on Windows 2008 In Application That Runs Correctly On Wind"

Sep 20, 2010

we have a web application that one company prepared for us. this application read connection string from registery key in hkey_local_machine and connect to sql server 2005 database. It worked correctly in windows server 2003. we changed our Server'OS to windows server 2008. but we have a problem to login. after try to login we see this error: Server Error in '/dabir' Application. Login failed for user ''. The user is not associated with a trusted SQL Server connection. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: Login failed for user ''. The user is not associated with a trusted SQL Server connection. Source Error:

[Code]....

Stack Trace:

[Code]....

View 4 Replies

MVC :: Set The Model From Controller Unit Testing Method?

Mar 24, 2011

I am using the Nhibernate with MVC. In the controller i am getting the model from the HttpSession. How can i set the model from controller Unit testing method.

View 1 Replies

SQL Server :: Full - Text Feature On SQL Server 2008 RC2 Stops Working

Dec 19, 2010

I'm using the full-text feature on SQL Server 2008 RC2. Everything had been working well until today. I wanted to change the language for word breakers from Neutral to Slovakia. After I did that, I can't perform full-text search anymore. It simply give me no rows. I even deleted the old full-text catalog and created a new one and populated it, but it still gave no solutions. I tried to query dm_fts_index_keywords_by_document on my table and get only 1 row with a display term END OF FILE.

View 3 Replies

SQL Server :: Microsoft 2008 R2 "Login Failed For User 'NSAdmin' (Microsoft Sql Server, Error:18456)"

Oct 27, 2010

I am facing the problem to acess the Data Base. some time ago i am easily acess the data base by typing the server name(like 127.80.1.7) and type the user id and password from web.config file but now i am find the error.like Login failed for user 'NSAdmin' (Microsoft Sql Server, Error:18456).

View 3 Replies

Installation :: SQL Server 2008 Express Edition / Rule "SQL Server 2005 Express Tools" Failed

Jan 25, 2010

i have installed SQL server 2005 Server & Clicent in My PC. now i want to install SQL server 2008 Express Edition.

when i try to install it it gives an Error as below.

Rule "SQL Server 2005 Express tools" failed.

The SQL Server 2005 Express Tools are installed. To continue, remove the SQL Server 2005 Express Tools.

View 6 Replies

VS 2008 Team Testing Module

Sep 9, 2010

I have the web project with web services. When just run it, it is OK.But when put???

View 4 Replies

Stress Testing Managed Host With VS 2008?

Jan 31, 2010

Is it possible to stress test a managed host (not my own machine) using VS 2008?

View 4 Replies

Process.start() Method Is Not Working In Server Machine?

Mar 29, 2011

In my project i am having the VB Script file openHTML.vbs which is used to open the .HTML file in the server location.

If i run the following code in VS2005 it's working fine but if i use the same code to publish and work in the server machine it's not working.

[Code]....

[Code]....

View 11 Replies

User Controls :: Microsoft SQL Server 2008 R2 Error 18456 - Login Failed For User Sa

Nov 21, 2012

Microsoft sql server error 18456 in sql server 2008 r2login failed for user   sasql server was working properlyi just restarted the system and then i started getting the above errorhow do i resolve iti am able to login with windows authentication but not sql authentication....

View 1 Replies

How To Make Sure That CreateChildControls () Method Is Called When Unit Testing Custom .NET Web Controls

Feb 10, 2010

I want to unit test my rendering engine for an ASP.NET app. I have some custom controls created in that app. Most of those control rely on having CreateChildControls() method called by the ASP.Net engine wheather during initial call or a postback.When running a test CreateChildControls() does not get called and the control is in an "invalid" state.

As a workaround to get the tests going I explicitly call some other public method that calls EnsureChildControls() in it. This in effect causes CreateChildControls() to be executed and the control being initialized properly (just as it would normally when hosted on web server). I would like to get rid of that extra method call and the control to still be in a proper state for testing.

View 1 Replies

Visual Web Developer 2010 Express - Installation Method On Windows Server 2008

Oct 18, 2010

We are trying to install VWD 2010 on a windows 2008 server. We already have installed the 2008 version as well as SQL 2005, 2008 and 2008 R2. The Web Platform installer is not installing VWD 2010 however.At first it notified us that the OS does not allow it, after running tons of updates on the OS (some of which failed) it is still not doing it, not even donwloading it. The latest message simply asked us to post the error on the forum

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved