473,407 Members | 2,546 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Problem Closing and Reopening Frontpage Object from VB NET


The Code Snippet (from VB Net in Visual Studio Net 2003) below does the following

(1) Create a Front Page (2002) Application Objec
(2) Open a We
(3) Close the We
(4) Execute Front Page Application Object "quit" method
Proble
------

I cannot run the snippet below twice without first shutting down my program. Here i
the error I get the second time my code tries to create a FrontPage Application Object

Generic Exception Handler: {0} System.Runtime.InteropServices.COMException (0x80004005): Unspecified erro

But wait, there is more

The first time I run the snippet, the Image Name "FRONGPG.exe" shows up in the
Windows Task Manager, under the "Processes" Tab. If I wait long enough (five o
ten or maybe fifteen minutes) "FRONGPG.exe" goes away and then I can run my
snippet again without restarting my program

HELP PLEAS
----------

Any Suggestions
'************************************************* **************************
' Code Snippe
'************************************************* **************************
Private Sub btnTest3_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnTest3.Clic
Dim WebName As String = "C:\Documents and Settings\Rolf\My Documents\FrontPage Projects\D2
Dim myWeb As FrontPage.WebE
Tr
'Create the FrontPage Application Objec
'fpApp = new FrontPage.Application <= This can be used instead o
' CreateObjec
fpApp = CreateObject("FrontPage.Application"
'Open a We
myWeb = fpApp.Webs.Open(WebName, , , FrontPage.FpWebOpenFlags.fpOpenNoWindow
'Now close the we
myWeb.Close(
'Quit the FrontPage Application Objec
log("FrontPage Application Object quit" + ControlChars.CrLf
fpApp.Quit(
fpApp = Nothin
Catch ex As Exceptio
log("Generic Exception Handler: {0} " + ex.ToString()
End Tr
End Su

Nov 20 '05 #1
1 1430
GC.Collect Method Fixed i

Not sure if this is the best fix.
Nov 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: ThunderMusic | last post by:
Hi, I'm trying to have a MSN Messenger like form/app closing behavior. When I click on the X button, I only want the form to disappear and when I double-click on the notify icon or right-click...
1
by: Richard Holliingsworth | last post by:
Hello: Thanks for your quick response. I'm trying to import a new Excel file into an A2K table and it's truncating the data. One of the Excel columns is a text field that can be up to 2000...
1
by: pdemarais | last post by:
What is the differance between refreshing a form and closing/reopening a form. When I refresh data in a form and click on a record in a list box the information that shows is from the 1st record....
5
by: Pete Davis | last post by:
First of all, I'm not real experienced with HTML or ASP.NET. I'm doing my first ASP.NET app. I'm working in VS.NET, and I'm laying out my controls in HTML tables. It seems that every once in a...
10
by: Charles Law | last post by:
For some reason, when I click the X to close my MDI parent form, the action appears to be re-directed to one of the MDI child forms, and the parent remains open. I am then unable to close the...
3
by: todd.freed | last post by:
Hi all, I have recently encountered the following problem with my ASP.Net application. After deploying our site and people started using it alot, we discovered that if a person were to browse...
2
by: sieg1974 | last post by:
Hi, I have a linked list with 705 nodes, and the functions getContact and listContact to deal with it. listContact works properly, and prints all some debug information about each node. On the...
22
by: b_r | last post by:
Hi, I'm trying to make a simple operation (insert into DB) in VB 2005 and SQL Server. The code is as follows: Dim sConnectionString As String = _ "Data...
4
by: EManning | last post by:
Using A2003 w/ tables linked to SQL Server. All users have their own copy of the mdb. I have a combobox whose rowsource is a query. This query is based on a table and has a field in it that...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.