Service not available, closing transmission channel. The server response was: 4.3.2 Service not available, closing transmission channel

by Mark Deraeve 17. October 2008 02:20

Trying to look up this error only gave 2 results and did not provide the simple solution for this problem I found.

Thsi code worked fine before we changed to a secure Exchange 2007 server.

MailBody.Insert(0, "Dear, <br><br>");
 
            string[] mails = toString.Split(';');
  
            MailAddress from = new MailAddress(sharepoint@dailycode.net);
 
            MailMessage Message = new MailMessage();
 
            foreach (string mailAdress in mails)
            {
                Message.To.Add(mailAdress);
            }
            Message.From = from;
            Message.Subject = "Document needs revising!";
            Message.Body = MailBody.ToString();
            Message.IsBodyHtml = true;
             
            SmtpClient smtpClient = new SmtpClient();
            smtpClient.Host = System.Configuration.ConfigurationSettings.AppSettings["SmtpServer"];
            smtpClient.Send(Message);

Then we changed and I got the beautifull error message: "Service not available, closing transmission channel. The server response was: 4.3.2 Service not available, closing transmission channel". So what did the trick was adding:

            smtpClient.UseDefaultCredentials = true;


You can also pass credentials if the program will run under a local user.  This can be done like this:

      smtpClient.Credentials = GetMailCredentials();
 
private static System.Net.NetworkCredential GetMailCredentials()
        {
            System.Net.NetworkCredential cred = new System.Net.NetworkCredential();
            cred.UserName = ConfigurationSettings.AppSettings["User"];
            cred.Password = ConfigurationSettings.AppSettings["Pwd"];
            cred.Domain = ConfigurationSettings.AppSettings["Dom"];
            return cred;
        }

Reading this makes it seem very logic, secure server disables anonymous login.

 

Tags:

Comments (38) -

S Raza
S Raza
2/6/2009 2:39:05 AM #

Hi,

I used both way the default credentials as well as provide my username/pwd but I still got the same error.

Please advise me.


Regards

Raza

Andrew
Andrew
3/26/2009 2:49:21 PM #

You need to set up an open relay and pass send with out setting the credentials. Also don't forget set set up only the nessry machines to have access to this. Hope this helps. Sorry can't give any more details about how to set the open relays up not my area.

Andrew

Mark
Mark
5/7/2009 3:27:33 PM #

You could try running the code on a different machine. The security is changed now in my company, so it will only work on computers who are allowed. My development machine will not be able to run the code anymore, only on development server I can test this final step. Maybe you should inform on the security of your network?

austin personal injury
austin personal injury United States
1/4/2014 7:27:21 AM #

Should you are using WordPress, to about arrive spam difficulty just set up plug-in contact Akismet.

accident attorney Austin
accident attorney Austin United States
1/9/2014 9:02:42 AM #

Feel free to surf to my blog bad credit quickly loan own - doctor-detail.com/.../HondaCivicBlack111.jpg.php I imagine you finished a pair of reasonably fascinating points. Not incredibly a number of all those would specially engage hooked on consideration this the way you just did. I am actually impressed that there's a great deal within the issue of this subject matter that is exposed therefore you did it accordingly as it should be, with so to the good extent course. Top-notch a single, specific gratitude you. Today, I went to the beach front with my children. I discovered a sea shell and gave it to my 4 year old daughter and said "You can hear the ocean should you set this in your ear." She place the shell to her ear and screamed. There was a hermit crab inside of and it pinched her ear. She under no circumstances wants to go back! LoL I know this is wholly off subject but I had to tell an individual!

car accident attorney Austin
car accident attorney Austin United States
1/23/2014 4:42:51 PM #

a blog every single as soon as within a although that isn't a similar outdated rehashed data. Aw, this was an particularly nice publish. Getting the

car accident attorney Austin
car accident attorney Austin United States
1/26/2014 11:55:43 AM #

My homepage: unstitched salwar kameez clothing garments - allinchrist.net/.../index.php extremely nice put up, i basically really like this internet site, retain on it Remarkable items listed here. I am quite glad to search your write-up. Many thanks so much and i am wanting forward to touch you. Will you remember to drop me a mail?

