AJAX :: Method Error 500 (code WORKS On Dev Server, FAILS On Prod. Server) / How To Fix It

Nov 8, 2010

Locally I have the cascading dropdown which loads countries in a cascading dropdown working.

But as soon as I place the code on the hosting server, Firebug shows me an:

500 Internal Server Error - [URL]

The cascading dropdown just shows "[Method error 500]"

REMEMBER: IT WORKS ON MY LOCAL SERVER!!!

local configuration:

Windows 7
IIS7.5
ASP.NET4

server configuration:

Windows Server 2008
IIS7.5
ASP.NET4

So it almost MUST be something on my hosting server! :s I dont know what to configure though...

[code]....

View 5 Replies


Similar Messages:

Configuration :: DLL Works On Local IIS But Fails On Production Server?

Jul 14, 2010

I have used a dll named MARCEngine, which is used to read Marc data. I use a method named MARC2MARC21XML which converts a normal marc file to an XML file.

The problem is it works great on my local IIS, but when I upload it to the production server, it only generates the root node and not the child nodes.

Here is a snippet of my sample page :

[Code]....

Asp.net has the permissions to access the files geneated.

View 1 Replies

HTTP - Stream.Write Fails On Server But Works On Dev Machine?

Jan 23, 2011

problem with Stream.Write() where it works under a dev (Windows 7) environment but fails under a server environment (Windows 2008 R2 Enterprise)?

I'm basically working with some third party code which reads from a FileStream and writing to an Http request, nothing unusual and it's doing the following things:

Ensuring that Response.KeepAlive is false (was originally true but worked W7 and not W2K8 so tried false but it doesn't );
Ensuring that the Write includes the length of the bytes to write;
Ensuring that I Flush the stream afterwards;

The error that I encounter is the rather vague 'The request was aborted: The request was canceled.' with InnerException of 'Cannot close stream until all bytes are written.'. Now, my code works perfectly under Windows 7 so I still suspect that something is actively blocking this writing although I am not sure what, how and where.

One other possibility I wondered about was whether the encoding might be different under Windows Server 2008 R2 as opposed to Windows 7?

Here's a code snippet from the relevant method (a bit convoluted but, disclaimer, I didn't write it :-):

string boundary = string.Concat("-------------------------", DateTime.Now.Ticks.ToString("x", CultureInfo.InvariantCulture));
byte[] boundaryBytes = System.Text.Encoding.UTF8.GetBytes(string.Concat("
--", boundary, "
"));........

View 2 Replies

State Management :: Session Variable Worked On One Prod Server But Not On Another Server?

Nov 3, 2010

We recently migrated a web app from one Prod server (Prod 1) to another server (Prod 2). There is a session varialbe checked inside the page load event of the default master page. I have enabled session state both in web.config as well inside the pagedirective. The compilation went through without any issue. The web app is also running just fine on the server but the log file keeps logging a warning message. There is no run time error.

"System.Web.HttpException: Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration><system.web><httpModules> section in the application configuration."Any idea why this is happening on one server vs other?

View 3 Replies

AJAX :: Method Error 500 Only Server?

Mar 23, 2010

I'am with problem in CascadingDropList, I develop in my pc and work perfectly, but when put on server show error method 500?

View 2 Replies

AJAX :: Method Error 500 CascadingDropDown At Server

Jul 8, 2010

I currently facing a cascading drop down list problem. When I develop my website at local pc, everything work just fine. However I deploy it to server, I get Method Error 500.

View 4 Replies

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

IIS Configuration :: AJAX CascadingDropDown DropDownList - Method Error 500 When Hosted In Server

Dec 21, 2013

Regarding this example: [URL] .... it works locally, within VS 2012.

But when I publish to a local or remote webserver, it doesn't show an error, but the dropdown lists are populated with this line: [Method Error: 500].

View 1 Replies

Configuration :: Local Works Fine But Published Website Fails With Error?

Dec 7, 2010

I have a solution that has 2 projects in it... Project #1 is a class I created some time back to deal with the basic data connection and passing data back and forth.

The 2nd project is the new current project (web site).

Everything works fine in local mode but after I have compiled Project #1 and created a referance in Project #2 then compiled Project #2 and published to the server...

I am running on Windows 7 64bit, .NET 4.0, Access 2010, SQLExpress (loging only), C#... I have rebuilt Project #1 several times as an x86, AnyCPU, and x64... they all give the same result...

I get the following error when the web site is run.

[Code]....

View 4 Replies

Requests Against Elmah.axd Always Fails With A 500 - Internal Server Error?

Oct 15, 2010

I used the NuPack tool to add Elmah to a site on my developer machine. This worked like a charm, but when I send a request to the elmah.axd page all I get in return is 500 - Internal server error.

My code setup:
Visual Studio 2010
Site built on top of EPiServer 4.62B
Running on .NET Framework 2 (because of EPiServer)

My IIS setup:
IIS 7.5
Classic .NET AppPool (because of EPiServer)

My computer:
running Windows 7 32bit (because of EPiServer)

ELMAH content in web.config:

<sectionGroup name="elmah">
<section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah" />
<section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah" />

[code]...

View 3 Replies

Configuration :: Code Works Fine On Test, Crashes On Server?

Nov 5, 2010

I can't believe the number of issues that seem to work fine on test but completely crash and burn on production.I have a situation where the code works fine in the test/development environment, but when you press a button in production, it crashes with:

[Code]....

Its just a button push, that is suppose to rebind a quantity change back to the database that the user has changed in a textbox in Gridview Edit.

[Code]....

[Code]....

View 3 Replies

Configuration :: Upload Via FTP Works When Code Runs Locally But Not From A Remote Server?

Nov 15, 2010

I have a page which uploads a file from server A to server B. The user first uploads the file to server A, where it's saved into a diretory, then once the file is safely stored there, I'm transferring it to a second server, server B, using the following code:

[code]....

So, in summary, the only difference I can see between the working case and the non-working case is the server that'ssending the file.

View 4 Replies

AJAX :: AsyncFileUpload Server Response Error - Unknown Server Error While Uploading File

Jun 11, 2013

I have got an error "server response error : Unknown server error" while uploading file using Ajax AsyncFileUpload, code behind function is triggered while uploading, but after code behind function executed, we are getting this error.

View 1 Replies

State Management :: Session Ends Prematurely On Prod Server?

Jul 20, 2010

Kindly let me know why my appln redirects me to Session TimeOut page on a simple postback. This doesnot happen on my local pc but happens only on prod. Here is the code I m using on my PageBase.cs 's Init method

[Code]....

And in my web.config:

<authentication mode="Forms">
<forms name=".MY-AUTHPORTALNAME"
slidingExpiration="true"
defaultUrl="Default.aspx"
loginUrl="Login.aspx"
protection="All"
timeout="9999"
path="/"/>
</authentication>
<sessionState mode="InProc" cookieless="false" timeout="9999" />

View 2 Replies

Forms Data Controls :: Pager Does Not Show On Prod Server While Working OK Locally

May 20, 2010

I setup paging in GridView and it works oK in VS2005 locally but does not show when I move the page to prod server. I use masterpage, so GridView in in the Content placeholder...

View 5 Replies

AJAX :: Creating Method Error 'Cannot Create Page Method "GetCompletionList" Because No Code Behind Or Codefile Was Found"

Sep 24, 2010

I added the extender and when i tried to add the method this message poped up; Cannot create page method "GetCompletionList" because no Code Behind or codefile was found.

View 4 Replies

Security :: Service Call From Application Fails In Server 2008 (worked In Server 2003)

Jan 5, 2011

We have a web application that makes a call to a remotely hosted ASMX service that worked in Server 2003 under IIS6. We are now migrating it to a Server 2008/IIS 7 setup and it doesn't appear that the application makes the call to the remote web service anymore. We ran Wireshark and don't see any traffic to the service URL. It seems to throw a 404 error without trying to connect.

Is there some security policy or restriction in Server 2008 or IIS 7 we need to set to allow an ASP.NET application make a call to a remote web service? We are using Network Service as our application pool user, but also tried using Local System as a troubleshooting step. In addition, the same code works if run from a console application on the server instead of the web application.

Is there some setting under IIS7 or server 2008 that would be causing this?

View 3 Replies

Ajax - UpdatePanel Works In VS2010 Development Server But Not IIS 6?

Feb 26, 2011

have a Visual Studio 2010 project which targets v4.0 of the .NET framework.In the project, I have a page with an ASP.NET UpdatePanel - which works perfectly within VS2010's development server.However, when deployed to an IIS 6 server, the controls in the UpdatePanel cause a full-page postback - not an async postback.The site has its own application pool.I've tried visiting the ScriptResource.axd URLs which are present in the rendered page and they all produce valid looking JavaScript files.I can't see any Javascript or other errors.

View 1 Replies

AJAX :: Page Is Posting Back On Server - Works Ok In Development?

Jan 9, 2011

Got a pretty simple page where i want an update panel to become visible or hidden based on a button click. When i run this page in VS2010 in debug mode it works as i expected it to - page does not post back, the panel just appears or disappears on the page without the whole page refreshing.

I uploaded this to my server, and the page is posting back when you click the button.

Server is win2k8R2 x64 IIs7.5

Do i need to enable anything in the IIS configuration?

View 1 Replies

AJAX :: Server.HTMLDecode Works But Modal Popup Doesn't Close

Oct 19, 2010

As the title of this post already mentioned, I'm using a modal popup window to edit rows in the gridview. One column in the gridview contains an URL code. When I fire the edit button a popup opens and show the URL in a textbox in this format: [URL]

When I am using the Server.HTMLDecode function, the modal popup doesn't close anymore.

I am using the following code:

[Code]....

The funny thing is, when I change it to: txtURL.Text = row.Cells[3].Text; then I can close the modal popup, but unfortunately it is not decoded.

View 3 Replies

SQL Server :: SQL Query Within A Form Fails With "parser Error" - Syntax Not Correct?

Oct 12, 2010

I've created an Expression Web form with a SQL datasource which is doing a query/select statement.Somehow it appears that I'm making a syntax error. When I divide the query in two and execute them separate, it works fine.I need to filter for an EventType, Region and Today's date + a custom interval (like 7 day's for a week)he parameters come from a search form where the user can select these values via a dropdown list.The two separate (and working) queries within my form are:Query nr.1 :

"Select * from Events WHERE (([EventType] LIKE '%' + @EventType + '%') AND ([Region] LIKE '%' + @Region + '%'))">
<asp:formparameter DefaultValue="%" FormField="EventType" />

[code]...

View 4 Replies

AJAX :: How Not To Load Files On Server In Async File Upload Control When Client Side Validation Fails

Nov 15, 2010

I have a async file upload control and I am doing client side validation for Image."OnClientuploadstarted" I am doing the client side validation.My validation is working fine but my problem is that the file upload control text box goes green (i.e file is loaded on the server) even if the validation fails which is I dont want.What I want is when the client side validation fails the file does not gets loaded on the server and the Async file upload textbox does not goes green.I have goggled but have not found a suitable solution.

View 4 Replies

Web Forms :: HttpContext.Current.Server.MapPath Within Server Control Works?

Sep 30, 2010

Does anyone knows why HttpContext.Current.Server.MapPath within a server control works when I run the server control but gives and error whilst in Design mode?

View 2 Replies

AJAX :: WebMethod Is Fast On Local But Works Slowly In Processing Requests On Server

Aug 28, 2012

I am using the following Web method.. its work fast on local host , but on Domain hosted server .. its works odd , i;e; some time its work fast about (1-3 sec) and some take about 10-14 sec to process..  how do i make it work properly and fast..
 
here is my code 

[WebMethod]
public static string DisplayMessage(string name, string price,string obj, string id)
{
SqlConnection conn = new SqlConnection(WebConfigurationManager.ConnectionStrings["eshopConnectionString"].ConnectionString);
//Creating Delay""

[Code]....

View 1 Replies

WCF / ASMX :: Error While Invoke Web Method From Server?

Aug 3, 2010

I am implementing web service into my web application, i added web reference to my application of required web methods from my asmx file.

i am able to create object of this weservice and able to see all the web methods available from the reference object. In debug mode(working environment), i could invoke and get result from the webmethod and working fine as expect. i created test page for testing this.

But, when i deploy same in my beta i am getting below error.(my both test page and asmx file available in my beta server where i deployed)

A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 138.108.18.207:80

Description:

An unhandled exception occurred during the execution of the current web request. review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 138.108.18.207:80

Source Error:

[Code]....

View 2 Replies







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