Error Automating Word On Test Server?

Sep 20, 2010

I am trying to open a Word document from a .Net web application. The code (in brief) contains ...

using Word = Microsoft.Office.Interop.Word;
using System.Reflection;and, the code that actually creates the document includes:

object oMissing = System.Reflection.Missing.Value;
object oEndOfDoc = "\endofdoc"; // endofdoc is a predefined bookmark [code]......

which suggests something wrong with the bookmarks. So I took references to the bookmarks out and started using a file called Hello.doc as my template. No bookmarks - just the word 'hello' in it.This fell over too - but the StackTrace indicated it was when SaveAs was called.So, the question is ... why does it work on my development box but not on the server. The server has Word installed on it.

View 1 Replies


Similar Messages:

HttpHandlers / Modules :: Automating An Http Handler / Filesystemwatcher To Post An Xml Document To Another Server (with No Human Interaction)?

Jul 20, 2010

This is kind of cross-post; however, can a custom http handler be automated to run either using a timer or a filesystemwatcher to post an xml document to another server (with no human interaction)?

View 2 Replies

Configuration :: Error After Moving From A Test Server?

May 20, 2010

We move our hand from a test server onto a brand new server.but we've got a problem with the new server.

Error:Server Error in '/' Application.
Parser Error

Description:An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: The resource object with key 'lblMainHeader' was not found.

Source Error: [Code]....

Source File: /Default.aspx Line: 23

Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082

View 6 Replies

Specified Cast Is Not Valid Error On Development But Not On Test Server?

Sep 1, 2010

I have a .Net 2 solution with some asp classic pages.I get a specified cast is not valid error when I access the page on my local. Below is the vb function where I get the Error:

