Microsoft.Office.Interop.Word error on Windows Server 2008 R2

Hi,
I have Microsoft Office 2003 installed on Windows Server 2008 R2. I get a "There is insufficient memory. Save the document now." error while adding a document to the Microsoft.Office.Interop.Word.Document class as in the code below. I can see the Memory
consumption shoots up as soon as the following lines of code is executed. Surprisingly, this same piece of code works fine on Windows Server 2008.
Object missing = System.Reflection.Missing.Value;
Object oFalse = false;
Microsoft.Office.Interop.Word.Application oWord = new Application();
Microsoft.Office.Interop.Word.Document oWordDoc = new Microsoft.Office.Interop.Word.Document();
oWordDoc = oWord.Documents.Add(ref missing, ref missing, ref missing, ref missing); //The code fails here
oWordDoc.Close(ref oFalse, ref missing, ref missing);
oWord.Quit(ref missing, ref missing, ref missing);
Can someone help on this?
Thanks,
Tarun

Hi,
I suggest discussing this issue in Word or IIS forum.
Word forum:
http://social.technet.microsoft.com/Forums/en-us/word/threads
IIS forum:
http://forums.iis.net/
Tim Quan

Similar Messages

  • Setup Microsoft Office 2013 KMS Host on Windows Server 2008 R2

    Hi all,
    hope someone can help, banging my head against a brick wall here.
    Followed this excellent article here -
    http://blogs.technet.com/b/odsupport/archive/2013/01/03/how-to-setup-microsoft-office-2013-kms-host-on-windows-server-2008-r2.aspx#pi47623=1
    Dont need to install 275817 as its already applied to the server that has the KMS install on it.
    When i get to step 3 and double click the exe from the MSDL site i get the cscript window but nothing happens, the window stays blank and then closes, i never get the prompt to enter the licence key for Office 2013 KMS key.
    Its a Windows server 2008 R2 install, fully patched and rebooted.
    Checked the logs and can find nothing, has anyone seen this or know a fix?
    Thanks in advance.

    Hi,
    Thanks for your post.
    Please refer to this MS article and try again.
    Prepare and set up the Office 2013 KMS host
    https://technet.microsoft.com/en-us/library/dn385356.aspx#BMK_PreparetheKMSHost
    Regards.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • How to add text vertically into a Word margin with C# (using namespace: Microsoft.Office.Interop.Word)

    I need to add text vertically in a word document outside the margins.  How can I do this with Microsoft.Office.Interop.Word and C#?
    Leonard Swarczinski Software Developer Postal Center International

    Hi Leonard,
    According to your description, do you want to add text vertically into Page Header/Footer? I wrote a sample  for you.
    using Microsoft.Office.Core;
    using Microsoft.Office.Interop.Word;
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    namespace AddTextToWord
    class Program
    static void Main(string[] args)
    CreateNewDocument();
    Console.ReadLine();
    private static void CreateNewDocument()
    Object oMissing = System.Reflection.Missing.Value;
    Microsoft.Office.Interop.Word.Application oWord;
    Microsoft.Office.Interop.Word.Document oDoc;
    oWord = new Microsoft.Office.Interop.Word.Application();
    oWord.Visible = true;
    oDoc = oWord.Documents.Add(ref oMissing, ref oMissing, ref oMissing, ref oMissing);
    String HeaderText = "Hello everyone!";
    WdParagraphAlignment wdAlign = WdParagraphAlignment.wdAlignParagraphCenter;
    AddHeader1(oWord, HeaderText, wdAlign);
    private static void AddHeader1(Application WordApp, string HeaderText, WdParagraphAlignment wdAlign)
    Object oMissing = System.Reflection.Missing.Value;
    WordApp.ActiveWindow.View.Type = WdViewType.wdOutlineView;
    WordApp.ActiveWindow.View.SeekView = WdSeekView.wdSeekPrimaryHeader;
    Microsoft.Office.Interop.Word.Shape textBox = WordApp.ActiveDocument.Shapes.AddTextbox(MsoTextOrientation.msoTextOrientationVertical, 150, 10, 40, 40);
    textBox.TextFrame.TextRange.Text = HeaderText;
    WordApp.ActiveWindow.View.SeekView = WdSeekView.wdSeekMainDocument;
    If I misunderstood or anything wrong, please let me know and you can get more information from below articles.
    Office development in Visual Studio
    http://msdn.microsoft.com/en-us/office/hh133430.aspx
    Abhout: AddTextbox Method
    http://msdn.microsoft.com/en-us/library/office/aa171543(v=office.11).aspx
    How to: Programmatically Insert Text into Word Documents
    http://msdn.microsoft.com/en-us/library/vstudio/6b9478cs.aspx

  • How do you repair ntoskrnl.exe error or system error in windows server 2008 and 2012

                              
    hi,
    can you repair system file errors like  ntoskrnl.exe in windows server 2008 and 2012  like   like before  in windows server 2003 ?
     the steps were  repairing ntoskrnl.exe  error in windows server 2003
    1- have a 2003 cd and from that cd  start recovery console and copy from i386 directory ntldr and ntdetect.com to  windows /system32 directory on the  server and then repairing
    2- MBR with fixmbr command  and then  rebuild BOT.INI file  with bootcfg/rebuild . 
    now my question  is how you repair or solve such problem with ntoskrnl.exe error  in windows server 2008 and windows server 2012
    thanks
    johan
    h.david

    first this wil take a lot of time for windows 2008 and 2012 ,
    and what about windows 2003 I thing this has no startup repair
    thanks
    johan
    h.david
    What will take a lot of time? Repair or clean install? These days one can standup a new VM and have an operating system on it in around 20 minutes or so.
    Correct server 2003 is file based deployment and completely different OS from repair perspective as well.
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • Side by Side error on Windows Server 2008 R2 SP1

    Hello!
    I want to install SAP 4.7 Ex2 on windows Server 2008 R2 Sp1. I installed java 1.4.2.24 and oracle 11g before.
    Now i tried to install the 4.7 system on the server. But in step "create or reregister sap services" i get an error.
    The sap log shows me this error:
    FSL-06002 Error 14001: The application could not be started, the Side by Side configuration is invalid
    In Windows error log i got this message.
    Fehler beim Generieren des Aktivierungskontextes fu00FCr "C:\usr
    sap\DN2\sys\exe\run\sapstartsrv.exe. Die abhu00E4ngige Assemblierung
    "Microsoft.VC80.MFC,processorArchitecture="AMD64",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50727.4053"
    konnte nicht gefunden werden. Verwenden Sie fu00FCr eine detaillierte Diagnose das Programm "sxstrace.exe
    Error Code: 33
    It installed vcredist 2005/ 2005 SP1. An i installed .NetFX3.5 (with versions 2.0-3.5) and .NetFx 4.0. The Error ist still exists.
    Yesterday i installed windows Server new, but i got the same error again.
    I don`t know what to do now, please help me.
    Kind regards
    Sebastian

    > Fehler beim Generieren des Aktivierungskontextes fu00FCr "C:\usr
    >  sap\DN2\sys\exe\run\sapstartsrv.exe. Die abhu00E4ngige Assemblierung
    >  "Microsoft.VC80.MFC,processorArchitecture="AMD64",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50727.4053"
    >  konnte nicht gefunden werden. Verwenden Sie fu00FCr eine detaillierte Diagnose das Programm "sxstrace.exe
    And just as information:
    German Windows servers are not supported, you should install a US English version.
    Markus

  • Bunch of errors in Windows Server 2008 R2

    Hi everyone,
    I've searched Technet and all the Internet for a clear solution or any clue that could help me solve this issue, but didn't manage.
    Recently Windows Server 2008 R2 SP1 started to frequently and spit out bunch of errors that are connected to each other in my opinion, but I have no idea what is causing them and why they started to appear so suddenly.
    Those errors are (ID):
    TermDD (50, 56)
    Group Policy (1058, 1080, 1006, 1079, 1110)
    Schannel (36888)
    Sometimes also
    Distributed COM (10010) and NETLOGON (5719)
    In first step I did the update of the servers and disabled chimney offloading, but it didn't solve the problem. I found couple of technet's articles describing SIMILAR problems, but I have no idea if they are describing exactly what I need.
    http://support.microsoft.com/kb/2643970/en-us
    http://support.microsoft.com/kb/2519736/en-us
    Those servers are not our ones, but the other company that we are supporting. I'm also student and just started to gain experience with servers, so please mind that when providing any clue for which I will be extremely thankful.

    To be more exact I'll supply logs:
    Schannel:
    System
    Provider
    [ Name]
    Schannel
    [ Guid]
    {1F678132-5938-4686-9FDC-C8FF68F15C85}
    EventID
    36888
    Version
    0
    Level
    2
    Task
    0
    Opcode
    0
    Keywords
    0x8000000000000000
    TimeCreated
    [ SystemTime]
    2014-11-18T10:57:08.837489800Z
    EventRecordID
    946520
    Correlation
    Execution
    [ ProcessID]
    680
    [ ThreadID]
    35592
    Channel
    System
    Computer
    mydomain.com
    Security
    [ UserID]
    S-1-5-18
    EventData
    AlertDesc
    40
    ErrorState
    252
    and
    System
    Provider
    [ Name]
    Schannel
    [ Guid]
    {1F678132-5938-4686-9FDC-C8FF68F15C85}
    EventID
    36888
    Version
    0
    Level
    2
    Task
    0
    Opcode
    0
    Keywords
    0x8000000000000000
    TimeCreated
    [ SystemTime]
    2014-11-24T11:31:41.382210900Z
    EventRecordID
    951084
    Correlation
    Execution
    [ ProcessID]
    668
    [ ThreadID]
    3744
    Channel
    System
    Computer
    mydomain.coml
    Security
    [ UserID]
    S-1-5-18
    EventData
    AlertDesc
    10
    ErrorState
    10
    Term DD:
    System
    Provider
    [ Name]
    TermDD
    EventID
    56
    [ Qualifiers]
    49162
    Level
    2
    Task
    0
    Keywords
    0x80000000000000
    TimeCreated
    [ SystemTime]
    2014-11-18T13:39:26.755665300Z
    EventRecordID
    946638
    Channel
    System
    Computer
    mydomain.com
    Security
    EventData
    \Device\Termdd
    xxx.xxx.xxx.xxx
    0000040002002C000000000038000AC00000000038000AC0000000000000000000000000000000005E0000C0
    Distributed COM:
    System
    Provider
    [ Name]
    Microsoft-Windows-DistributedCOM
    [ Guid]
    {1B562E86-B7AA-4131-BADC-B6F3A001407E}
    [ EventSourceName]
    DCOM
    EventID
    10010
    [ Qualifiers]
    49152
    Version
    0
    Level
    2
    Task
    0
    Opcode
    0
    Keywords
    0x80000000000000
    TimeCreated
    [ SystemTime]
    2014-11-24T13:45:03.000000000Z
    EventRecordID
    951407
    Correlation
    Execution
    [ ProcessID]
    0
    [ ThreadID]
    0
    Channel
    System
    Computer
    mydomain.com
    Security
    EventData
    param1
    {0002DF01-0000-0000-C000-000000000046}

  • Error in windows server 2008 r2

    1. The Security System has received an authentication request that could not be decoded. The request has failed.
    EVENT ID 40968
    2.The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID
    {61738644-F196-11D0-9953-00C04FD919C1}
     and APPID
    {61738644-F196-11D0-9953-00C04FD919C1}
     to the user IIS APPPOOL\DefaultAppPool SID (S-1-5-82-3006700770-424185619-1745488364-794895919-4004696415) from address LocalHost (Using LRPC). This security permission can be modified using the Component Services administrative tool.
    EVENT ID 10016
    3. The Terminal Server security layer detected an error in the protocol stream and has disconnected the client. Client IP: 10.204.79.250.
    EVENT ID 56
    After that in our application SOLIDUS SERVER shows application link faulty. Operating system is windows server 2008 r2.

    Hi Ankush,
    Based on my research, Event 40968 is caused by an invalid authentication request, which we can ignore, please refer to a related thread below:
    Event id 40968 - what does this mean?
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/7e56b96d-b767-4c89-b9b3-bc7d0978f70b/event-id-40968-what-does-this-mean?forum=winservergen
    As for Event 10016, we can try to resolve it by
    using the Component Services administrative tool to update the application security policy to allow the requested operation to complete.
    More information about troubleshooting Event 10016 and Event 56 below:
    Event ID 10016 — COM Security Policy Configuration
    http://technet.microsoft.com/en-us/library/dd337789(v=WS.10).aspx
    How to troubleshoot “The Terminal Server security layer detected an error in the protocol stream and has disconnected the client. Client IP:” and “The RDP protocol component
    X.224 detected an error in the protocol stream and has disconnected the client”err
    http://blogs.msdn.com/b/scstr/archive/2012/02/29/how-to-troubleshoot-the-terminal-server-security-layer-detected-an-error-in-the-protocol-stream-and-has-disconnected-the-client-client-ip-and-the-rdp-protocol-component-x-224-detected-an-error-in-the-protocol-stream-and-has-d.aspx
    I hope this helps.
    Best Regards,
    Amy Wang

  • Command line error on Windows server 2008, GUI works

    I'm running Windows Server 2008 with a Blackmagic Decklink card. Everything works fine with the GUI but when I try to start from command line it extis with an error (see attached image).
    Note: I have the desktop experience enabled.

    I came across the identical problem with an Osprey card. I did some digging and for some reason, on Windows Server 2008, the "Desktop Experience" must be enabled for the command line version of FMLE to function. Not sure why this is, but it worked for me. Here's the note from Microsoft on how to enable this feature on your server...
    http://technet.microsoft.com/en-us/library/cc772567.aspx

  • SAP router error on windows server 2008 64bit

    Hi All,
    I am installing sap router on windows 2008 server 64 bit.
    While trying to generate certificate request it showing below error.
    E:\usr\sap\saprouter\nt-x86_64>sapgenpse get_pse -v -r certreq -p local.pse "CN=
    solman, OU=000XXXXXXX, OU=SAProuter, O=SAP, C=DE"
    Got absolute PSE path "C:\Users\soladm\sec\local.pse".
    Please enter PIN:
    Please reenter PIN:
    Supplied distinguished name: "CN=solman, OU=000XXXXXXX, OU=SAProuter, O=SAP, C=
    DE"
    Creating PSE with format v2 (default)
    get_pse: Can't create PSE.
    ERROR in af_create: (4352/0x1100) could not flush : "SW-PSE"
    ERROR in create_PSE: (4352/0x1100) could not flush : "SW-PSE"
    ERROR in modified_PSEFile: (4352/0x1100) could not flush : "SW-PSE"
    ERROR in flush_PSEFile: (1283/0x0503) Can't write file : "C:\Users\soladm\sec\lo
    cal.pse"
    ERROR in aux_OctetString2file: (1283/0x0503) Can't write file : "C:\Users\soladm
    \sec\local.pse"
    I couldn't find the cryptography software specifically for windows 2008 server 64 bit ? So I downloaded the software for windows server 64 bit platform.
    Do any one have idea on this...
    Please reply..
    Regards
    Vinay

    Hi,
    Yes, there is no specific cryptography software for windows server 2008 and whatever u have chosen is correct.
    Fom the following error message I could see where the issue arises.
    Can't write file : "C:\Users\soladm\sec\local.pse"
    I think you have not set the following ENV variable for the SAPRouter admin user (in your case soladm) and hence the sapgenpse tries to import the certificate in the SOLADM user's document folder.
    Set the following variables for the user SOLADM and then try to import the certificate as mentioned in the [link|http://service.sap.com/saprouter-sncdoc].
    SECUDIR = E:\usr\sap\saprouter
    SNC_LIB = E:\usr\sap\saprouter\nt-x86_64\sapcrypto.dll
    Hope this resolves ur issue.
    Regards,
    Varadharajan M

  • Crystal 2008 Runtime error on Windows Server 2008

    I have a simple ASP.Net web applications that is using reports developed in Crystal 2008.  My server OS is Windows Server 2008 and has the Crystal 2008 SP1 runtime controls installed.  When I run the application it works fine until I actually try to run the report.  As the paremeter screen is attempting to load I am getting several script errors on the page. 
    _de is undefined, object not specified, bobj is undefinded are the major messages.  I have researched for several hours and have had no success.  I have come to the conclusion that the web page does not know where to find the .js and .css crystal files or does not have the correct permissions to access the files. 
    One thing that I found online and tried was to add a line of code in the HTML that specified the script as java and the location of the JS file for the viewer.  This helped but still had errors.
    BTW....This application runs fine on a Windows Server 2003 SP2 OS. 
    Anyone had the same issue?  Any help is greatly appreciated!
    Forgot to mention my development environment is VS 2008.
    Edited by: Bobby on Mar 13, 2009 11:02 AM

    See [this|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do] note.
    Also, [this|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do] note will be of help - possibly mode that the above note.
    Also, make sure you are using the latest merge modules / MSI to do your deployment. See [this|https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsforVisualStudio.NETRuntimeDistribution-Versions9.1to12.0] wiki.
    Finally, the below Articles are worth having:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0437ea8-97d2-2b10-2795-c202a76a5e80
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50aa68c0-82dd-2b10-42bf-e5502b45cd3a
    Ludek

  • Oracle ODBC version error on windows server 2008 64 bit

    We had installed oracle 10g standard edition on windows server 2008 64 bit. After one hour use of ODBC connection, we are getting a error message like 'Oracle client and networking components were not found. These components are supplied by Oracle Corporation and are part of the Oracle Version 7.3.3 or later client software installation. Provider is unable to function until these components are installed'
    Find the link for error message. http://www.google.co.in/imgres?newwindow=1&biw=1600&bih=1075&tbm=isch&tbnid=zc1Vas4O9Eqj4M:&imgrefurl=http://social.tech…
    Please give solution for the said issue. Thanks in advance.

    SAP said it is Oracle not support windows server 2008.

  • WebDav error on Windows Server 2008 R2

    I receives following error(pic below) when i try to open "WebDav Authoring Rules"
    It always happened at the second and more times after IIS Manager reset. At the very first time it opens OK.
    In addition i did not manage to publish from my streaming device to WebDav of Windows Server 2008 R2 but i don't have any issues with WebDav at Windows 7.
    Please advice.
    I did not manage to add picture for the reason below
    "Body text cannot contain images or links until we are able to verify your account."

    I'd suggest asking your question over in the Publishing section on IIS.net: 
    http://forums.iis.net/1045.aspx

  • PI7.1 install error on windows server 2008 64 bit

    error at import ABAP
    TRACE: 2009-03-14 06:50:03 com.sap.inst.migmon.LoadTask run
    Loading of 'SAPNTAB' import package is started.
    INFO: 2009-03-14 06:50:03 com.sap.inst.migmon.LoadTask processPackage
    Task file 'C:\Program Files\sapinst_instdir\PI71\INSTALL\SYSTEM\ORA\STD\AS\SAPNTAB.TSK' from package 'SAPNTAB' contains no tasks with data type (D).
    TRACE: 2009-03-14 06:50:03 com.sap.inst.migmon.LoadTask processPackage
    Loading of 'SAPNTAB' import package into database:
    D:\usr\sap\P71\SYS\exe\uc\NTAMD64\R3load.exe -i SAPNTAB.cmd -dbcodepage 4103 -l SAPNTAB.log -stop_on_error -loadprocedure fast
    ERROR: 2009-03-14 06:50:03 com.sap.inst.migmon.LoadTask run
    Loading of 'SAPNTAB' import package is interrupted with R3load error.
    Process 'D:\usr\sap\P71\SYS\exe\uc\NTAMD64\R3load.exe -i SAPNTAB.cmd -dbcodepage 4103 -l SAPNTAB.log -stop_on_error -loadprocedure fast' exited with return code 2.
    For mode details see 'SAPNTAB.log' file.
    Standard error output:
    sapparam: sapargv(argc, argv) has not been called!
    sapparam(1c): No Profile used.
    sapparam: SAPSYSTEMNAME neither in Profile nor in Commandline
    WARNING: 2009-03-14 06:50:33
    Cannot continue import because not all import packages with data conversion tables are loaded successfully.
    WARNING: 2009-03-14 06:50:33
    1 error(s) during processing of packages.
    INFO: 2009-03-14 06:50:33
    Import Monitor is stopped.
    Edited by: Shen Peng on Mar 14, 2009 7:32 AM

    SAP said it is Oracle not support windows server 2008.

  • Create ASInstance error on Windows server 2008 in OBIEE 11g instlation

    I was installing OBIEE 11g on win 2008, got error at Create ASInstance. Nothing found in log files.
    No errors found till this step... Please help....

    Hi,
    Yes, there is no specific cryptography software for windows server 2008 and whatever u have chosen is correct.
    Fom the following error message I could see where the issue arises.
    Can't write file : "C:\Users\soladm\sec\local.pse"
    I think you have not set the following ENV variable for the SAPRouter admin user (in your case soladm) and hence the sapgenpse tries to import the certificate in the SOLADM user's document folder.
    Set the following variables for the user SOLADM and then try to import the certificate as mentioned in the [link|http://service.sap.com/saprouter-sncdoc].
    SECUDIR = E:\usr\sap\saprouter
    SNC_LIB = E:\usr\sap\saprouter\nt-x86_64\sapcrypto.dll
    Hope this resolves ur issue.
    Regards,
    Varadharajan M

  • Office Jet pro 8610 for windows server 2008 R2

    I have the new Office Jet pro 8610 prither but dosn't have the driver for "Windows Server 2008 R2 Enterprise" 64 Bit.
    What to do now. Can you please provide ?
    Thanks in advance.
    This question was solved.
    View Solution.

    Hi,
    The same driver as provided for any Windows OS as Windows 7 or 8 should be used, the installation however should be launch via the command line and not as a standard installation.
    Follow these steps to install the printer software on a server:
    http://support.hp.com/us-en/product/HP-Officejet-Pro-8610-e-All-in-One-Printer/5367603/model/5367606...
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

Maybe you are looking for

  • How do i transfer files from Iphone4 to iphone5

    how do i merge files from iphone4 to iphone5?

  • Library sorting question

    I hate that all of my albums are split up when sorted by genre . I have tried 'Album artist' and 'Part of a compilation.' All I ask for is how can I sort by Genre, Album, then Track and not Genre, artist, then album? -Thanks, Nick home built AMD 4200

  • Error in lens metadata

    My Canon EF-S 15-85mm is being reported as a Canon EF 70-300 DO in Aperture 3.0.2 Has anyone else come across this type of error before and this one specifically? Is there a fix? Thanks in advance.

  • Biztalk 2013 R2 with Windows Server 2003 R2 Domain Controller

    Hello, I have a client right who has a Windows Server 2003 R2 domain controller with active directory installed. Is there any reason why I can't install Biztalk 2013 on a Windows Server 2012 R2 box and add it to that farm to use active directory? Tha

  • I am unable to download photoshop elements 13

    I get an error message saying that "this file does not have a program associated with it for performing this action.  Please install a program or, if one is not already installed, create an association in the Default Programs control panel."  What sh