• 0

[C#/ASP.NET] Do web services cache or something?


Question

Do web services cache or something? I have a web service and all I'm trying to do is truncate the decimals. Which I found thanks to you guys the code to do it, however it refuses to accept my changes all morning. I have this property which displays values on the web page:

public string Details
			{
				get
				{
					if (_Error != null && _Error != "") return Error;
					StringBuilder sb = new StringBuilder();
					sb.Append("Complexity: ").Append(Triangles).Append(" facets\r\n");
					sb.Append("Volume: ").Append(Math.Round(Volume * 1000) / 1000).Append(" cub in\r\n");
					sb.Append("Surface: ").Append(Math.Round(Surface * 1000) / 1000).Append(" sq in\r\n");
					sb.Append("Dim: ");
					X = Math.Round(X * 100) / 100;
					Y = Math.Round(Y * 100) / 100;
					Z = Math.Round(Z * 100) / 100;
					sb.Append(Math.Round(X * 100) / 100);
					sb.Append("\" x ");
					sb.Append(Math.Round(Y * 100) / 100);
					sb.Append("\" x ");
					sb.Append(Math.Round(Z * 100) / 100);

					sb.Append(X);
					sb.Append("\" x ");
					sb.Append(Y);
					sb.Append("\" x ");
					sb.Append(Z);

					sb.Append("\"\r\n");
					return sb.ToString();
				}
			}

It won't round them. Then I tried editing that property to return "PuppyLand"; it still spits out the same variables it has been all morning...this web service is so frustrating it always seems to pick and choose what to update and what not to. Is there something I'm missing? Maybe I need to go and get a asp.net book or something b/c this web service is just like living in hell so to speak. I've never had this much of a problem making simple changes to anything web related in my entire life.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

are you testing from within visual studio or are you moving the code to another server before testing? If you are moving the code, make sure you are restarting IIS.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.