Now our deployment server doesn't have Microsoft Office installed. If we
just take the whole bin from the development server along with the other
aspx, ascx etc. files. I am getting the following error.
Exception Details: System.NullReferenceException: Object reference not set
to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an
object.]
CUAnalyzer.WebClient.Export.ExportToPowerPoint(Application& oPowerPoint,
DataSet dsExportInfo) in D:\CUAnalyzer\CUAnalyzer\WebClient\Export.cs:258
CUAnalyzer.WebClient.main.lnkExportPPT_Click(Object sender, EventArgs e)
in d:\cuanalyzer\cuanalyzer\webclient\main.aspx.cs:904
System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) +108
System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +138
System.Web.UI.Page.ProcessRequestMain() +1292
Does the Deployment Server need to have the Office installed? I can't
register the Interop.powerpoint.dll using regsvr32 and I don't know what are
the steps we need to take to make the export work without installing office.
You are way off topic for this newsgroup I'm afraid. You are a lot more
likely to get a useful answer to your questions if you post them in a more
relevant newsgroup.
> Now our deployment server doesn't have Microsoft Office installed.
That's not going to work. When you imported the Microsoft PowerPoint Object
Library 9.0 you got the description of the various PowerPoint objects and
methods but you didn't get any actual implementation. When you copy your
code to your deployment server you'll find that the COM objects that your
code is trying to create canbnot be created (because there's no
implementation on that system).
> Does the Deployment Server need to have the Office installed?
Yes.
> I can't register the Interop.powerpoint.dll using regsvr32
Nor should you. That interop DLL isn't a COM object itself, rather it is a
managed code description of the COM object and some wrapper methods and
classes to allow you to use the COM object.