Click here to Skip to main content
15,357,086 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: grid.rendercontrol causes exception Pin
meg221-Jan-09 16:55
Membermeg221-Jan-09 16:55 
GeneralRe: grid.rendercontrol causes exception Pin
Aman Bhullar1-Jan-09 18:24
MemberAman Bhullar1-Jan-09 18:24 
QuestionTool to test webpage Pin
Mekong River29-Dec-08 22:33
MemberMekong River29-Dec-08 22:33 
AnswerRe: Tool to test webpage Pin
Pedram Behroozi30-Dec-08 8:48
MemberPedram Behroozi30-Dec-08 8:48 
GeneralRe: Tool to test webpage Pin
Mekong River30-Dec-08 13:43
MemberMekong River30-Dec-08 13:43 
AnswerRe: Tool to test webpage Pin
Not Active30-Dec-08 16:00
mentorNot Active30-Dec-08 16:00 
AnswerRe: Tool to test webpage Pin
Rajdev Ramasamy12-Jan-09 2:32
MemberRajdev Ramasamy12-Jan-09 2:32 
QuestionHaving problems with unit testing a web service Pin
Rafferty Uy29-Dec-08 20:12
MemberRafferty Uy29-Dec-08 20:12 
Hi,

I can't get my unit test to work. Here is the error I'm getting (I'm using NUnit)

System.Net.WebException: The request failed with the error message:
--
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href="%2fWebServices%2fMyService.asmx%3fAspxAutoDetectCookieSupport%3d1">here</a>.</h2>
</body></html>

--.


What could be wrong? Here is an idea of how my current environment:

- I created a web application in the localhost IIS (a virtual directory)
- under this web app, there is a \WebServices folder containing MyWebService.asmx
- In a different solution (also a different directory), I created a Class Library project with a Web Reference to MyWebService.asmx
- I tried testing a simple Hello World method (code below) and I'm getting the above error.

In MyWebService.asmx
[WebMethod]
public string HelloWorld() { return "Hello World!"; }


In MyWebServiceTest.cs
[Test]
public void HelloWorldTest() {
    var svc = new MyWebService();
    var str = svc.HelloWorld();
    Assert.That(str, Is.EqualTo("Hello World!"));
}



Thanks in advance for your help.

Rafferty

AnswerRe: Having problems with unit testing a web service Pin
Abhijit Jana1-Jan-09 0:10
professionalAbhijit Jana1-Jan-09 0:10 
GeneralRe: Having problems with unit testing a web service Pin
Rafferty Uy1-Jan-09 14:40
MemberRafferty Uy1-Jan-09 14:40 
QuestionOpen Crystal report using Javascript. Pin
Chinzac29-Dec-08 16:21
MemberChinzac29-Dec-08 16:21 
QuestionCrystal Report Viewer Pin
Civic0629-Dec-08 7:40
MemberCivic0629-Dec-08 7:40 
AnswerRe: Crystal Report Viewer Pin
Not Active29-Dec-08 11:01
mentorNot Active29-Dec-08 11:01 
Questionhow to store values from dynamically added rows into database Pin
manojramakrishnan29-Dec-08 0:24
Membermanojramakrishnan29-Dec-08 0:24 
AnswerRe: how to store values from dynamically added rows into database Pin
Girish Nambiar2-Jan-09 0:29
MemberGirish Nambiar2-Jan-09 0:29 
Questionmakinng code visible and invisible using javascript Pin
nainakarri27-Dec-08 2:50
Membernainakarri27-Dec-08 2:50 
AnswerRe: makinng code visible and invisible using javascript Pin
Guffa27-Dec-08 4:05
MemberGuffa27-Dec-08 4:05 
AnswerRe: makinng code visible and invisible using javascript Pin
Aman Bhullar27-Dec-08 6:04
MemberAman Bhullar27-Dec-08 6:04 
GeneralRe: makinng code visible and invisible using javascript Pin
nainakarri29-Dec-08 17:08
Membernainakarri29-Dec-08 17:08 
Questionusing jmesa Pin
axecutioner26-Dec-08 20:43
Memberaxecutioner26-Dec-08 20:43 
QuestionSharePoint Desinger and SQL Server 2008 Pin
Not Active26-Dec-08 19:22
mentorNot Active26-Dec-08 19:22 
Questionhow to read images from mobile photo gallery using javascript Pin
revathi_srikrishna26-Dec-08 18:14
Memberrevathi_srikrishna26-Dec-08 18:14 
QuestionVirtual Brochure Pin
BRIMID26-Dec-08 14:16
MemberBRIMID26-Dec-08 14:16 
QuestionJSP code execute Pin
kavitaBC26-Dec-08 0:09
MemberkavitaBC26-Dec-08 0:09 
Generalajax+menu [modified] Pin
Ramkumar_S25-Dec-08 21:44
MemberRamkumar_S25-Dec-08 21:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.