robertje

Hello,

I put together a small desktop cms application for a clients website. I am as it is just a novice programmer and have run into a problem. The application run great in debug and when I use the exe from bin/release it also works great. They do what they are suposed to do.

When I try to use the published version, it will not work. At first it would not even open. It opens now, but still does not work.

After trying it on my clients machine, the puplished version did not work at all. I even tried a copy of the bin/release version. With out any avail...

Please I need help. Here is a link to download the source: http://julannadesigns.com/download/CMS.zip

If some could please tell me what I did wrong. Why it will not work at all on my clients computer and the published version will not work on my computer...



Re: Visual C# Express Edition Need help with new application

element109

I downloaded your project and there were two issues on my computer.

First I could not build or debug the program because the "sign the click-once manifests" checkbox was checked.

I don't know for sure if this is your problem because I don't know anything about certificates, but are the certificates installed on the client computer

Second after removing the signing, when starting the program no forms appeared, I discovered that the PageEditor Form is initialized before the main form shows.

The HTMLEditor control on that form was locking up, it did not break the program. I noticed this control was from microsoft consulting does it require a special licence The other thing I wondered was what version of Internet Explorer is installed on your clients machine I have IE7 installed is this the problem

I'll keep playing around with it and see if I can get it to work.





Re: Visual C# Express Edition Need help with new application

robertje

Thanks for looking into it. Please let me know if you figure anything else out. Yes the editor control does need a licence. I am not using it for my client, just to show him what is possible. I have learned a great deal from the editor and hope to build my own soon... Well mabe not soon, but in the future...



Re: Visual C# Express Edition Need help with new application

element109

Am I violating that license agreement by having that code stored on my computer for analysis





Re: Visual C# Express Edition Need help with new application


Re: Visual C# Express Edition Need help with new application

element109

I finished repairing your project several things were cross referenced.

I noticed that you created your project from another project, this created corrupted project files.

Visual studio creates several xml files when creating projects and solutions. I also noticed some projects were located in the same folder which also creates problems.

When you reused some or all of the controls from the original project things also became cross referenced.

Things to remember when creating new projects and solutions:

Save each new project in it's own folder. If the project is a child of another project or solution, simply create a new folder in the parent projects directory.

Name your controls with names that make sense, if you don't rename controls after they are created your code becomes difficult to debug and also you may run into problems if you delete that control and create a new control of the same type.

I typically name controls as follows: textbox1 would be something like tbxUser this tells me that the control is a textbox and its purpose has something to do with a user. I place the control type first so that in the environment, controls of the same type are listed together making them easier to find.

Remove unused references, if you are not sure if the reference is needed or not then remove it and try to build your project if the project builds successfully you don't need the reference.

Would you like me to send your project to the email address on your website.





Re: Visual C# Express Edition Need help with new application

robertje

And thank you very much for your help. I am a web designer, not a programmer. I took a chance and learned a lesson. The lesson is to slow down and learn more before going ahead with your ideas....





Re: Visual C# Express Edition Need help with new application

robertje

Much of it works much better untill I try to run a published version.

I published the application, It started great and opened up the pages to be edited great. When I clicked on the "Complete And Upload" button it stoped and said this:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Documents and Settings\Owner\Local Settings\Apps\2.0\79WMAE11.AL8\83L9ZX0Q.TZ5\jula..tion_70196fac5ef95094_0001.0000_403f265023d840df\WebSiteContents\complete.html'.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
   at System.IO.StreamWriter.CreateFile(String path, Boolean append)
   at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize)
   at System.IO.StreamWriter..ctor(String path)
   at Microsoft.ConsultingServices.HtmlEditor.HtmlEditorControl.EditComplete()
   at JuLannaDesignsCMS.PageEditor.cmdCompleteUpload_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase:
file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
JuLannaDesignsCMS
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.0.0
    CodeBase:
file:///C:/Documents%20and%20Settings/Owner/Local%20Settings/Apps/2.0/79WMAE11.AL8/83L9ZX0Q.TZ5/jula..tion_70196fac5ef95094_0001.0000_403f265023d840df/JuLannaDesignsCMS.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
HTMLEditorControl
    Assembly Version: 1.0.2569.30688
    Win32 Version: 1.0.2569.30688
    CodeBase:
file:///C:/Documents%20and%20Settings/Owner/Local%20Settings/Apps/2.0/79WMAE11.AL8/83L9ZX0Q.TZ5/jula..tion_70196fac5ef95094_0001.0000_403f265023d840df/HTMLEditorControl.DLL
----------------------------------------
AxInterop.SHDocVw
    Assembly Version: 1.1.0.0
    Win32 Version: 1.1.0.0
    CodeBase:
file:///C:/Documents%20and%20Settings/Owner/Local%20Settings/Apps/2.0/79WMAE11.AL8/83L9ZX0Q.TZ5/jula..tion_70196fac5ef95094_0001.0000_403f265023d840df/AxInterop.SHDocVw.DLL
----------------------------------------
Interop.SHDocVw
    Assembly Version: 1.1.0.0
    Win32 Version: 1.1.0.0
    CodeBase:
file:///C:/Documents%20and%20Settings/Owner/Local%20Settings/Apps/2.0/79WMAE11.AL8/83L9ZX0Q.TZ5/jula..tion_70196fac5ef95094_0001.0000_403f265023d840df/Interop.SHDocVw.DLL
----------------------------------------
Microsoft.mshtml
    Assembly Version: 7.0.3300.0
    Win32 Version: 7.0.3300.0
    CodeBase:
file:///C:/WINDOWS/assembly/GAC/Microsoft.mshtml/7.0.3300.0__b03f5f7f11d50a3a/Microsoft.mshtml.dll
----------------------------------------
Accessibility
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
FTP
    Assembly Version: 1.0.2569.30686
    Win32 Version: 1.0.2569.30686
    CodeBase:
file:///C:/Documents%20and%20Settings/Owner/Local%20Settings/Apps/2.0/79WMAE11.AL8/83L9ZX0Q.TZ5/jula..tion_70196fac5ef95094_0001.0000_403f265023d840df/FTP.DLL
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

So what does this mean


 





Re: Visual C# Express Edition Need help with new application

element109

I could not test that part of your program, so I did not make any changes there. It appears you do not have
adequate permissions to access part or all of the supplied file path. Is the user's windows account an administrators account
If that is not the problem you need to configure your app with the .NET Framework 2.0 Configuration Utility to give your app the required permissions. There are ways to request permissions through code, but I don't know how to do this. You can try checking the enable click-once security settings checkbox located in your project properties under security. I don't have much experience with this aspect of development.