Using livewriter Options
mullog
Posted: Wednesday, June 20, 2007 6:20:37 PM

Rank: Devotee

Joined: 7/20/2006
Posts: 75
Location: Italy
I'm very interested in livewriter but I have never been able to get it to work properly.
in the books section on v3.umbraco.org you can find these informations http://v3.umbraco.org/documentation/books/how-to-use-livewriter-for-umbraco-books
Acording to this you should only have to point to your website/blog like http://www.yourblog.x
This does not work for me so I have to select the type of blog I am using and I select custom (metaweblog api) and enter the following path http://www.yourblog.x/umbraco/channels.aspx

It connects but gives the error "Unable to download Template" gives a detailed error message and a button to press ok.

It created a test post for detecting stuff but when I try to publish to the blog I get the following error message
"Server Error 0 Occurred

Object reference not set to an instance of an object."

I'm not sure if this is a bug or a config error on my half so I post this here before I post this as a bug on codeplex.

"We come from the land of the ice and snow, From the midnight sun where the hot springs blow"
chrism
Posted: Wednesday, June 20, 2007 9:42:45 PM
Rank: Devotee

Joined: 1/11/2007
Posts: 57
i get the same
kalpa
Posted: Thursday, June 21, 2007 7:34:55 AM

Rank: Fanatic

Joined: 7/19/2006
Posts: 492
Location: Göteborg, Sweden
I managed to get LW 1 to work, but I've not been able to even start V2 :-(. It just throws an error about a faulty URL an exits during launch... Anyone else that has experienced this?

// ;) Kalle

" - Yeah I'd like to share your point of view, as long as it's my view too... (http://www.d-a-d.dk/lyrics/pointofview)
hartvig
Posted: Thursday, June 21, 2007 10:46:30 AM

Rank: Addict

Joined: 3/17/2008
Posts: 953
Location: Nyborg, Denmark
@Kalle: You'll need to completely uninstall beta1, including all registry information (regedit.exe fun).

I'll be producing a screencast on how to use Live Writer with umbraco. The final v3 supports automated configuration via the new Live Writer Manifest concept in the LW beta2 as well as full support for excerpts, categories and even adding categories from inside LW.

Cheers,
Niels...

Jeeeez, did I really start this :-)
drobar
Posted: Thursday, June 21, 2007 2:46:23 PM

Rank: Umbracoholic

Joined: 9/8/2006
Posts: 1,698
Location: KY, USA
I couldn't get LW beta2 to run on XP without an error so finally returned to LW beta1. On Vista I can run LW beta2 with no problem.

cheers,
doug.

MVP 2007-2009 - Official Umbraco Trainer for North America - Percipient Studios
kalpa
Posted: Thursday, June 21, 2007 2:57:27 PM

Rank: Fanatic

Joined: 7/19/2006
Posts: 492
Location: Göteborg, Sweden
@Niels: Thanks for pointing me to regedit ; ) I did a search for "live writer" and deleted everything that matched and now I managed to launch WLW :w00t:

And when I had edited my users settings in the "Channels" Tab, clicked save AND touched web.config WLW managed to connect successfully!

@Douglas: The issue here was absolutely the search'n'delete for "live writer" in the registry. I downloaded the Beta remove tool (linked from the WLW blog) but apparently it just removes Betas of V2 since my errors with B1 weren't affected.