Public Function Retrieve(ByVal vntSeqId As String, ByRef vntPart As String, ByRef vntPartKey As String, ByRef vntEntDate As String _
, ByRef vntStatus As String, ByRef vntOrigGblId As String, ByRef vntOrigNetId As String, ByRef vntOrigName As String, ByRef vntOrigPhone As String _ [code]...

At first, I thought the problem is with the source code and we were thinking the source code we have is different with the ones deployed on test and prod servers. But when I tried to upload it on the test server, I don't get the specified cast is not valid error.

View 1 Replies

Configuration :: To Test The Database On The Server - Getting An Error Page?

Aug 6, 2010

I have .sql database that I created in Visual Web Developer. I have uploaded the .sql file to the host company and they have successfully imported it. When I try to test the database on the server I am getting an error page (listed below). I have inserted a connection string in the web.config file (see below) and isnerted the relevant fields.

<configuration>

View 1 Replies

Required Jquery Validation Throwing Error On Test Server

Nov 29, 2010

I am facing a problem with JQuery Validation...

Its working fine for me on my machine and not throwing any errors...

Once I pushed it to Test or Dev servers its throwing this error: '$.validator' is null or not an object

I have no idea how to deal with it...all my validations are not working and directly going for server side validations...

its throwing this error here:

$.validator.addMethod("CheckDOB", function (value, element) {//some code});

View 5 Replies

SQL Reporting :: Ssrs 2008 Reports Datasource Error In Test Server?

Oct 18, 2010

i Have upgraded my Reports from Report server VS 2005 to VS 2008 .

My reports works fine in local, development & test server.

After Ugrading to 2008 it works fine in local server & devlopement serverr.

When i deployed to Test server i am trying to access my reports i am getting below errors,

An error has occurred during report processing. (rsProcessingAborted)

Cannot create a connection to data source 'DataSource1'. (rsErrorOpeningConnection) For more information about this error navigate to the report server on the local server machine, or enable remote errors ..

i checked the Datasource conncetion properties..its pointing to correct Test database only..

My reports are windows integrated...

Now it works in srs 2005 developement & test server. For same properties it works in dev server, it doesn't works in srs 2008 test server.

View 1 Replies

SQL Server :: Querying Indexing Catalog Causes Error On The Word "weight"?

Oct 7, 2010

On our web server we have a search form that fires off multiple searches and combines the results into 1 page. The main search is of the indexing catalog for our web site. We have used this for several years and it works just fine. The company just sponsored a weight loss program and we have discovered that the word "weight" returns an error. The word "weigh" works fine but if we add that "t" on the end it fails. Here is the error:

Incorrect syntax near 'weight'. Expected '!', '(', NOT, ISABOUT, FORMSOF, STRING, PREFIX_STRING. SQLSTATE=42000

This is the query at the time of execution:Select DocTitle,URL from SCOPE() where (CONTAINS(CONTENTS, 'weight') OR CONTAINS(DocTITLE, 'weight')) order by Rank DescDoes anyone have an idea of how to get past this problem? I'm guessing that "weight" is probably a key word or something similar.

View 1 Replies

C# - Automating Storing App Settings In Web.config (Refactoring)?

Jul 21, 2010

There are a bunch of hardcoded strings in a ASP.NET application.

eg. string constSetting = "XYZ";

There are a LOT of them. Is there a tool/plugin for Visual Studio 2008 to refactor it in such a way that the constant string goes into web.config and the above line gets replaced by the retrieved string from web.config app settings?

View 2 Replies

Compiler - Automating Finding Compile Errors In Pages?

Jan 20, 2011

I have an ASP.NET website where the pages call a few components in DLLs. I need to change the signature of a method in the component, and short of doing a text search, don't know if this will break any pages or not. IMO, this is the weakness of web programming -- you don't get the benefit of a compiler telling you about syntax errors.

But it doesn't need to be so. Does anyone know if there is a way to run a spider over a website watching for compile errors, or perhaps some tool that would compile all the .aspx files in a folder structure looking for compile errors?

This is merely for syntax checking -- not to actually pre-compile the website.

EDIT It looks like aspnet_compiler is being recommended. I don't use Visual Studio projects for the website -- it's grown over time with my own templating system (back before Master Pages were available). So something that would run aspnet_compiler over all the files in a folder might work...

View 3 Replies

Web Forms :: Getting A 404 Error In File Test

Mar 31, 2010

I"m trying to test for the existance of 1 or more files. How do I test for the 404 error so the program doesn't blow up on me?The remote server returned an error: (404) Not Found

[Code]....

View 4 Replies

Web Forms :: Creating A Test Server - Certain Links Getting Redirected To Live Server

Dec 10, 2010

We had a website deployed on IIS server remotely say www.liveserver.com.

We recently decided to make a copy of the website internal to the organisation so we brought a server and copied all the code from live server and configured it and say it is http//archives-testserver.com

Everything seems to work fine but while navigating and clicking on certain module links within http//archives-testserver.com......the domain name is getting rewritten to www.liveserver.com and user is made to navigate on the live site. I wonder where this
configuration is with in IIS...

I looked under properties under website identification and everything is referring it as http://arhives-testserver.com. also thr is a file called securityRedirect.inc and ifor handling errors and all the references have been changed and couldn't find anything in web.config. where else to look for probable reference to live site?

View 3 Replies

Installation :: Test Server - Some Of The Links Getting Redirected To Live Server

Dec 10, 2010

We had a website deployed on IIS server remotely say www.liveserver.com.

We recently decided to make a copy of the website internal to the organisation so we brought a server and copied all the code from live server and configured it and say it is http//archives-testserver.com

Everything seems to work fine but while navigating and clicking on certain module links within http//archives-testserver.com......the domain name is getting rewritten to www.liveserver.com and user is made to navigate on the live site. I wonder where this configuration is with in IIS...

I looked under properties under website identification and everything is referring it as http://arhives-testserver.com. also thr is a file called securityRedirect.inc and ifor handling errors and all the references have been changed and couldn't find anything in web.config.

View 4 Replies

C# - Is A New Thread In A Visual Studio Test Project Aborted When The Test Ends

May 15, 2010

i have to do some message exchange with a 3rd party (in a website).When the client posts a page, i start the message exchange. When that doesn't succeed for some reason, i report this to the client by rendering the page with a message.On the background, in a separate thread, i start a process to send abort messages to the 3rd party. I can't do this while the user is waiting for the page to come back, because it might take a few minutes.But in a test project, the test ends when the message to the 3rd party is sent, and after the new thread is started. But it seems that the new thread also ends, when the test is done.

Is that normal behaviour?I do start the thread in a new class with a reference to 2 objects from the class which tries to send the message in the first place, may that be a problem?EDIT: it keeps running when the whole process is started in IIS

View 1 Replies

Web Forms :: Getting Error WebForm_PostBackOptions Is Undefined In Simple Test Webform With RequiredFieldValid

Jun 19, 2010

I've installed Visual Web Developer 2010 Express on a Windows XP Pro PC. IIS is NOT installed yet. I am just evaluating this now, and the built in web server works fine for now.

I've followed these very basic steps and I'm stuck with this error:

Error WebForm_PostBackOptions is undefined

I am trying to add a RequiredFieldsValidator control to the page. Here are the steps I followed...

1- Menu options: File -> New Web Site

2- ASP.NET Empty Web Site

3- Website -> Add new item

4- Select Web Form with Place Code in separate file checked. Master page not checked.

5- No changes to the web.config file

6- I added a couple text boxes and labels to the page and a button.

7- If I click the button now, no problem. The page submits and is displayed with the information entered in the text box fields.

8- Add a RequiredFieldsValidator next to the first text box.

9- I set the ErrorMessage to some text

10- I set the ControlToValidate to the first text box's ID

11- I save then run with CTL + F5

12- The page is displayed in IE 7. I hit the Submit button and I get the popup error described above.

I used the Web Platform Installer for the installation. Everything went fine. All other aspects of my development and testing have been fine. This is the first major roadblock I hit. I think it has something to do with a configuration setting in the web.config file, but I do not know what setting to add/change.

View 5 Replies

How To Test Multiple Web Requests To Web Server

Mar 17, 2011

I am using asp.net and I would like to test a few hundreds concurrent requests to the same page, and get a result. I don't need it via browser. Just a tool that sends requests and prints the result Is there such tool?

View 2 Replies

Configure IHttpHandler In The Test Web Server?

Sep 24, 2010

I am trying to implement an IHttpHandler. I have defined an appropriate class but the debug web server (you know, the one you get if you hit f5 in Visual Studio) is responding with "Can't Display Page".I looked here http://msdn.microsoft.com/en-us/library/ms228090%28v=VS.90%29.aspx to learn how to configure the handler, and it seems there are different ways for IIS6 and 7. But the process is put something in the web.config and then set it up in IIS Manager. However, that is a deployment issue. I want to be able to run it in the test server, and I don't know how to do this second step in the test server.I put the following in my web.config:

<httpHandlers>
<add verb="*" path="*.sample"
type="MyNamespace.Code.HelloWorldHandler"/>
</httpHandlers>
HelloWorldHandler is the code from the link above (wrapped in MyNamespace.)

Can someone let me know how to configure this correctly for the development server?

View 1 Replies

Error In Opening Word File Using Response.transmitfile?

Aug 27, 2010

I'm using asp.net 2.0 (VS2005) on a windows 2008 server.

i'm using MS Office 2007

when open word docuemnt from server using the following code -

Response.ContentType = "application/ms-word";
Response.AppendHeader("Content-Disposition", "attachment; filename= " + strDocName);
Response.TransmitFile(Server.MapPath(Defpath1));
Response.End();

it works fine when i run it in debug mode, but gives the following error when running through IIS Problems during Load Problems came up in the following areas during loadMissing file:
QTnicFLJ5JKZN8dyEzUEsK2jPtygbkw....

View 1 Replies

C# - Getting A Object Reference Error In Prod Only When Trying To Use The Word DocumentClass?

Feb 25, 2011

I am writing a program that uses a .dotx template and does a merge of data in an aspx page. The program works perfect on my Dev workstation locally but when I deploy it to a test IIS server, it fails on the second line below giving me an Object Reference error.

I ran into problems earlier because the Word Com object was not on the IIS server so I loaded Word onto the server and set permission in DCom and got past that problem. But now I get this error on the line that starts with wRange = . As I said, the program works perfectly locally in debug mode.

Microsoft.Office.Interop.Word.DocumentClass
System.NullReferenceException: Object reference not set to an instance of an object

lines of code:

Document BaseDocument = oWord.Documents.Open(ref oTemplate, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing);
wRange = BaseDocument.Bookmarks.get_Item(ref endOfDoc).Range;

View 2 Replies

C# - Getting Error When Open Word Document File Which Is Generated Using .net?

Jul 17, 2010

I am using below code to generate word document using assp.net/c#.net, please tell me where i am missing it is generating word file and all contents are their.but problem is that when i open it it gives me error:"The Office Open XML file filename.doc cannot be opened because there are problems with the contents"
and after clicking ok i get my required file.remove this error.

in error details:The file is corrupt and cannot be opened after it again gets a error message:"word found unreadable content in myfile.do you want to recover the contents of this document? if you trust the source of ths document,click yes"

using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Office;

[code]...

View 1 Replies

Web Forms :: How To Test Udp Client With Actual Server

Apr 30, 2010

any body have IPAddress and port for actual server that i can test my Client UDP?

i can't test it in local host

View 2 Replies

Configuration :: Move Project To Test Server?

May 3, 2010

I have moved my entire project to my test server, everything went as planned with the exception of a couple of items. The main one that I'm having troubles with deals with subfolders of the website. On my local computer I created a my project then I created a sub folder, Secure, so that I can work with the security on the sub folder via ASP.NET configuration. I wanted only certain users to be able to access the folder, which works on my local computer, but when I try to navigate to it on my test server, I get a 404 error. I create two Roles on my local computer, but don't know if I'm able to make those roles on my test server. Is there a way to make those roles so that the security that I have on the sub folder will allow them to be displayed. Not certain why I get a 404 error.

View 3 Replies

Set Up A Test Email Server Within VS Web Developer 2010?

Jul 12, 2010

Is is possible to set up a test email server within VS Web Developer 2010? After a recent computer crash I've reverted to XP Home rather than Pro so I can't do it via IIS.

View 3 Replies

DataSource Controls :: Restore Master DB To Test Server?

Jun 16, 2010

restore a master database from production to test server.

The reason to do this because I need to test and evaluate some login in master database.

I tried to restore master database to test server, but I got some errors regarding about user databases are not exists in test server. I don't want to restore user databases, I only need master database for evaluate user login.

View 1 Replies

Configuration :: System Error: Cannot Create Activex Component In Microsoft Word?

Mar 3, 2010

My name is Christian, I developed a web application in VB.NET 2005 that calls a Microsoft Word Application, it works fine in my develop's machine but when I put all of the code in production's server I received the following error:System Error: Cannot create activex component. following I put the code. If somebody knows how to solve this,

Dim oWord As Microsoft.Office.Interop.Word.ApplicationDim oDoc
As Microsoft.Office.Interop.Word.DocumentDim oTable
As Microsoft.Office.Interop.Word.TableDim oPara0
As Microsoft.Office.Interop.Word.ParagraphDim oPara1
As Microsoft.Office.Interop.Word.ParagraphDim oPara2
As Microsoft.Office.Interop.Word.ParagraphDim oPara3
As Microsoft.Office.Interop.Word.Paragraph, oPara4
As Microsoft.Office.Interop.Word.Paragraph
oWord = CreateObject("Word.Application")
oWord.Visible = True
oDoc = oWord.Documents.Add
oPara0 = oDoc.Content.Paragraphs.Add
oPara0.Range.Text = "Hola"
oPara0.Range.InsertParagraphAfter()

View 6 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved