473,396 Members | 1,998 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

[VS2k8] Web Services keep using old code

Hi all,

i'm having a really bothersome problem, i am currently building a web service and are testing it using a windows forms application. The problem is however, any changes to the code in the web service does not get reflected into the test application. I tried the following with no results.

- Rebuild webservice
- Update reference
- Clean, build
- Remove Temporary ASP.NET files
- Remove temp files, rebuild, update reference
- New webservice project

Can anyone help me? i already wasted a day on trying to fix it with no results.
Feb 25 '10 #1
4 3202
ThatThatGuy
449 Expert 256MB
Is your WebService hosted on iis ....
Are you updating the webservice.... and hosting it back to IIS
Feb 26 '10 #2
My Webservice is hosted in IIS, i publish it TO IIS
i found out that when i click "view in browser" on the asmx file that it does update then.
Feb 26 '10 #3
Frinavale
9,735 Expert Mod 8TB
In Java there are several different ways that you can consume a Web Service. You can use a stub, dynamic proxy, or use Dynamic Invocation Interface. A stub is created once and if any changes are made to the web server it is not reflected in the client unless the stub is recreated (usually at build time). Dynamic Proxy and dynamic invocation start to get around this a little.

I don't have a lot of experience with web services in ASP.NET...but I suggest you look into what options you have to consume the web service especially if your web service is expected to change a lot.

I know that if you make a change in an ASP.NET web service you need to refresh the web reference to see those changes in your client application. In your client application open your Solution Explorer. In there you should find a folder called "Web References"...expand it and find the service that was updated. Right click on it and choose "Update Reference" (or however it's worded)

-Frinny
Mar 1 '10 #4
Well i found out that viewing the asmx file in the browser has updated the code in the webservice.
Mar 1 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Dan V. | last post by:
Is there a way to query a remote xml file periodically by not using web services? For Windows and Unix platforms. Is there a cheap software product that I can install on each client and my Windows...
4
by: Greg | last post by:
Hi, I am developing Pocket PC application in VB.NET. Within the application we are using web services developed by outsourced team. They developed the services in C#. After adding a web...
7
by: Magdelin | last post by:
Hi, My security team thinks allowing communication between the two IIS instances leads to severe security risks. Basically, we want to put our presentation tier on the perimeter network and the...
7
by: Matt | last post by:
I have approximately 5 instances on my test server that are identical to my prod server. On the prod server, when I look at the services file, there is a single entry per instance and everything...
6
by: Simon Harvey | last post by:
Hi everyone, We have a need to make a Windows Forms (2.0) client application that will be installed on our clients site. The data that the application uses needs to be centrally available to a...
4
by: =?Utf-8?B?U2NvdHQ=?= | last post by:
I have seen many articles describing why versioning web services are important. I have a scenario that I would like to propose to seek a solution. I have a publicly consumable web service. Two...
0
by: lbrtchx | last post by:
Say you need to serve the same Web content from a number of IP address, which you need to keep out there with high availability requirements ~ I think Web Services would be a good candidate for...
1
by: bugnthecode | last post by:
Hi, I am trying to put together a small app that uses one of my company's web service. Originally I interfaced with this web service using java, and have the example code. I believe the web...
2
by: -Lost | last post by:
VS2K8 Pro *MUST* reside on the system partition?! I finally got a faster drive with a little more memory in my laptop so I figured I'd upgrade from Visual C# Express 2005 to Visual Studio 2008...
2
by: =?Utf-8?B?V2ViQnVpbGRlcjQ1MQ==?= | last post by:
I'd love to be able to have two views for a site in VS2K8. My local on my hard drive and the one on the web. I'd settle for just opening a project and seeing all files with the option of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.