construire Heineken
construire Heineken United States
2/20/2014 1:42:00 AM #

Appreciate it for helping out, great info. "In case of dissension, never dare to judge till you've heard the other side." by Euripides.

permis construire tours
permis construire tours United States
2/20/2014 2:10:18 AM #

Utterly indited subject matter, appreciate it for information. "He who establishes his argument by noise and command shows that his reason is weak." by Michel de Montaigne.

Austin injury attorneys
Austin injury attorneys United States
2/24/2014 11:54:47 PM #

Also pay a visit to my weblog; viagra - 210.240.29.141/wiki/index.php?title=Viagra_online I definitely adore your site.. Pleasant colors & topic. Did you make this incredible internet site oneself? Make sure you reply back as I am setting up to make my really possess site and want to discover where by you obtained this from or just what the topic is called. Respect it!

Monika Brodka
Monika Brodka United States
3/28/2014 6:51:56 AM #

<BR>Could you send me some of yours works somewhere or write me an email - It be greatSmile<BR>I assuredly give your link to ouer Facebook <BR>By joining our free communitysite you will have access to post subject, communicate privately with other members (PM), respond to polls, upload concern and access many other special features.<BR>Registration is fast and absolutely free.THX Best regards <BR><

Lynetta Kinley
Lynetta Kinley United States
4/10/2014 7:58:10 PM #

I hardly understand... Interesting but doesn't quite get me. hmm...??

Matthew C. Kriner
Matthew C. Kriner United States
4/14/2014 8:25:10 PM #

"SEOElite is so much better than any other software thank you"

Carroll B. Merriman
Carroll B. Merriman United States
4/14/2014 9:08:31 PM #

"SEOElite is so much better than any other software thank you"

Andrew A. Sailer
Andrew A. Sailer United States
4/15/2014 7:10:14 PM #

"SEOElite is so much better than any other software thank you"

Gregory Despain
Gregory Despain United States
4/15/2014 11:27:14 PM #

"SEOElite is so much better than any other software thank you"

Phyllis Chloe MacKenzie
Phyllis Chloe MacKenzie United States
5/9/2014 9:13:58 PM #

Have a excellent day!  Your WordPress is verty useful and nice Game information .  What? And We Make HomePage And WebSite AT <A href="http://www.blogdehp.jp">;ビジネスブログホ�Eムペ�Eジ作�Eビジネスブログ</A><A href="http://www.akibare-hp.jp">;ホ�Eムペ�Eジ作�E</A>  . If you want to get more pageview , you can contact us .

Madeleine McKay
Madeleine McKay United States
5/9/2014 9:29:46 PM #

�E�I'll gear this review to 2 types of people: current Zune owners who are considering an upgrade, and people trying to decide between a Zune and an iPod. (There are other players worth considering out there, like the Sony Walkman X,  And We Make HomePage And WebSite AT <A href="http://www.blogdehp.jp">Homepage Sakusei</A><A href="http://www.blogdehp.jp">;ビジネスブログホ�Eムペ�Eジ作�Eビジネスブログ</A>  but I hope this gives you enough info to make an informed decision of the Zune vs players other than the iPod line as well.)

Phyllis Chloe MacKenzie
Phyllis Chloe MacKenzie United States
5/9/2014 10:01:26 PM #

Have a excellent day!  Your WordPress is verty useful and nice Game information .  What? And We Make HomePage And WebSite AT <A href="http://www.blogdehp.jp">;ビジネスブログホ�Eムペ�Eジ作�Eビジネスブログ</A><A href="http://www.akibare-hp.jp">;ホ�Eムペ�Eジ作�E</A>  . If you want to get more pageview , you can contact us .

Martha More
Martha More United States
5/9/2014 10:07:35 PM #

Sorry for the huge review, but I'm really loving the new Zune, and hope this, as well as the excellent reviews some other people have written, will help you decide if it's the right choice for you.And We Make HomePage And WebSite AT <A href="http://www.blogdehp.jp">;ビジネスブログホ�Eムペ�Eジ作�Eビジネスブログ</A> and  .

Naomi Karen Boult
Naomi Karen Boult United States
5/9/2014 10:45:45 PM #

Sorry for the huge review, but I'm really loving the new Zune, and hope this, as well as the excellent reviews some other people have written, will help you decide if it's the right choice for you.And We Make HomePage And WebSite AT <A href="http://www.blogdehp.jp">;ビジネスブログホ�Eムペ�Eジ作�Eビジネスブログ</A> and <A href="http://www.akibare-hp.jp">;ホ�Eムペ�Eジ作�E</A> .

Phyllis Chloe MacKenzie
Phyllis Chloe MacKenzie United States
5/9/2014 10:51:53 PM #

�E�I'll gear this review to 2 types of people: current Zune owners who are considering an upgrade, and people trying to decide between a Zune and an iPod. (There are other players worth considering out there, like the Sony Walkman X,  And We Make HomePage And WebSite AT <A href="http://www.blogdehp.jp">Homepage Sakusei</A><A href="http://www.blogdehp.jp">;ビジネスブログホ�Eムペ�Eジ作�Eビジネスブログ</A>  but I hope this gives you enough info to make an informed decision of the Zune vs players other than the iPod line as well.)

Sherry Eileen Broderick
Sherry Eileen Broderick United States
5/9/2014 11:22:11 PM #

I'll gear this review to 2 types of people: current Zune owners who are considering an upgrade, and people trying to decide between a Zune and an iPod. (There are other players worth considering out there, like the Sony Walkman X,  And We Make HomePage And WebSite AT <A href="http://www.akibare-hp.jp">;ホ�Eムペ�Eジ作�E</A><A href="http://www.blogdehp.jp">;ビジネスブログホ�Eムペ�Eジ作�Eビジネスブログ</A>  but I hope this gives you enough info to make an informed decision of the Zune vs players other than the iPod line as well.)

Louisa Christiana Sinfield
Louisa Christiana Sinfield United States
5/9/2014 11:25:25 PM #

Have a excellent day!  Your WordPress is verty useful and nice Game information .  What? And We Make HomePage And WebSite AT <A href="http://www.blogdehp.jp">;ビジネスブログホ�Eムペ�Eジ作�Eビジネスブログ</A><A href="http://www.blogdehp.jp">;ホ�Eムペ�Eジ作�E</A>  . If you want to get more pageview , you can contact us .

Jeannie Jibson
Jeannie Jibson United States
5/10/2014 12:00:09 AM #

Have a excellent day!  Your WordPress is verty useful and nice Game information .  What? And We Make HomePage And WebSite AT <A href="http://www.blogdehp.jp">;ビジネスブログホ�Eムペ�Eジ作�Eビジネスブログ</A><A href="http://www.akibare-hp.jp">;ホ�Eムペ�Eジ作�E</A>  . If you want to get more pageview , you can contact us .

Louisa Christiana Sinfield
Louisa Christiana Sinfield United States
5/10/2014 12:06:59 AM #

�E�I'll gear this review to 2 types of people: current Zune owners who are considering an upgrade, and people trying to decide between a Zune and an iPod. (There are other players worth considering out there, like the Sony Walkman X,  And We Make HomePage And WebSite AT <A href="http://www.blogdehp.jp">Homepage Sakusei</A><A href="http://www.blogdehp.jp">;ビジネスブログホ�Eムペ�Eジ作�Eビジネスブログ</A>  but I hope this gives you enough info to make an informed decision of the Zune vs players other than the iPod line as well.)

Phyllis Chloe MacKenzie
Phyllis Chloe MacKenzie United States
5/10/2014 7:36:31 AM #

I'll gear this review to 2 types of people: current Zune owners who are considering an upgrade, and people trying to decide between a Zune and an iPod. (There are other players worth considering out there, like the Sony Walkman X,  And We Make HomePage And WebSite AT <A href="http://www.akibare-hp.jp">;ホ�Eムペ�Eジ作�E</A><A href="http://www.blogdehp.jp">;ビジネスブログホ�Eムペ�Eジ作�Eビジネスブログ</A>  but I hope this gives you enough info to make an informed decision of the Zune vs players other than the iPod line as well.)

