About the author

Steven HarmanSteven Harman is a passionate developer who believes that writing great software isn't just a job, its a craft.

ASP.NET MVP

For recent posts and more about me, scroll to the bottom.

Subscribe

  • Subscribe to my feed. via RSS
  • Subscribe via email via email

Jobs

Badges

  • Subtext Project
  • Support Subtext
  • HiddenNetwork.com Banner

.Text Setup Issues & Fixes... well here's a few of mine at least.

So, I ran into several issues while trying to get .Text set up on my server(s). To start, I wanted a single Blog, that would be hosted on Box1 (Win2k Server w/IIS 5.0) and would use a database on Box2 (Win2k3 Server w/ MS SQL Server 2000). Issues I encountered:
  • Server Error in '/blog' Application
    The problem was with the Web.Config Configuration File. The comments at the very top of the file need to be removed, or moved inside the <?xml version="1.0" encoding="utf-8" ?> tag.
  • SQL Server does not exist or access denied.
    This could be a lot of things, but for me it had to do with my connection string. I had a specifcally named instance of my SQL Server (I chose not to use the default instance name when I installed the SQL Server) and you need to include this in your connectionString. In your Web.Config file find the DbProvider tag, and make sure that your connection string looks like this:
    connectionString = "Password=myPassword; Persist Security Info=True; User ID=myUserName; Initial Catalog=myDatabaseName; Data Source=myServerName\myNamedInstance"
    Here the things in bold should be changed to reflect your particular database settings, and the item in orange is the named instance of your SQL Server.
  • When trying to run the DotTextHelper.exe to set up a blog I encountered the following error:
    System.Security.SecurityException: Request for the permission of type System.Data.SqlClient.SqlClientPermission, System.Data, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed. at System.Security.CodeAccessSecurityEngine.CheckHelper(PermissionSetgranted Set, PermissionSet deniedSet, CodeAccessPermission demand, PermissionToken permToken) at System.Security.CodeAccessSecurityEngine.Check(PermissionToken permToken, CodeAccessPermission demand, StackCrawlMark& stackMark, Int32 checkFrames, Int32 unrestrictedOverride) at System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap, StackCrawlMark& stackMark) at System.Security.CodeAccessPermission.Demand() at System.Data.SqlClient.SqlConnectionString.Demand(SqlConnectionString constr) at System.Data.SqlClient.SqlConnection.Open() at DottextHelper.CreateBlog.AddBlog(String[] items)
    Here the problem was the DotTextHelper (DTH). You must be sure to run the DTH from the machine that the database is on!!! And by that, I mean that the DotTextHelper.exe must physically sit on the same machine as the database.

What others are saying.

# re: .Text Setup Issues & Fixes... well here's a few of mine at least.
Gravatar Steve Harman
Feb 21, 2006
I was just looking through my server logs today and noticed that a good number of people are still finding their way to this post by way of Google, MSN, Yahoo!, etc... with the search term "DotTextHelper".

This leads me to believe there are a number of you out there in the process of installing dotText (or trying to anyway). If that is the reason that you're here, then I'd like to point you toward subText, the next great .Net blogging engine.
"Subtext is a personal blog publishing platform that focuses on usability, elegance, and simplicity... subText is an open source project licensed under the BSD license. It is a fork of the popular dotText blogging platform."
We will be releasing version 1.0 literally any day now (03-01-2006 at the latest). I believe that subText is a major step forward from the legacy dotText engine. I ought to know... I'm one of several developers working to bring you the best .Net blogging engine around. :) So, go grab your self a copy! [https://sourceforge.net/projects/subtext/]
Comments have been closed on this topic.