Showing posts with label service. Show all posts
Showing posts with label service. Show all posts

Monday, March 26, 2012

my err on server - please

what to do?? and what is it?? - i am a biginer..

Description:An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message:Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. (d:\webspace\ADMIN\yanivsplace.com\WWW\web.config line 52)

Source Error:

Line 50: </httpHandlers>Line 51: <httpModules>Line 52: <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>Line 53: </httpModules>Line 54: </system.web>


Hi,

and welcome to the ASP.NET forums.

Did you install the ASP.NET AJAX Extensions properly on your computer (http://ajax.asp.net/downloads/default.aspx?tabid=47)?

Grz, Kris.


Thank you for welcomingAnd yes I did installedASP.NET AJAX Extensions Now on my machine there is no problems – its runs..

But when I tried to upload the files to ftp I got this problem


y4all:

on my machine there is no problems – its runs..

But when I tried to upload the files to ftp I got this problem

Does the server where you ftp'ed your files to also have the extensions installed as well?

Grz, Kris.


I hade my doubts but is the first time that I try to upload files to a server –

thanx


Hi,

y4all:

I try to upload files to a server

The AJAX extensions must be installed by your hosting company on their server. Not by you. If you have any doubts regarding that, contact their help desk to make sure they've installed it or going to install it.

Grz, Kris.


Yes they do supportAjax

thanks


Add a reference to system.web.extensions or system.web in your project.. this will solve the issue..right click "bin" click "Add reference" in .NET tab there will select system.web or system.web.extensions or both...


first thak you.

so first I didn't had a bin folder – so I added 1 (asp:bin folder) then I did select thereferences and clicked ok but files where added to the bin – the folder was empty

Saturday, March 24, 2012

my web service call works from one page, not from the other.

have a user control that uses Atlas to call a web service. I drop
this control on a page in the root directory and it works with no
problem. I then add the control to another control, which is on
another page and it will not work. It does not seem to know what the
webService is.

My web service is in the same project and the ascx control and is named
meterCommunication.asmx in a folder called webService.

The control is a button ond onClick it callas a javascript function
that has the following line for calling the web service:
meterCommunication.sendMessage(meterID, commType, _onRequestComplete);

The error that I get is a javascript error that says:
meterCommunication is undefined

I can't figure out what is different between the two pages. Since this
is on a user control they should be identical.

How does the javascript know what meterCommunication is?
I don't know enough about this to troubleshoot the problem.

You need to make sure that you import the web service proxy, either in your page or in the user control. This is done using:
<scriptsrc="/yourapp/subdir/YourService.asmx/js"type="text/javascript"></script>
Maybe you have that only on the page that works?