Now WLW works fine and makes really blurry pictures if you "Print Scrn" and paste directly into Live Writer... ;(

I also tried with Word 2007 and when I directed Word to the page /umbraco/channels/word.aspx it worked fine from there too...

But I just can't figure out how to work with structures!?
I can only manage documents within the same page depth/on the same level.
(A guess might be that MetaBlogAPI doesn't support folder structures !?)

// ; ) Kalle

" - Yeah I'd like to share your point of view, as long as it's my view too... (http://www.d-a-d.dk/lyrics/pointofview)
kalpa
Posted: Thursday, June 21, 2007 3:19:58 PM

Rank: Fanatic

Joined: 7/19/2006
Posts: 492
Location: Göteborg, Sweden
And I just have to tell you all;
Web publishing via Word 2007 just rocks!!

I made a really complex document with lots of different "Smart Art" (new in 2007, way beyond word art) and graphs and images and tables. When I felt happy with my creation I hit "Publish" and voila! A few seconds later everything were convert to good quality web grapics and shapes.

Imagine the boost in web publishing this will give! Not to mention updates to graphics etc!!

No more finding the correct image original, modifying and exporting to gif, uploading and re-inserting, now all you need to do is hit publish!

Drawbacks? Of course! MS Made Word remember? ;)
A large amount of inline style attributes everywhere, but compared to the tag-soup we all have learnt to know as "Word HTML" no longer exists, the published page actually validates as XHTML Strict!

Maybe I'm way to euphoric, guess I'll find more drawbacks later...

// ; ) Kalle

" - Yeah I'd like to share your point of view, as long as it's my view too... (http://www.d-a-d.dk/lyrics/pointofview)
kalpa
Posted: Thursday, June 21, 2007 3:42:10 PM

Rank: Fanatic

Joined: 7/19/2006
Posts: 492
Location: Göteborg, Sweden
And finally a follow up to Gilis's original thread that I hi-jacked, Sorry Gisli :blush:

I also get the error:
Quote:

Server Error 0 Occurred

Object reference not set to an instance of an object.


When I tries to open posts from my channel (root level -1)

A little http sniffing shows that this is what Umbraco returns to WLW:

Code:
<methodResponse>
<fault>
<value>
<struct>
<member>
<name>
faultCode
</name>
<value>
<i4>
0
</i4>
</value>
</member>
<member>
<name>
faultString
</name>
<value>
<string>
Object reference not set to an instance of an object.
</string>
</value>
</member>
</struct>
</value>
</fault>
</methodResponse>


" - Yeah I'd like to share your point of view, as long as it's my view too... (http://www.d-a-d.dk/lyrics/pointofview)
hartvig
Posted: Thursday, June 21, 2007 10:15:23 PM

Rank: Addict

Joined: 3/17/2008
Posts: 953
Location: Nyborg, Denmark
It's all fixed in the final release, which got out 15 minutes ago.

If you click the little help icon in the template editor and scroll to the bottom of the window you'll see to elements that you can insert to the HEAD element of your template to ensure maximum Live Writer compatibility as well as auto configuration. Very nice.

Hope this helps!

/n

Jeeeez, did I really start this :-)
kalpa
Posted: Sunday, June 24, 2007 2:45:48 PM

Rank: Fanatic

Joined: 7/19/2006
Posts: 492
Location: Göteborg, Sweden
@Niels, yesterday I installed V3 Release and according to my tests this error still hangs in there...

When I tries to Open blog posts in WLW 2 I get this error:

Quote:
Server Error 0 Occurred

Object reference not set to an instance of an object.


I also receives an error (without further info) from Word 2007.

When I sniffed the HTTP traffic using Charles i found this reply:
Code:
<?xml version="1.0"?>
<methodResponse>
  <fault>
    <value>
      <struct>
        <member>
          <name>faultCode</name>
          <value>
            <i4>0</i4>
          </value>
        </member>
        <member>
          <name>faultString</name>
          <value>
            <string>Object reference not set to an instance of an object.</string>
          </value>
        </member>
      </struct>
    </value>
  </fault>
</methodResponse>



// Kalle

" - Yeah I'd like to share your point of view, as long as it's my view too... (http://www.d-a-d.dk/lyrics/pointofview)
kalpa
Posted: Sunday, June 24, 2007 2:50:27 PM

Rank: Fanatic