Naomi Karen Boult
Naomi Karen Boult United States
5/10/2014 7:49:36 AM #

�E�I'll gear this review to 2 types of people: current Zune owners who are considering an upgrade, and people trying to decide between a Zune and an iPod. (There are other players worth considering out there, like the Sony Walkman X,  And We Make HomePage And WebSite AT <A href="http://www.blogdehp.jp">Homepage Sakusei</A><A href="http://www.blogdehp.jp">;ビジネスブログホ�Eムペ�Eジ作�Eビジネスブログ</A>  but I hope this gives you enough info to make an informed decision of the Zune vs players other than the iPod line as well.)

Louisa Christiana Sinfield
Louisa Christiana Sinfield United States
5/10/2014 8:23:53 AM #

I'll gear this review to 2 types of people: current Zune owners who are considering an upgrade, and people trying to decide between a Zune and an iPod. (There are other players worth considering out there, like the Sony Walkman X,  And We Make HomePage And WebSite AT <A href="http://www.akibare-hp.jp">;ホ�Eムペ�Eジ作�E</A><A href="http://www.blogdehp.jp">;ビジネスブログホ�Eムペ�Eジ作�Eビジネスブログ</A>  but I hope this gives you enough info to make an informed decision of the Zune vs players other than the iPod line as well.)

Phyllis Chloe MacKenzie
Phyllis Chloe MacKenzie United States
5/10/2014 8:27:44 AM #

Have a excellent day!  Your WordPress is verty useful and nice Game information .  What? And We Make HomePage And WebSite AT <A href="http://www.blogdehp.jp">;ビジネスブログホ�Eムペ�Eジ作�Eビジネスブログ</A><A href="http://www.blogdehp.jp">;ホ�Eムペ�Eジ作�E</A>  . If you want to get more pageview , you can contact us .

Jeannie Jibson
Jeannie Jibson United States
5/10/2014 9:05:35 AM #

I'll gear this review to 2 types of people: current Zune owners who are considering an upgrade, and people trying to decide between a Zune and an iPod. (There are other players worth considering out there, like the Sony Walkman X,  And We Make HomePage And WebSite AT <A href="http://www.akibare-hp.jp">;ホ�Eムペ�Eジ作�E</A><A href="http://www.blogdehp.jp">;ビジネスブログホ�Eムペ�Eジ作�Eビジネスブログ</A>  but I hope this gives you enough info to make an informed decision of the Zune vs players other than the iPod line as well.)

Maisie Norton
Maisie Norton United States
5/10/2014 9:11:56 AM #

Sorry for the huge review, but I'm really loving the new Zune, and hope this, as well as the excellent reviews some other people have written, will help you decide if it's the right choice for you.And We Make HomePage And WebSite AT <A href="http://www.blogdehp.jp">;ビジネスブログホ�Eムペ�Eジ作�Eビジネスブログ</A> and  .

Maisie Norton
Maisie Norton United States
5/10/2014 9:46:00 AM #

I'll gear this review to 2 types of people: current Zune owners who are considering an upgrade, and people trying to decide between a Zune and an iPod. (There are other players worth considering out there, like the Sony Walkman X,  And We Make HomePage And WebSite AT <A href="http://www.akibare-hp.jp">;ホ�Eムペ�Eジ作�E</A><A href="http://www.blogdehp.jp">;ビジネスブログホ�Eムペ�Eジ作�Eビジネスブログ</A>  but I hope this gives you enough info to make an informed decision of the Zune vs players other than the iPod line as well.)

Jeannie Jibson
Jeannie Jibson United States
5/10/2014 9:50:00 AM #

�E�I'll gear this review to 2 types of people: current Zune owners who are considering an upgrade, and people trying to decide between a Zune and an iPod. (There are other players worth considering out there, like the Sony Walkman X,  And We Make HomePage And WebSite AT <A href="http://www.blogdehp.jp">Homepage Sakusei</A><A href="http://www.blogdehp.jp">;ビジネスブログホ�Eムペ�Eジ作�Eビジネスブログ</A>  but I hope this gives you enough info to make an informed decision of the Zune vs players other than the iPod line as well.)

