.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

MSDN WCF example. Invalid URI: The hostname could not be parsed.

Posted By:      Posted Date: December 04, 2010    Points: 0   Category :.NET Framework


I am trying to implement a simple distributed system. And I want to use http://msdn.microsoft.com/tr-tr/magazine/dd882514(en-us).aspx as a base project but when I try to run it (simple press F5) It rises an error "Invalid URI: The hostname could not be parsed."

I checked the services the peer name resolution protocol is working and also I tried it in another machine it worked properly with out any error or problem.

The biggest difference is I have some proxy settings in my machine but I am not sure it is the problem.

Your help would be appreciated thank you.

View Complete Post

More Related Resource Links

MSDN Abstract Classes Link

MSDN Reference For Abstract Clases

Invalid length for a Base-64 char array for my coding in ASP.net C#. How to solve it ?


Hi Friends ,

I have done encrypted password and decode but i got error  like  this  " Invalid length for a Base-64 char array" .

Pls help . Thanks


psswd = txtPassword.Text;

pwed = base64Decode(psswd);

public string base64Decode(string sData)
            System.Text.UTF8Encoding encoder = new System.Text.UTF8Encoding();
            System.Text.Decoder utf8Decode = encoder.GetDecoder();
            byte[] todecode_byte = Convert.FromBase64String(sData);
            int charCount = utf8Decode.GetCharCount(todecode_byte, 0, todecode_byte.Length);
            char[] decoded_char = new char[charCount];
            utf8Decode.GetChars(todecode_byte, 0, todecode_byte.Length, decoded_char, 0);
            string result = new String(decoded_char); return result;

Editor's Note: Not Your Father's MSDN


Changes are coming to MSDN Magazine. They begin this month, with the unveiling of a number of new, monthly columns.

Keith Ward

MSDN Magazine February 2010

Inside MSDN: Consuming MSDN Web Services


Get the inside track on how the MSDN team uses Web Services to power MSDN2.

Craig Andera

MSDN Magazine October 2006

Inside MSDN: Building the MSDN Aggregation System


Have you visited msdn2. microsoft. com? It's the new online face of the MSDN® Developer Tools and Enterprise Server documentation. The infrastructure behind it includes a system developed by my team at Microsoft for aggregating information related to our content.

John Mollman

MSDN Magazine July 2006

Inside MSDN: Using InfoPath as a Reporting Solution


I love the part of my job that lets me write code and develop software. In addition to those responsibilities, however, I manage a development organization that's working on a number of large strategic projects.

Larry W. Jordan Jr.

MSDN Magazine March 2005

Inside MSDN: Designing URLs for MSDN2


This is the first installment of a new column about MSDN® projects: what we're doing, how we're doing it, and what we're learning along the way. It will be written by MSDN staff with the goal of sharing the team's experiences in solving the real-world business problems MSDN faces.

Tim Ewald

MSDN Magazine February 2005

Editor's Note: Vote Early and Often for MSDN Magazine


As this issue of MSDN Magazine goes to press, Election Day is drawing near. Like many candidates for office, this magazine sports some bold cover lines and bright, appealing pictures. Unlike those same politicians, however, we will keep working for you month after month, year after year, even after you elect to purchase the magazine.

Joshua Trupin

MSDN Magazine November 2004

Editor's Note: Camp MSDN Magazine


Welcome back to the autumn term! We hope you had a great summer. We've been hard at work roasting marshmallows, making gimp bracelets, and learning how to make a baked brie using only twigs and berries.

Joshua Trupin

MSDN Magazine September 2004

Resource File: MSDN Online Developer Centers


When you're looking for information about a specific technology, don't you wish you could rely on one site to point you to the most pertinent content? Now you can. Based on feedback from software developers, MSDN Online has centralized all developer information on specific technologies so you don't have to hunt in several locations.

MSDN Magazine June 2003

Linq2Sql error: "Invalid attempt to call Read when reader is closed."


I've read up on this error from other posts and on other sites, but haven't found a solid resolution to the issue yet. My setup is as follows:

I have a RepositoryBase class that fields certain db calls that all repositories need to perform. In one such call, "GetSecurityGroup", it works most of the time, but will seemingly at random throw an exception with the error "Invalid attempt to call Read when reader is closed." All other Repository classes inherit from this one, and they all use the same DataContext object, which I understand isn't thread safe. Since there could be multiple calls to the DataContext object on the same page, perhaps one is using the DataContext when the next tries to do so. I'm not sure. What can I do to ensure this doesn't happen?

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend