.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

ItemAdded fails after Microsoft.Office.Word.Server.Conversions.ConversionJob was completed

Posted By:      Posted Date: September 15, 2010    Points: 0   Category :SharePoint
Hey, I defined a ConversionJob from doc to pdf inside and the doc-file is located in a  document library and the job goes through without any problems. The pdf is created as expected. However if I try to catch an ItemAdded event the debugger starts every time the ConversionJob is finished and if I agree to debug the problem the debugger proceeds after the first time I hit F10 no matter how much code is located in the eventreceiver. The "error" seems to occur in the first line of my event receiver no matter what's in that line. If I got something like "string test = "text";" the debugger will come up anyway. I'm really confused by this behaviour and I hope somebody has worked with ConversionJobs from Word Automation Services before.

View Complete Post

More Related Resource Links

Office Services: Merging Word Documents on the Server Side with SharePoint 2010


Office 2010 and SharePoint 2010 include a new set of components called Application Services. These put a rich set of tools in a developer's bag for Office automation. We'll show you how to use Office OpenXML, Word Automation Services and SharePoint to build a simple application that merges separate status reports into a single document.

Manvir Singh, Ankush Bhatia

MSDN Magazine July 2010

How to use Microsoft.office interop.word in website

Hi, I have a page which creates a word doc from templet string location = Server.MapPath("~/temp/" + filename); Application app = new Application(); Document doc = app.Documents.Add(location); if(doc != null) { //Some code here } it works fine when i run from visual studio, but when i deploy it as a website in local IIS, its not working.I gave the permissions needed to access the folders in the website. What should i do to make it work. Thanks

saving docx as pdf with Microsoft.Office.Interop.Word in sharepoint

Hi!Im trying to export my docx file to PDF with Microsoft.Office.Interop.Word but im stuck. Anyone with some great ideas that could save my day.The code that im running is working fine localy but i can´t get it to work in sharepoint.The most commin exception is file not found (the same path is working fine localy)...Pls give me a hint!

Missing Assembly Reference for Microsoft.Office,.Server.Search

I am getting the following error while accessing the namespace: Microsoft.Office.Server.Search.Query  The type or namespace name 'Query' does not exist in the namespace 'Microsoft.Office.Server.Search' (are you missing an assembly reference?)   I have added references to 1) Microsoft.Sharepoint  2) Microsoft.Office.Server and  3) Microsoft.Office.Server.Search I am using VS 2010 and set the framework version to 3.5 and Sharepoint RTM Version  vinod kumar Bhasyam

How to open and read Word content using Open XML SDK 2.0 for Microsoft Office?

Hello, I've built a component to read a Word Document and open it in silverlight, so I'm interested in Open XML SDK 2.0 for Microsoft Office, I read the document about this and some several examples, they're just talk about read the Headers, Comment,...and also I want to read the Word content.   Please help me, thank you.

System.TypeLoadException: Could not load type 'Microsoft.Office.Server.Security.LdapMembershipProvi

So this is odd, I am attempting to setup FBA with Sharepoint Foundation 2010 and i get the following Error: (from ULS log viewer): System.TypeLoadException: Could not load type 'Microsoft.Office.Server.Security.LdapMembershipProvider' from assembly 'Microsoft.Office.Server, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c'. at System.RuntimeTypeHandle._GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName) at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) at System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) at System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) at System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) at System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) and in IIS Logs: Exception information:     Exception type: ConfigurationErrorsException     Exception message: Could not load type 'Microsoft.Off

Extract Word document & Convert those extracted pages to images using Microsoft.Office.Interop.Word

You cannot vote on your own post 
Hi Everyone.

I need to extract word document into number of pages and convert those pages into images by using Microsoft.Office.Interop.Word, can anybody tell me how i can do this?

access to Microsoft.Office.Server.dll


I'm customizing a login page for forms auth and get an error. I even allowed the internet user read access to:
c$\Program Files\Common Files\Microsoft Shared\web server extensions\12\ISAPI

Microsoft.Office.Server.dll date: 8/24/2007


I have login.aspx page that has the code in a user control Login.ascx and Login.ascx.cs.

using Microsoft.SharePoint;
using Microsoft.Office.Server;                       //errors here
using Microsoft.Office.Server.Administration;
using Microsoft.Office.Server.UserProfiles;


c:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\myfiles\Login.ascx.cs(13): error CS0234: The type or namespace name 'Office' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)   at System.Web.Compilation.AssemblyBuilder.Compile()
   at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
   at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Bool

Does Word Automation Services require Office 2010 install on server to function?


Subject is the question.


My requirements are to "maintain existing functionality with current version of a windows service running on Server 2003 and automating Word through COM."   I.E. All the stuff that breaks when you upgrade the OS to Server 2008.  

My customer has already rejected several third party alternatives as "not being accurate enough"  The rendered PDF doesn't match what comes out of Word when compared with an electron microscope.

So now I'm investigating using Word Automation Services and Sharepoint 2010.   Got my development server functional with Sharepoint 2010 and Visual Studio 2010.  But my first attempts at creating rendering jobs is failing with an "ArgumentNullException" in deep inside a method I'm 100.0% sure I'm NOT passing any NULL's to. 

My VM is low on space so I figure I'd save time by asking for a conclusive answer before I make room / install Office.

any url dor downloading microsoft.office.server dll?

Anyone knows the url for downloading microsoft.office.server dll? Please help me if u know the url. Its very helpful for me....

Receiving Error Microsoft.Office.Server.UserProfiles



I have been receiving the following error the last few days:

The Execute method of job definition Microsoft.Office.Server.UserProfiles.UserProfileImportJob (ID 288eccd9-bdbe-44a6-8cac-aa1619c1a5aa) threw an exception. More information is included below. User profile import is in progress!Import could not be started. Please start import later or stop import now for new import to start.

I'm not sure where to look. We are running Team Foundation Server 2010 if that makes a difference. This is for SharePoint 2010.

Let me know what logs you guys need.


Owner, Quilnet Solutions

My Site Issue: "The evaluation version of Microsoft Office SharePoint Server 2007 for this server ha


Hi Guys,

when i opened my site am getting following error, but moss 2007 server is Licensed Verison.


Thanks  Advanced.



Installing Microsoft Office SharePoint Server 2007 on Windows 7, getting error please help

Hi all Installing Microsoft Office SharePoint Server 2007 on Windows 7 Ultimate 32-bit, getting error "Windows Server 2003 sp1" is required for this product, any help please.

Microsoft SharePoint server 2010 encountered an error during setup. One or more required office comp

I am encountering this error during setup. The server previously had WSS 3.0 and the Group Board Workspace. I uninstalled those and installed sharepoint foundation 2010. Initially It was up and running but I was receiving errors trying to load the group space template, so I uninstalled SPF2010. cleaned up the registry pointers to the old WSS3.0 and Groupboard Workspace and tried to reinstall. Now I get the error

Microsoft SharePoint server 2010 encountered an error during setup. One or more required office components failed to complete successfully.

Looking into the issue it appears that setup cannot install the embedded sql server, since the logs indicate a dbwrap error. There are no "pendingfilerename" operations which fixed this problem for some. I tried to install as a farm but it won't allow me to use a local admin account.  I also looked at the sql configurations and the windows internal database is running.

Any ideas how to I can remove the windows internal database and reinstall SF2010?

Does Microsoft.Office.Interop.Word Requires MS OFFICE Installation???


Hi Team,

I'm developing an application in WPF which generates a WINWORD for that I'm Using

Microsoft.Office.Interop.Word dll but is it Manditory to have MS OFFICE installed to work dll ???

Please, Answer my query

Thanks in Advance

Microsoft.Office.Interop.Excel on Server


Good day,

I got the srcipt working on my Local PC.
But when importing on to server, i get the error.

"Could not load file or assembly 'Microsoft.Office.Interop.Excel, Version=10.0.4504.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified."

I copied the files & registered to all locations i have on my local PC.

But the the server does not have the  Visual Studio .NET Command Prompt - not sure if it is needed as I use the register.bat


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend