Adam Kinney on .NET

Hunting Godzilla in .NET...

February 2004 - Posts

How do you send an email via IIS on WIndows 2003 with Exchange 2003?

I don't like to use my blog as a way to find answers but I can't seem to find my answer anywhere.  So here's my scenario:

I am trying to send an email via ASP/ASP.NET on a Windows 2003 server.  Which is normally pretty easy.  The problem is, this server is also running Exchange Server 2003, which has taken control of the SMTP service (like its supposed too).  Is it just not possible to send mail through IIS?  It seems like everything I try fails.

Disclaimer: I am not an Exchange guru and I have looked for the answer, but most of the answers were for Exchange 2000 (which appears to be setup differently).

Any help or links would be gratefully received.

Posted: Feb 23 2004, 07:10 PM by AdamKinney | with 2 comment(s)
Filed under:
asp.netPro Mag : Readers Choice Awards

asp.netPRO magazine is collecting votes on developers' picks on best products available.  Take the time to vote on your favorite .NET application or component.

No, I am not affiliated with asp.netPRO or any of the software candidates, I am just in to giving out kudos when they're due.

NUFW : Unit Testing with nUnit

Last night at the .NET Users of Fort Wayne meeting, we had a talk on NUnit and unit testing presented by Eric Landes, the Corporate Coder.

Eric did a good job presenting nUnit and really the whole Test-Driven philosophy of programming.  We had one member in the group who had any experience with NUnit, but otherwise this subject was completely new to the rest of us.

I was impressed with NUnit and what it can do.  I am going to experiment by bringing in a TestHarness for one of my current projects, just to see how it works out.

I'm definitley sold on the idea of testing class libraries and services, but Test-Driven Development is still a stretch for me.  Its just a different way of thinking, when it comes to software development.  I am intrigued though, and plan to study more on the subject and Extreme Programming as a whole.

Thanks again to Eric, for stopping by (if you happen to read this somehow).

We've got a full schedule coming up at NUFW, including Microsoft and INETA speakers; but my March speaker had to reschedule, so if you are interested in speaking at our user group in little old Fort Wayne Indiana, please send me an email.

Posted: Feb 12 2004, 04:40 AM by AdamKinney | with no comments
Filed under:
How Do I Find My Technical Information?

Following up to Scott Mitchell's How Do You Find Your Technical Information?, here's my answer.

I am always reading at least one technical book.  This is normally not for any specific answer, but I read through the book like a novel, to increase my knowledge and allow for ideas when it comes time to plan something.

Otherwise, I just read blogs now.  The beauty of that is that people are sharing code or they are linking to someone else sharing code.  I think with blog reading, I have more starting points.

If an issue comes up, I can associate someone somewhere who has said something about my problem or design consideration.  I may be lead to an article or a conversation in a forum or blog.

If I have no association point to start with I go to Google, then maybe Google Groups, and then possibly dotnet247.com.

Posted: Feb 10 2004, 03:03 PM by AdamKinney | with 3 comment(s)
Filed under:
What's the default?

To me it seems rather difficult to find the defaults of a method or constructor when reading through MSDN Documentation.

Take the HttpResponse.Redirect Method for example,  it has two overloads and in the second one you can pass a boolean.  What's the default of the boolean when you don't pass it using the first overload?

Now through testing or reading you could figure it out, but to me it seems like defaults should be shown on the page in an obvious manner.

Am I the only one who has noticed this?

Posted: Feb 09 2004, 09:04 PM by AdamKinney | with 7 comment(s)
Filed under:
Dev Days : Chicago Event

I got an email today with my www.mydevdays2004.com login information.

This is a neat effort (chance to win an XBOX if you login).  The site provides links on information to get prepped for the topics that will be discussed at Dev Days (Security - Smart Client and Website).  With myDevDays2004.com and DevDaysBloggers.net, this one day event is becoming an event to talk about.  And now that we are all talking about it, I'm sure more people will attend.

I will be attending the Chicago event along with .NET blogger Erik Porter.  If anyone wants to get together after the big event, we'd be happy to meet.  If you are interested, leave a comment.

New User Group website, Fort Wayne IN

After running the user group for almost a year, I've finally created a functional website for our group .NET Users of Fort Wayne.

By functional, I mean that you can register as a member.  I've been running the newsletter off of a distribution list in Outlook 2003, which was never robust enough (sometimes even difficult, when trying to use the list to Bcc:)

I've also added a library which lists out all the books we have in our user group library, and in the near future I will complete the online check-out or reserve of books.

Lots of neat possiblities to use the website as a tool to grow our group.

And of course, since I am a .net fanatic, I couldn't bend to using an already created portal site.  I had to make my own! :p

Posted: Feb 09 2004, 02:30 PM by AdamKinney | with 1 comment(s)
Filed under:
Internet Explorer Security Update 832894

So I installed the latest patch (832894) for IE, especially since it was critical and I don't wish to be spoofed in my own browser.  It installed smoothly like any other Windows Update, BUT now I have a problem.

If I right-click on a link, I can no longer Open in New Window.  A new window is opened but from there it freezes, title bar and borders but that's it, no content-filled center.

So now the day has finally come and Mozilla Firebird is my default browser, where I can open a link in a new window or even in a new tab.  Sweet software for just being a tech preview.

UPDATE: Thanks to a comment left by Aaron Selvan, who pointed me to this support link; my IE problem is solved.  I had to re-register Oleaut32.dll.

I think I was just looking for an excuse to switch to Firebird.  I still use both, but its just a battle on who gets the Default Browser spot.

Paste as HTML, but not really...

So you copy some text from a page on MSDN.  You Paste it into your ASPX page in VS.NET and you get something like this:

<pre class="syntax"><b>public static </b><a href="http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystembooleanclasstopic.asp">bool</a><b> IsMatch(</b> <b> </b><a href="http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemstringclasstopic.asp">string</a><b> </b><i>input</i><b>,</b> <b> </b><a href="http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemstringclasstopic.asp">string</a><b> </b><i>pattern</i> <b>);</b></pre>

But then if Paste as HTML you get something like this:

public static bool IsMatch( string input, string pattern );

So when I ask it to Paste it copies all of the formatting and adds the HTML markup to the pasted text, but when I ask it to Paste the text from my clipboard as HTML, it posts just the text without the HTML tags.  Maybe it should be called Paste as HTML without the HTML Tags?

Maybe I'm the only confused and who sees it as backwards...

More Posts