How Do You Add a New Blog to Multi-Blog BlogEngine.NET?

by BizTron 8. March 2010 21:19

Add a New Blog to Multi-Blog

There was a script created for SqlBlogProvider that emulates that portion of the SQL Setup script for “standard” BlogEngine.NET.  I actually modified it several times and realized that I don’t like that approach as much as anyone, but had to take time to build a UI.  Almost as hard as it is to select a name for a new project in Visual Studio, I had to think about how I wanted to access this maintenance utility.  The first approach, basically where I am now, was to whip up a prototype in a Windows form, using a separate class (library) for the functionality, accessing the database via the same Linq2SQL provider.  It worked, of course, but it’s not a perfect solution by any stretch.

 

Can anyone identify the correct answer or perfect solution?

Maybe not, but for “our” purposes it means the one that helps everyone or “most” everyone who will use this approach. 

 

So who is “Everyone?”

We are the people who want to use BlogEngine.NET for its ease of use, intuitive and extendible architecture, and add on the multi-blogging capability.  We are NOT a group of perfectionists, or corporations with bottomless pockets, nor are we people who are happy to blog all day, everyday on a single blog.  We are also those who may want to rip any solution apart and improve it for our own needs…again, basically where I am today.

 

How to add a new blog, manually:

First you need to execute a script or add rows to several tables by hand.  BlogEngine Multi-Blog Dog Food contains the SQL script “AddNewBlogHost.sql” which can make it easier to add a new Blog and Host to your multi-blog environment .  Again, this is not the ideal solution, but the winform code has yet to be tested thoroughly.  I’ll post it next chance I get anyway.

 

What else you need to know: More...

Tags: ,

Blogging | BlogEngine.NET

BlogEngine Multi-Blog Dog Food

by BizTron 8. March 2010 07:00

Current Multi-blog enabling LINQ to SQL BlogEngine.NET Provider. (Updated 3/12/10)

I have been asked for this code so that we can share the multi-blog solution that has been working for me for almost a year now.  This is the time to check it out and help make it work for yourself and others.  I’m going to continue to “dog food” this here.  Current version of BlogEngine.NET supported by this provider, as of this post, is 1.6.0.3.  Although I need to update my own site(s) from 1.6.0.1.

 

How will I update?

Mine is easy.  Drop in the new DLLs.

If I do a code “diff” and find the Web code to have changed recently (which I’m sure it did) I will copy those specific files to the Web folder.

 

How do you update from a clean BlogEngine.NET 1.6.0.3 code base?

  1. You should download the latest BE.NET code from codeplex and create a folder for the solution. 
  2. Extract the code from the zip into your solution folder. (…and follow the directions for setting up a stand-alone SQL Server Blog)
  3. Copy and unzip the    folder into the solution folder with the Core and Web projects.
  4. Add an existing Project to the solution, select the BlogEngine.Linq2Sql project.
  5. Verify the References (to project “BlogEngine.Core”)
  6. Add a reference to “BlogEngine.Linq2SQL” from the “BlogEngine.NET” Web site.
  7. Change Target Framework on BlogEngine.NET Web site to “.NET Framework 3.5
  8. Execute the SQL build script “Linq2SqlUpdate.sql” to add schema to support Multi-Blogs.
    • Make sure to run against the Database you created in Step 2.
  9. Assuming you are using the correct connection string, modify the Web.Config
    • blogProvider, membership, roleManager
    • See: Web.Config.xml

 

More...

Tags: ,

ASP.NET | BlogEngine.NET | LINQ | SQL Server | Blogging

BlogEngine.NET 1.6 is released

by BizTron 31. January 2010 23:35

But why is it now different from BlogEngine.NET 1.5.1.46?

I downloaded it yesterday and Diffed to find out what I need to change to keep up…and it was the “version number.”

 

So, I guess keeping up with several code changes over the past few months and making sure my version of the Multi-blog capable SqlBlogProvider was in tune paid off, only to realize I’m still one of the very few to implement such a “clean” version of multiblog BlogEngine.NET.  I’ve been working on an Entity Framework provider since this could replace or certainly enhance the capabilities of BlogEngine, but it may really be just another stepping stone to work out a new architecture to support BlogEngine Like capabilities for .NET 4.0 and IIS 7 using MVC, Entity Framework and perhaps WCF for integration and remote administration capabilities.

At least I’m learning a lot about Open Source capabilities and limitations. Does anyone want to legitimately tackle a Next Gen BlogEngine with me?  Of course, I would not want to steal the branding created here unless there is a parallel effort to create a distinctly separate single Blog, Multi-user system such as BlogEngine.NET and a more scalable, database centric, multi-blog, real-time administration console application.

Design first, Agile methodology, Eat-your-own-dog-food approach with lots of prototyping.

Or I could just use BeerHouse or DotNetNuke, I guess.  Need to go get some additional experience.

 

See Y’all l8r,

Dave (BizTron)

Tags: ,

BlogEngine.NET | Blogging

MultiBlog Implementation of BlogEngine.NET is Now

by BizTron 15. December 2009 08:32

BlogEngine.NET Core Version 1.5.1.31 is running on this server as of this Post.

ref: (Waiting for a Minor Release of BlogEngine.NET with MultiBlog)

 

I based my implementation on SqlBlogProvider, but since it was out of synch with BlogEngine.NET I had a dilemma.  My biggest complaint about BlogEngine.NET if I had any at all was the fact that sometimes changes come at a snails pace.  This is not to say that you can’t find a new build three every other day, but that the major enhancements I want don’t always take, or in the case of MultiBlogs, the most popular enhancement to date, is completely ignored.  Once Jacob Proffitt created a solution, I figured it would be rolled into BlogEngine.NET.

