<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Love that ASP.NET and SQL Server : ASP.NET</title><link>http://blogs.msdn.com/benmiller/archive/tags/ASP.NET/default.aspx</link><description>Tags: ASP.NET</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Setting up a new .Text site (personal)</title><link>http://blogs.msdn.com/benmiller/archive/2004/10/22/246139.aspx</link><pubDate>Fri, 22 Oct 2004 10:45:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:246139</guid><dc:creator>benmiller</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/benmiller/comments/246139.aspx</comments><wfw:commentRss>http://blogs.msdn.com/benmiller/commentrss.aspx?PostID=246139</wfw:commentRss><description>&lt;P&gt;I thought I would post my adventures with .Text setup so that some people may benefit.&lt;/P&gt;
&lt;P&gt;I currently have a blog at &lt;a href="http://blogs.msdn.com/benmiller"&gt;http://blogs.msdn.com/benmiller&lt;/A&gt; and this is my space on Microsoft’s turf.&amp;nbsp; I have had a personal blog out on &lt;A href="http://www.benmiller.net/blog"&gt;www.benmiller.net/blog&lt;/A&gt; and have not done much to publicize it.&amp;nbsp; So I thought that instead of cluttering up the site and having to avoid the /blog application on benmiller.net I would make a blog site at &lt;A href="http://blog.benmiller.net"&gt;http://blog.benmiller.net&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;So the first thing I did was to put the code that I used for my original personal blog on my new site.&amp;nbsp; Then I used the same database which is a great thing about .Text and the configs.&amp;nbsp; I then proceeded to do the IIS mapping described, which is to map .* to the aspnet_isapi.dll in IIS. I tried to pull up the site and it was gross looking.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;I got really frustrated after I added the blog to the blog_config table and browsed the new site and got nothing but a weird page.&amp;nbsp; To make a long story short, I found out that if you have the .* mapped to the ISAPI, then you have to add the following lines to the web.config:&lt;/P&gt;
&lt;P&gt;&amp;lt;HttpHandler pattern = "(\.config|\.asax|\.ascx|\.config|\.cs|\.csproj|\.vb|\.vbproj|\.webinfo|\.asp|\.licx|\.resx|\.resources)$" type = "Dottext.Framework.UrlManager.HttpForbiddenHandler, Dottext.Framework" handlerType = "Direct" /&amp;gt;&lt;BR&gt;&amp;lt;HttpHandler pattern = "(\.gif|\.js|\.jpg|\.zip|\.jpeg|\.jpe|\.css)$" type = "Dottext.Common.UrlManager.BlogStaticFileHandler, Dottext.Common" handlerType = "Direct" /&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;You can remove the above if you do not map .* to aspnet_isapi.dll.&lt;/P&gt;
&lt;P&gt;Then I found out that I could view the blogs, but could not for the life of me login to the admin.&amp;nbsp; I could post an entry from another application (newsgator) and the post would show up.&amp;nbsp; Well, after a long time of trying whatever I could, I thought I would try to login to my blog.benmiller.net on another machine.&amp;nbsp; Well, I was able to.&amp;nbsp; Now what?&lt;/P&gt;
&lt;P&gt;I noticed that when I went to &lt;A href="http://www.benmiller.net/blog"&gt;http://www.benmiller.net/blog&lt;/A&gt; that I was already logged in so I could just go into admin.&amp;nbsp; I began to think about cookies, and since I had different usernames and passwords for each site, there had to be a conflict.&lt;/P&gt;
&lt;P&gt;This is what I found.&amp;nbsp; I found out that a cookie was being written for benmiller.net and it was conflicting with me trying to login to the admin on &lt;A href="http://blog.benmiller.net"&gt;http://blog.benmiller.net&lt;/A&gt; since benmiller.net is the root domain.&amp;nbsp; When I deleted that cookie, I was able to login to my admin on blog.benmiller.net.&lt;/P&gt;
&lt;P&gt;I am clear now and will make sure that I don’t have conflicting cookies any more.&lt;/P&gt;
&lt;P&gt;I hope that this helps someone, and I would be happy to answer any questions about what I found, as this was a 3 day process.&lt;/P&gt;
&lt;P&gt;Happy Blogging.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=246139" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/benmiller/archive/tags/ASP.NET/default.aspx">ASP.NET</category></item><item><title>Rob Howard will be speaking at SLC User Group</title><link>http://blogs.msdn.com/benmiller/archive/2004/10/06/238674.aspx</link><pubDate>Wed, 06 Oct 2004 20:48:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:238674</guid><dc:creator>benmiller</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/benmiller/comments/238674.aspx</comments><wfw:commentRss>http://blogs.msdn.com/benmiller/commentrss.aspx?PostID=238674</wfw:commentRss><description>&lt;div class="Section1"&gt; &lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;&lt;span style='font-size:12.0pt'&gt;I am excited to be able to have &lt;a href="http://weblogs.asp.net/rhoward"&gt;Rob Howard&lt;/a&gt; come and speak to our &lt;a href="http://www.utahdnug.org/"&gt;User Group&lt;/a&gt; tomorrow at 6:00 PM. &amp;nbsp;Salt Lake is growing in the .NET space and in the recognition of the need for User Group meetings. &amp;nbsp;Rob is coming with the &lt;a href="http://www.ineta.org/"&gt;INETA&lt;/a&gt; Speakers Bureau and will be our speaker for the night.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;&lt;span style='font-size:12.0pt'&gt;For those in the Salt Lake Area, join us for a great night of ASP.NET 2.0 stuff.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=238674" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/benmiller/archive/tags/ASP.NET/default.aspx">ASP.NET</category></item><item><title>Directory name changes in ASP.NET 2.0</title><link>http://blogs.msdn.com/benmiller/archive/2004/09/14/229202.aspx</link><pubDate>Tue, 14 Sep 2004 10:16:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:229202</guid><dc:creator>benmiller</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/benmiller/comments/229202.aspx</comments><wfw:commentRss>http://blogs.msdn.com/benmiller/commentrss.aspx?PostID=229202</wfw:commentRss><description>&lt;div class="Section1"&gt; &lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;&lt;span style='font-size:12.0pt'&gt;Be sure to get a look at &lt;a href="http://blogs.msdn.com/bgold/"&gt;Brian Goldfarb&amp;rsquo;s&lt;/a&gt; post on &lt;a href="http://blogs.msdn.com/bgold/archive/2004/09/13/229118.aspx"&gt;directory name changes&lt;/a&gt; for ASP.NET 2.0.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;&lt;span style='font-size:12.0pt'&gt;&amp;nbsp;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=229202" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/benmiller/archive/tags/ASP.NET/default.aspx">ASP.NET</category></item><item><title>Christian Weyers WsContractFirst add-in</title><link>http://blogs.msdn.com/benmiller/archive/2004/08/23/219139.aspx</link><pubDate>Tue, 24 Aug 2004 03:45:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:219139</guid><dc:creator>benmiller</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/benmiller/comments/219139.aspx</comments><wfw:commentRss>http://blogs.msdn.com/benmiller/commentrss.aspx?PostID=219139</wfw:commentRss><description>&lt;div class="Section1"&gt; &lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;&lt;span style='font-size:12.0pt'&gt;&amp;nbsp;I just downloaded &lt;a href="http://weblogs.asp.net/cweyer" title="http://weblogs.asp.net/cweyer"&gt;Christian Weyer&amp;rsquo;s&lt;/a&gt; &lt;a href="http://www.thinktecture.com/Resources/Software/WSContractFirst/default.html" title="http://www.thinktecture.com/Resources/Software/WSContractFirst/default.html"&gt;WsContractFirst&lt;/a&gt;&amp;nbsp;Visual Studio Add-In. &amp;nbsp;I wanted to try it because I want to bind the results of the webservices I call to a DataGrid or another databind-able control. &amp;nbsp;This worked like a champ.&amp;nbsp; On the above site it explains what the tool does, but I wanted to tell Christian that it was a very nice thing to have. &amp;nbsp;Making the public fields into Properties is a great time saver as I would have had to do it by hand.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;&lt;span style='font-size:12.0pt'&gt;Integration with Web Services will be more fun now.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt; &lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;&lt;span style='font-size:12.0pt'&gt;&amp;nbsp;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=219139" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/benmiller/archive/tags/.NET/default.aspx">.NET</category><category domain="http://blogs.msdn.com/benmiller/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://blogs.msdn.com/benmiller/archive/tags/Web+Services/default.aspx">Web Services</category></item><item><title>Imaging in .NET</title><link>http://blogs.msdn.com/benmiller/archive/2004/07/27/197872.aspx</link><pubDate>Tue, 27 Jul 2004 09:49:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:197872</guid><dc:creator>benmiller</dc:creator><slash:comments>3</slash:comments><comments>http://blogs.msdn.com/benmiller/comments/197872.aspx</comments><wfw:commentRss>http://blogs.msdn.com/benmiller/commentrss.aspx?PostID=197872</wfw:commentRss><description>&lt;div class="Section1"&gt; &lt;p&gt;I was playing around with an ASP project and used the ASPImage from &lt;a href="http://www.serverobjects.com/"&gt;serverobjects.com&lt;/a&gt; to do some stuff in ASP to resize and change DPI, etc.&lt;/p&gt; &lt;p&gt;But I wanted to do this in &lt;a href="http://www.asp.net/"&gt;ASP.NET&lt;/a&gt; so that I could mass change the image sizes and create thumbnails (sort of).&amp;nbsp; So I did a &lt;a href="http://www.google.com/"&gt;google&lt;/a&gt; search of &lt;a href="http://www.google.com/search?q=image+resize+.net&amp;amp;hl=en&amp;amp;lr=&amp;amp;ie=UTF-8&amp;amp;safe=off&amp;amp;start=10&amp;amp;sa=N"&gt;[image resize .net]&lt;/a&gt; and I got some interesting links and some were good and others were not.&amp;nbsp; I found &lt;a href="http://www.eggheadcafe.com/articles/20030515.asp"&gt;this link&lt;/a&gt; on the second page to resize images and I tweaked it to make them the size I wanted to and to keep proportions correct.&amp;nbsp; I was surprised how easy it was to get it to generate thumbnails for me.&amp;nbsp;&lt;/p&gt; &lt;p&gt;I then went after changing the DPI of the image to 72. &amp;nbsp;By default, I found that the Framework uses 96 dpi for it&amp;rsquo;s images and that if I used the System.Drawing.Image.SetResolution(int, int) that I could change it from 96 to 72. &amp;nbsp;One thing I found that I could not change the original graphics DPI, I had to copy that image into the new graphic at that dpi. &amp;nbsp;It worked and I was very happy to learn this.&amp;nbsp; Not earth shattering, but a new one for me.&lt;/p&gt; &lt;p&gt;Happy Imaging&amp;hellip;&lt;/p&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=197872" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/benmiller/archive/tags/.NET/default.aspx">.NET</category><category domain="http://blogs.msdn.com/benmiller/archive/tags/ASP.NET/default.aspx">ASP.NET</category></item></channel></rss>