PC Review


Reply
Thread Tools Rate Thread

Custom ApplicationContext and ClickOnce deployment

 
 
Joachim Rosskopf
Guest
Posts: n/a
 
      21st Dec 2007
Hello,

in a small database-client-application I use a custom
ApplicationContox to first show a splash screen to do some
initialisation in a background worker. After closing that Form a
second Main Form, the real application should be shown. When I start
the application in VisualStudio 2005 everything works fine.

But after deploying the application by ClickOnce the splash screen
shows up and does the work. After closing the Main Form never shows.
After attaching a debugger to the still running process, I see, that
the Form.Show() method of the Main Form blocks.

Here I´ll show you the OnMainFormClosed method of my
ApplicationContext:
<snip>
protected override void OnMainFormClosed(object sender, EventArgs e)
{
if (sender is SplashScreen)
{
base.MainForm = this.mainForm;
base.MainForm.Show(sender as SplashScreen);
MessageBox.Show("After Show;");
}
else if (sender is Main)
{
base.OnMainFormClosed(sender, e);
}
}
</snip>

What´s going wrong.
Regards
---
Joachim
 
Reply With Quote
 
 
 
 
RobinS
Guest
Posts: n/a
 
      4th Jan 2008
I doubt this is a problem with ClickOnce. You might try
just running the exe file under \bin\debug or \bin\release
in your project folder and see if you see the same behavior.

I'd be surprised if you don't. If that's true, you can add
a bunch of messageboxes to see exactly what it's doing, or
write message to a log file, or something like that.

When we first started deploying with ClickOnce, I got a
lot of calls from customer service that the installation wasn't
working for some of the customers. Turns out there was a bug that
happened on some versions of XP that crashed the application
right out of the gate. Oops. My bad!

ClickOnce is basically doing an XCopy and setting up shortcuts
for running the app (assuming you are running both online and
offline). That's why I say the likelihood of this being a
ClickOnce problem is slim. UNLESS you are not including some
component in the deployment that you need.

RobinS.
GoldMail, Inc.
--------------------------------------
"Joachim Rosskopf" <(E-Mail Removed)> wrote in message
news:d0f76727-c78c-4eec-a503-(E-Mail Removed)...
Hello,

in a small database-client-application I use a custom
ApplicationContox to first show a splash screen to do some
initialisation in a background worker. After closing that Form a
second Main Form, the real application should be shown. When I start
the application in VisualStudio 2005 everything works fine.

But after deploying the application by ClickOnce the splash screen
shows up and does the work. After closing the Main Form never shows.
After attaching a debugger to the still running process, I see, that
the Form.Show() method of the Main Form blocks.

Here I´ll show you the OnMainFormClosed method of my
ApplicationContext:
<snip>
protected override void OnMainFormClosed(object sender, EventArgs e)
{
if (sender is SplashScreen)
{
base.MainForm = this.mainForm;
base.MainForm.Show(sender as SplashScreen);
MessageBox.Show("After Show;");
}
else if (sender is Main)
{
base.OnMainFormClosed(sender, e);
}
}
</snip>

What´s going wrong.
Regards
---
Joachim

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ClickOnce Deployment Chris Rennert Microsoft C# .NET 3 20th Apr 2006 06:11 PM
ClickOnce Deployment Jordan S. Microsoft Dot NET Framework Forms 3 18th Apr 2006 05:15 PM
clickonce Deployment eroor throgh VPN in local area Deployment is OK emri.mbiemri@gmail.com Microsoft Dot NET Framework 1 17th Apr 2006 05:49 AM
ClickOnce Question - Remote location for the ClickOnce deployment John Yung Microsoft Dot NET Framework 3 13th Jan 2006 04:13 PM
ClickOnce Question - Remote location for the ClickOnce deployment John Yung Microsoft Dot NET Framework Forms 3 13th Jan 2006 04:13 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:25 PM.