OK, so I was Way off on this one. So here’s a strategy:

  • Get the latest BlogEngine.NET code and use it as a baseline. (1.5.1.31)
  • Get the latest SqlBlogProvider code and ditto. (27978)
  • Make sure to upgrade Everything to .NET 3.5
  • Modify the SQL Database Schema to include Blog and Host tables, and BlogDataStoreSettings
  • and add BlogId columns where necessary.
  • Recreate the DBML for the new schema.
  • remove references to multiblog="true" because they don’t matter anymore.
  • Simplify and verify.

OK, done!!!  Now what?

I have a set of Blogs running an older version of everything and now I have a new schema.  Also, I have new capabilities and only a SQL script to modify or add new blogs.  It is simple but always required modifications before running.

  • Windows Form, new simple DBML for required tables…because the Provider model is too complex,
  • and Done.

Oh, and I needed a migration tool and some more fun with Linq to SQL, so I created a one-off migration tool with a useless UI that couple be done from a command line, but I thought I might need more.

And, it’s running now!!!

 

BlogEngine.NET code is now at version 1.5.1.39 (change set 31351)

 

Now I have to isolate changes, bug fixes, enhancements I want and implement…but this is the exact scenario I want to avoid.

  • Do I create a Branch that uses most of BlogEngine.NET?
  • Should I start over?

I think the best option is to start a new core based on current or future technology and leave behind what can be upgraded.  Linq, Entity Framework, WCF, Silverlight 4, .NET 4.0 can be used much more.  MVC can become a solid base for the UI, maybe. This is not a hard nut to crack, and get’s easier with time and new technology.  The hardest part about using BlogEngine.NET today is that it takes longer to fix than to build again from scratch.

It’s time for a new architecture.  I’m glad I didn’t create one myself a few years ago when BlogEngine.NET was introduced, but I will be happy when I can safely deploy a new version based on those principles.

Tags:

Blogging | BlogEngine.NET | Architecture | Entity Framework | LINQ | SQL Server

This is My Next Workstation Platform

by BizTron 11. December 2009 16:00

Please support my technical-development community support initiative and send checks for any amount to help offset the cost of my next “ergonomic” workstation. You KNOW I’ll support the community MUCH better with this in my office. :)

Tags:

Development | Blogging | General

Multiple Blogs using BlogEngine.NET

by BizTron 7. September 2009 19:28

This is a thread from BlogEngine.NET on CodePlex. (Multiple blogs on same installation

I would like to see the current dev plan, if it exists yet.  If I knew we/they/you were going to use SqlBlogProvider, and even integrate it into the core, I would like to help.  If there was also a way to allow multiple blogs within a single application, that would be great too.  Should everyone just create a new branch?

If we don't know the future plans, dates, implementation, etc., we're stuck deciding whether to wait or risk going forward with an alternative branch and missing out.  Communication would be good.  I may be missing something.  I've stated recently that I spend more time modifying current BE.NET code than I ever do Blogging and I have over a dozen blogs.  1.5.1.22 is currently stable, from my perspective with SqlBlogProvider supporting all of those blogs on a single folder, with a single SQL database and schema.  The only (minor) issue is still creating multiple Web Applications and pointing them to the same folder.  I can live with that on an 8-way server with 2 GB of RAM.

It’s related to Multiple blogs in one BlogEngine.NET instance and BlogEngine.Net for SQL Server

More...

Tags: , ,

BlogEngine.NET | Blogging | C# Development

BlogEngine.NET SqlBlogProvider has Post update issue

by BizTron 10. August 2009 06:32

This is what you see when attempting to rate a new post. Click on a Star to rate the post.  Notice the infinitesimally small rating that is generally added when creating a first post.  This may be something I did myself while trying to “fix” the Add a new Blog script.

image

 

These are the symptoms I could find so far, but I cannot isolate the DateTime property that is causing the Exception.More...

Tags: ,

BlogEngine.NET | Blogging | Architecture | LINQ | SQL Server | ASP.NET | .NET

Twitter attacked via DDoS, API suffers

by BizTron 8. August 2009 01:21

For anyone who recently noticed issues with Twitter on several fronts, you’ll want to read this.  I’m not sure if it’s made the rounds on TV news yet but it answered some questions and caused some concern.  It’s always blissful until someone slams the door in your face, or cut’s you off on the road, flips you off, etc.  No idea why this would happen, but it did.  Now we all need to BOTH find ways of keeping these things from happening, within reason, and to prosecute and slam the door on those idiots who do this for fun, revenge, or terrorism.

App developers stung by Twitter's DOS woes

I received this message from Andrew Badera:

LinkedIn

MESSAGES

Andrew Badera wrote:

Though I think Computerworld took a slightly more negative spin to my input than my email really conveyed (in) toto, this is a decent look at the Twitter DDoS situation from the perspective of Twitter app developers like myself.

App developers stung by Twitter's DOS woes

Computerworld | August 07, 2009 | 06:04 PM PDT

Developers who built applications for Twitter and generate money from them have been hard-hit by the micro-blogging service's many hours of downtime in the past day, as hackers pummel Twitter with an ongoing denial-of-service attack

Tags: ,

Blogging

Powered by BlogEngine.NET 1.6.2.1
Theme by Extensive SEO




CompUSA

Elan Form Etch | Hard-shell Etched Leather Case

Handango Inc.

J&R Computer/Music World

Hot Offers

OmahaSteaks.com, Inc.

Tech Depot - An Office Depot Co.

TigerDirect

Toshiba - Toshibadirect.com