Joined: 7/19/2006
Posts: 492
Location: Göteborg, Sweden
Does this error message mean that you have to be a member to be able to use the "Open" functionality? I've only registered a normal umbraco user...

// Kalle

" - Yeah I'd like to share your point of view, as long as it's my view too... (http://www.d-a-d.dk/lyrics/pointofview)
kalpa
Posted: Sunday, June 24, 2007 11:36:40 PM

Rank: Fanatic

Joined: 7/19/2006
Posts: 492
Location: Göteborg, Sweden
Sorry, it actually worked great when you hadn't deleted the TinyMCE datatype by misstake...

Both from Word and WLW this is so great!!!

// ; ) Kalle

" - Yeah I'd like to share your point of view, as long as it's my view too... (http://www.d-a-d.dk/lyrics/pointofview)
chrism
Posted: Monday, June 25, 2007 8:20:06 PM
Rank: Devotee

Joined: 1/11/2007
Posts: 57
Hi,
as kalle kindof eluded to in a previous post, i was wondering how best i can get "members" to be able to have blog channels like users do... my main issue is not wanting to be doubling up the admin side of creating a user and a member, and updating passwords etc. if the membershipProvider code was in existence, or if it is possible to create a user as an actionHandler to a create member action (i don't think so), i would be interested to hear.

has anyone any ideas, or made similar efforts to do this?

cheers,
chris
hartvig
Posted: Monday, June 25, 2007 8:52:36 PM

Rank: Addict

Joined: 3/17/2008
Posts: 953
Location: Nyborg, Denmark
As a content channel is bound to a user and users and members (thank good) are completely separated concepts, there's no other way than doubling (and I would hardly make a big difference even if the membership provider was in place - you'd still have doubles, but the authentication would just make it seems you didn't).

However, as with the umbraco books, you can easily create a new user with a content channel, but which doesn't have console access (ie access to umbraco) using the api.

Here's the code for how it's done on http://v3.umbraco.org/documentation/books. The first part creates the book as a document objects, the second fetches the member login and password. Then it creates a user using the member credentials (but adds the book id to the login to ensure that one member can have multiple books), adds a member folder and then creates the channel. Around 20 lines of code - simple once you know the apis ;-)

Code:

           if (Page.IsValid)
            {
                Document book = Document.MakeNew(TextBoxTitle.Text,
                    bookDt,
                    User.GetUser(0),
                    Node.GetCurrent().Id);

                book.getProperty("bodyText").Value =
                    TextBoxDescription.Text;
                versionData.Data.PropertyId = book.getProperty(versionData.DataEditor.Editor.ID).Id;
                versionData.DataEditor.Save();
                typeData.Data.PropertyId = book.getProperty(typeData.DataEditor.Editor.ID).Id;
                typeData.DataEditor.Save();
                book.getProperty("memberId").Value = Member.GetCurrentMember().Id;
                book.Publish(User.GetUser(0));
                umbraco.library.PublishSingleNode(book.Id);

                // Create member api stuff
                string login = Member.GetCurrentMember().LoginName + "_" + book.Id;
                string password = Member.GetCurrentMember().Password;

                LiteralLogin.Text = login;
                LiteralPassword.Text = password;

                // Create user and disable console access
                User.MakeNew(Member.GetCurrentMember().Text, login, password, new UserType(2));
                new User(login).NoConsole = true;

                // Create a media folder
                // TODO: Don't hardcode the parent
                Media bookMedia = Media.MakeNew(book.Text, MediaType.GetByAlias("Folder"), User.GetUser(0), 1076);

                // Create Channel
                Channel ch = new Channel();
                ch.Name = "umbraco.org books: " + book.Text;
                ch.DocumentTypeAlias = "bookChapter";
                ch.FieldCategoriesAlias = "";
                ch.FieldDescriptionAlias = "bodyText";
                ch.FullTree = false;
                ch.ImageSupport = true;
                ch.MediaTypeAlias = "image";
                ch.MediaTypeFileProperty = "umbracoFile";
                ch.StartNode = book.Id;
                ch.MediaFolder = bookMedia.Id;
                ch.User = new User(login);
                ch.Save();



Hope this helps!

Cheers,
Niels...


Jeeeez, did I really start this :-)
hartvig
Posted: Monday, June 25, 2007 8:53:56 PM

Rank: Addict

Joined: 3/17/2008
Posts: 953
Location: Nyborg, Denmark
Niels Hartvig wrote:

Around 20 lines of code - simple once you know the apis ;-)


