Showing posts with label running. Show all posts
Showing posts with label running. Show all posts

Monday, March 26, 2012

Connect to a web reference

I have a web service running on my local machine and I have added it to a Atlas project in Visual Studio using web reference. There are three files created under App_WebReferences\localhost: xxx.disco, xxx.discomap and xxx.wsdl. How should I reference it in the following Atlas tag:

<atlas:servicereferencepath="??"type="text/javascript"/>

Also in my web service code, it has the following line:

<%@dotnet.itags.org. WebService Language="c#" Codebehind="ServerStatus.asmx.cs" Class="Microsoft.TeamFoundation.Server.ServerStatus" %>

But when I use the methodMicrosoft.TeamFoundation.Server.ServerStatus.GetSupportedContractVersion, I get an error saying "Microsoft" is undefined.

In general the service code is not available. I suppose its class information should be in .wsdl file. But I am not sure where to locate it. Please help. Thanks.

I had the same problem. You are not able to call external webservices by importing a web reference. You need to wrap the external webservice in your own webservice implemented by an asmx file.
For this I created a C# library with Visual Studio and added a web reference in the library. Now I was able to add a reference to the reulting DLL and call the external webservice from MyWebservice.asmx.
You are obligate to use this solution when the webservice is located on a different server than where your website will be hosted, because Javascript can not make HTTP requests to other servers.
Maybe you can bridge to that particular external web service. I am currently reading the followinghttp://atlas.asp.net/docs/atlas/doc/bridge/default.aspx.

Wednesday, March 21, 2012

Complication Running AJAX ASP.NET on a currnet ASP.NET Web Server?

Hi there i'm currently busy converting a ASP.NET web site to a AJAX ASP.NET site.

I just want to know what is the prerequisites for copying, or publishing a AJAX ASP.NET site on a Web Server currenly configured to run ASP.NET?

What should i do?

Is there any unforseen problems that might come ot light down the line?

Please can someone help me...

THANKS

SJB

You will first have to install the AJAX framework on the web server, which can be foundhere.


Do you know of any other complications down the line?

After the AJAX framework has been installed?


Not that I've come across.


thx...


Hi s_j_b,

To converting a web site to AJAX ASP.NET site.It is recommended to do these steps as below:

1. Install Asp.Net AJAX Extension. The introduction is here: http://ajax.asp.net/docs/InstallingASPNETAJAX.aspx (not necessary)

2. Add a reference to the "System.Web.Extensions.dll " in your project. (In common, the dll is in C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025).

3. Modify your web.config file. Please follow this: http://ajax.asp.net/docs/ConfiguringASPNETAJAX.aspx

Hope it helps , if any problems or has been resolved yet , please let me know.

Compilation Error : Error importing module Tools.netmodule

Hello,

Since I installed the AJAX Control Toolkit, by running the VSI, I get the following error with every application I try to run. I've tried everything in my power to uninstall it but I can't find where it installed. Perhaps it did not complete properly. I've reinstalled the .NET framework 2.0 but this did not correct the problem.

To be able to run at least once, I've had to copy the "Tools.netmodule" file that came in the binaries folder of the AJAX Control Toolkit and paste this file in the folder described below ('c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\6f7173d6\de0dfef4\assembly\dl3\371db7e0\003e4f98_695cc701\) then it seems to work for one run. I have to do this everytime. How can I fix this error?

Please help! Error below:

Compilation Error

Description:An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message:CS0009: Metadata file 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\6f7173d6\de0dfef4\assembly\dl3\371db7e0\003e4f98_695cc701\Tools.DLL' could not be opened -- 'Error importing module 'Tools.netmodule' of assembly 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\6f7173d6\de0dfef4\assembly\dl3\371db7e0\003e4f98_695cc701\Tools.DLL' -- The system cannot find the file specified. '

Source Error:

[No relevant source lines]

Try to remove the "Temporary ASP.NET Files" folder