Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4.5 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-31180-6
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 25th, 2013, 12:09 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

BTW, you also need to remove the endpoint node again from web.config:

<endpoint contract="IMetadataExchange" binding="mexHttpBinding" address="mex" />

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old September 25th, 2013, 02:32 PM
Registered User
 
Join Date: Sep 2013
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

That was it Imar.

Thanks for all your help.
 
Old September 25th, 2013, 03:54 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

You're welcome. Glad I could help figuring it out.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old January 21st, 2014, 11:58 PM
Registered User
 
Join Date: Jan 2014
Posts: 6
Thanks: 3
Thanked 0 Times in 0 Posts
Default The server method 'HelloWorld' failed

The server method 'HelloWorld' failed with the following error: -- The server was unable to process the request due to an internal error.

I am running the code in VS2013.

From what I can see my code is correct, and folder conventions are named same as book.

Here is the error in more detail:
'iexplore.exe' (Script): Loaded 'Script Code (Windows Internet Explorer)'.
Unhandled exception at line 6968, column 21 in http://localhost:51273/ScriptResourc...jM1&t=26dfbc01
0x800a139e - JavaScript runtime error: Sys.Net.WebServiceFailedException: The server method 'HelloWorld' failed with the following error: -- The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect the server trace logs.

The program '[19392] iexplore.exe' has exited with code 0 (0x0).
 
Old January 22nd, 2014, 04:03 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Take a look at this code you sent me over e-mail:

Code:
Return String.Format("Hello {0) ", name)
You have a closing parentheses, not a curly brace. Try this instead:

Code:
Return String.Format("Hello {0} ", name)
Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old January 22nd, 2014, 07:33 PM
Registered User
 
Join Date: Jan 2014
Posts: 6
Thanks: 3
Thanked 0 Times in 0 Posts
Talking Oh Boy!

Hi Imar,

Thanks for the quick response, and also for pointing out the error.

Oh Boy, you can sit and look at code all day and not see what is obvious.

That resolved the error.



Regards

Kim (Datagaard)





Similar Threads
Thread Thread Starter Forum Replies Last Post
"If or" not working crabjoe Classic ASP Basics 3 March 12th, 2008 06:03 PM
window.opener working .... not working alyeng2000 Javascript How-To 5 January 5th, 2007 08:05 AM
Web.Config..Working or Not Working peace95 ASP.NET 1.0 and 1.1 Basics 1 September 18th, 2006 06:53 AM
Local COM working , but not working at Web Serv nagen111 .NET Web Services 3 February 19th, 2005 04:22 AM
Get Working Copy... not working Enkiel Classic ASP Basics 0 April 21st, 2004 01:41 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.