Click Once VS2005 issues

C

CJ

Hi,

I have an issue with publishing an application using Visual Studio
2005 click once functionality. Firstly, my project was written using
the smart client software factory. In my case all this means is my
screen is formed using user controls which are called smart parts.
These user control just get added to the It also means that my
project references a few dll's which are all part of my smart client
application. Secondly, I'm publishing the project to my localhost so
it's not to an external webserver etc.

My issue is that when I publish this to a URL all I get is a blank
windows form when it's run. It works fine if I build and run the
application normally.

As I said, I can't get it deployed. I'm new to Click once so not sure
what to check. I did check the following:
- Checked the references in my project and the all seem fine
- Checked the prerequisites in the publish page of project
properties. Only .Net is selected, which seems to be fine.
- Checked the Shell_1_0_0_0 folder in my wwwroot and it seems to
contain all the dll's my project references
- Checked the shell.exe.manifest in Shell_1_0_0_0 and it seems to
reference all the required dlls

I don't know what to check outside of this. What confuses me is that I
get no errors when I run the app, just a blank windows screen. The
user controls are build in a project called "Interface.Module" and
this dll is referenced, copied to Shell_1_0_0_0, and referenced in the
Shell.exe.manifest file.

The one suspicious thing is an error I get the first time I load the
project into visual studio. Because smart clients use "workspace"
controls I have to reference a composite UI winforms dll to get these
controls. This works fine, but the one bad behaviour I have is that I
get an error everytime I load the project for the first time. The
error is:

Could not find type
'Microsoft.Practices.CompositeUI.WinForms.DeckWorkspace'. Please make
sure that the assembly that contains this type is referenced. If this
type is a part of your development project, make sure that the project
has been successfully built.

This occurs on the Form Designer of the main windows screen. But if I
close the screen and reopen it it all works fine again and I get no
errors?!? I checked the project file in notepad and it references
"Composite.WinForms" and points to it as being in "$(SolutionDir)
\Lib". I have checked the "$(SolutionDir)\Lib" folder and yes, it's
there. But I can't seem to stop this error appearing. Not sure if
fixing this error might fix my overall problem, but any suggestions
here too would be appreciated. I find it odd that this error would be
the problem if my app runs fine in normal build mode, but not in
published mode.

I'm at a serious head scratching phase here so any help is
appreciated! If I have explained anything badly, or you would like
more details, please just ask! I will try clarify any questions you
may have.

Thanks,
C.
 
C

CJ

Sorry, I just realised that I should have posted this in the VS
section. will repost it.
 
C

CJ

Second attempt at posting a reply! I have reposted this issue on the
VSNet.General newsgroup. I only noticed a while ago that it probably
should be posted here.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top