When my code is double the size I think, no wonder I can't keep up with deadlines ;-)

Jeeeez, did I really start this :-)
chrism
Posted: Monday, June 25, 2007 9:32:42 PM
Rank: Devotee

Joined: 1/11/2007
Posts: 57
@Niels - that is super-dooper easy..... i shouldn't really be surprised....

thanks for replying so quickly.
psterling@homax
Posted: Wednesday, November 14, 2007 6:23:30 AM

Rank: Fanatic

Joined: 10/30/2007
Posts: 215
Location: Bellingham
Kalle -

I can't seem to get pas the '...not set to an instance...' error using Umbraco 3.0.3 and the latest WLW (Version 2008). The post sets the Subject, but not the Body and it is not published. What was your final outcome?

Thanks,
-Paul

motusconnect.com :: level-2 certified :: MVP 2008/2009
kalpa
Posted: Wednesday, November 14, 2007 9:01:07 AM

Rank: Fanatic

Joined: 7/19/2006
Posts: 492
Location: Göteborg, Sweden
Hi Paul!

Actually I haven't tested WLW connection in any umbraco version above 3.0.0.

But I just tested WLW 2008 against my old WLW Beta settings and it seem to work fine too...

My settings are as follows:

In Windows Live Writer 2008
ACCOUNT
Provider: umbraco
Homepage: http://www.wibeck.com
Username: [myUmbLogin]
Password: [myUmbPassword]

IMAGES
Selected "Upload images to my weblog"

In my websites startpage (head) I've added:
(This is to help WLW find the correct web services / manifest)
Code:

<!-- MetaBlogAPI references -->
<link rel="EditURI" type="application/rsd+xml" href="http://www.wibeck.com/umbraco/channels/rsd.aspx" />
<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://www.wibeck.com/umbraco/channels/wlwmanifest.aspx" />
   <!-- / MetaBlogAPI references -->



And finally in Umbraco I've made these settings:
In Users -> My User -> Tab "Channels"
I've made a selection for all properties BUT "Category Field" and "Excerpt Field"

To be 100% sure: Verify that these channel settings have been written to the file "/config/metablogConfig.config"

Good luck !

// ; ) Kalle






" - Yeah I'd like to share your point of view, as long as it's my view too... (http://www.d-a-d.dk/lyrics/pointofview)
psterling@homax
Posted: Wednesday, November 14, 2007 6:48:49 PM

Rank: Fanatic

Joined: 10/30/2007
Posts: 215
Location: Bellingham
Kalle -

Thanks. I have the same configuration (including the <link...> entries you note. WLW has no trouble finding the blog and discovering supported options, but it returns the '...not set to an instance...' error on Publish. However, the post's Subject is set so some of the data is getting there.

I'll keep at it and post the resolution once I discover what I'm missing.

-Paul

motusconnect.com :: level-2 certified :: MVP 2008/2009
kalpa
Posted: Wednesday, November 14, 2007 8:44:20 PM

Rank: Fanatic

Joined: 7/19/2006
Posts: 492
Location: Göteborg, Sweden
Paul, have you double checked that you use a rich text (tinyMCE) field for the content of the blog post? This can't be a plain text field...

// ;) Kalle

" - Yeah I'd like to share your point of view, as long as it's my view too... (http://www.d-a-d.dk/lyrics/pointofview)
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.