Maisie Norton
Maisie Norton United States
5/10/2014 10:22:44 AM #

I'll gear this review to 2 types of people: current Zune owners who are considering an upgrade, and people trying to decide between a Zune and an iPod. (There are other players worth considering out there, like the Sony Walkman X,  And We Make HomePage And WebSite AT <A href="http://www.akibare-hp.jp">;ホ�Eムペ�Eジ作�E</A><A href="http://www.blogdehp.jp">;ビジネスブログホ�Eムペ�Eジ作�Eビジネスブログ</A>  but I hope this gives you enough info to make an informed decision of the Zune vs players other than the iPod line as well.)

Deanna Shearsmith
Deanna Shearsmith United States
5/10/2014 10:29:34 AM #

Sorry for the huge review, but I'm really loving the new Zune, and hope this, as well as the excellent reviews some other people have written, will help you decide if it's the right choice for you.And We Make HomePage And WebSite AT <A href="http://www.blogdehp.jp">;ビジネスブログホ�Eムペ�Eジ作�Eビジネスブログ</A> and  .

Jeannie Jibson
Jeannie Jibson United States
5/11/2014 3:32:21 AM #

Sorry for the huge review, but I'm really loving the new Zune, and hope this, as well as the excellent reviews some other people have written, will help you decide if it's the right choice for you.And We Make HomePage And WebSite AT <A href="http://www.blogdehp.jp">;ビジネスブログホ�Eムペ�Eジ作�Eビジネスブログ</A> and <A href="http://www.akibare-hp.jp">;ホ�Eムペ�Eジ作�E</A> .

Maisie Norton
Maisie Norton United States
5/11/2014 3:50:13 AM #

Have a excellent day!  Your WordPress is verty useful and nice Game information .  What? And We Make HomePage And WebSite AT <A href="http://www.blogdehp.jp">;ビジネスブログホ�Eムペ�Eジ作�Eビジネスブログ</A><A href="http://www.blogdehp.jp">;ホ�Eムペ�Eジ作�E</A>  . If you want to get more pageview , you can contact us .

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading

About the author

I started as a VB6 developer, programming all kinds of applications. I also got involved in the development of a e-market in ASP.

When .Net was introduced, I had the privilege to start in a team of professionals and develop a framework. I learned a lot and started to work as a c#.Net consultant from then on.

After 2 years I also got the chance to work for several months with SharePoint. SharePoint kept chasing me all the years after and when the product got more and more mature I started to love it. Then SharePoint was a daily occupation for me. I implemented a large quality document management system at PMRL being the only developer/technical analyst. Working close together with the QA department we succeeded in making and improving a very good Quality document management system. Its used up until this day.

I worked for 6 years as a .Net consultant for 2 of the largest consultancy companies in Belgium. One of my last projects with the consultancy was creating a custom LIMS system in c#.Net. This was a success and the customer asked me to stay and help to expand and maintain this LIMS. I had great years in this company. There was a focus on innovation and a lot of opportunities for improving and developing new IS systems. Apart from several small projects I further more improved the custom LIMS system, created a SOP library based on SharePoint and a web based Skill matrix system to handle the skills of the employees in the company. 

Then I was involved in transferring the LIMS to a new lab in Singapore. This was done in a short time frame. The deployment was again a success and it passed the GLP inspection tests. I learned a lot from the Quality engineers about validation of computerized systems.

At my current job I have a wide range of challenges. Mainly I'm still working with .Net (VB.net and C#.Net). But outside of the Microsoft world I also do some ABAB programming in our SAP system. Like developing Adobe Forms and the program behind it. Or making small changes to customized code.

I'm working for 2 years with objective C now. Creating apps for factories across Europe. People in the factory are working with IPad to take pictures and upload them to orders and more. Already more and more projects are coming my way. The iOS apps are supported by a home made .Net architecture that exposes WCF services. Its working great. My second app is almost ready for deployment in factories. Now I started an App for the management team so they can manage projects on their IPAD and IPHONE. Next generation apps are build with a .Net Web API background combined with EF 6.0.

My linkedIn!

Month List

Tag cloud

Locations of visitors to this page