 |
|
|
 |
|
 |
Hello
I receive {"Response is not well-formed XML."} when executing:
object[] results = this.Invoke("GetAllUpdateInfosCompressed", new object[] { version});
I see that you received this report quite a while ago but there is no public response posted. Can you give a hint about how to fix this.
Thank You
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
have you checked this message : http://www.codeproject.com/script/Forums/View.aspx?fid=278224&msg=1455457
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hi,
Yes I saw that and had added the [CompressionExtension]
The code looks like this:
[CompressionExtension]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute ("http://tempuri.org/GetAllUpdateInfosCompressed", RequestNamespace = "http://tempuri.org/", ResponseNamespace = "http://tempuri.org/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public object[] GetAllUpdateInfosCompressed(string version) { object[] results = this.Invoke("GetAllUpdateInfosCompressed", new object[] { version}); return ((object[])(results[0])); }
The exception looks like this:
System.InvalidOperationException was unhandled Message="Response is not well-formed XML." Source="System.Web.Services" StackTrace: at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String MethodName, Object[] parameters) at WebUpdateClient.ws_update.Update.GetAllUpdateInfosCompressed(String version) in C:\WebUpdate\webupdateclient\Web References\ws_update\Reference.cs:line 51
at WebUpdateClient.Form1.button1_Click(Object sender, EventArgs e) in C:\WebUpdate\webupdateclient\Form1.cs:line 174 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.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) at system.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.Run(Form mainForm) at WebUpdateClient.Form1.Main() in C:\WebUpdate\webupdateclient\Form1.cs:line 158 at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args) at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart()
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
this is because you get compressed XML from the server and it's not correctly uncompressed on the client ... if you want you can call GetAllUpdateInfos instead of GetAllUpdateInfosCompressed to get ride of this problem 
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Thank You for your responses,
But, the web service does not have a function defined as "GetAllUpdateInfos", have I downloaded a non current version?
But, why would the compressed XML not uncompress correctly?
I tried removing the compression by "//[CompressionExtension]" but I then get the error "Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'."
This looks like a really great solution and I would really like to get it working.
Thank You
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
if you juste want to use it, just dont try to recompile it  it will work out of the box ... all the problems are caused by vs 2005 or 2008 wich break the reference file from vs2003
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
I do need to support the app and I do need to compile it.
I did make progress though....
I tried to do an “update web reference” for "ws_update" in the WebUpdateClient workspace and received an IIS metabase error. I tried to resolve that error with the fix at this link http://geekswithblogs.net/narent/archive/2007/03/23/109573.aspx by issuing the command line command “aspnet_regiis –i” as defined in that web page.
After doing that, the “Response is not well formed-XML” exception encountered at "GetAllUpdateInfosCompressed()" was fixed and downloading of the files worked also.
Of course, if you actually do the "update web reference", the generated Reference.cs file gets overwritten and you will have to add the compression modifications again.
Joe
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
Hi, We have an application that is currently being updated with an updater developed around the Patterns and Practices Updater Block. We now find that updates are only successful, when updating the exe or dll files, when the logged on user has administrative rights .
Can I assume your updater will run into the same issues? Do you have any suggestions? Should we be changing the security for our software folder to allow other users access to it? Thanks for any insight. I plan to try out your code and use it in the future to avoid all the overhead with the updater block's manifest creation process...
Oh, and one other question - Do you think it would be difficult to make the update process a "two phase" process? Where we can start a download of updated files, but start the application right away. Then install those files the next time the user starts the application? Our app runs over a WAN connection, and updates may take quite some time to download, that is why I ask.
Thanks for a great tool.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hello, my updater doesn't need the user to have admin rights  And unlike the updater application block, my updater detect updates on any files !! not only assemblies
For your 2 phases process ... it's not possible because the way my updater work is by comparing local and remote files... a way to do it could be to first copy the full app folder then run the updater on the copy and run your app in the original folder, then at each launch rename the copy folder to the original folder name
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hello. I have used this service many times in the past and it has always worked great for me. However, in a recent implementation, I came across the following exception:
Client found response content type of 'text/plain; charset=utf-8', but expected 'text/xml'. The request failed with the error message: -- System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Security.SecurityException: That assembly does not allow partially trusted callers. at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) at MasterCSharp.WebServices.CompressionExtension.Unzip(String stringToUnzip) at MasterCSharp.WebServices.CompressionExtension.UnzipSoap(Stream streamToUnzip) at MasterCSharp.WebServices.CompressionExtension.Unzip() at MasterCSharp.WebServices.CompressionExtension.ProcessMessage(SoapMessage message) at System.Web.Services.Protocols.SoapMessage.RunExtensions(SoapExtension[] extensions, Boolean throwOnException) at System.Web.Services.Protocols.SoapServerProtocol.ReadParameters() at System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest() The action that failed was: LinkDemand The assembly or AppDomain that failed was: CompressionExtension, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null The Zone of the assembly that failed was: MyComputer The Url of the assembly that failed was: file:///D:/Hosting/3553549/html/updates/bin/CompressionExtension.DLL --- End of inner exception stack trace --- --.
Has anybody seen this or know why this might be occurring?
Thanks!
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
You are certainly deploying your client through clickonce, you have to set full trust to your clickonce app
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
You are correct. I have just confirmed that my hosting provider (GoDaddy) no long supports Full Trust for their Shared hosting accounts. They will however enable Full Trust if I purchase a virtual server account. As that is not an option due to the tremendous difference in cost I will most likely develop an FTP solution instead.
Thanks. -Shawn
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hey,
Can i use this on an Asp.net web site to allow itself to call another server to get an update ?
The aspect of updating itself is why i ask this question.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Ok sorry if this is a stupid question.. but how am I supposed to implement this into my application?
I can't run the WebUpdateClient.exe app from my app's load event since it wont be able to overwrite the exe currently running.
Am I then supposed to run the WebUpdateClient.exe first and then on its completion run my application? Sorry, just a bit confused here.
Thanks
|
| Sign In·View Thread·PermaLink | 2.00/5 |
|
|
|
 |
|
 |
Your user should start webupdate.exe, this will update webupdateClient.Exe and start your application update then you can modify webupdateClient.exe to start your application.exe at the end of the update
|
| Sign In·View Thread·PermaLink | 1.00/5 |
|
|
|
 |
|
 |
Thanks for providing WebUpdate, its a simple and effective solution for my updating needs.
I made a change to include the file's md5 hash as a field in the UpdateInfos class and I use that now instead of the file time to check if a file needs to be updated. The reason for this was that when uploading a new version to the website folder the ftp client affected all the files times so all the files would be downloaded instead of only the ones that had really changed.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
Joe -
I'm very sure that I am correctly doing the code changes that you have previously posted about what to modify after VS2005 does it's upgrade; but I'm still having problems. I've tried from scratch 3 times now with no luck. So, any chance you could post your VS2005 version as clearly there is something else going on?
Thanks,
Dirk
|
| Sign In·View Thread·PermaLink | 2.00/5 |
|
|
|
 |
|
 |
What about updating the user database - SQl ? Smetimes we have to update the SQL ? Any idea about the best way to do it ??
thanks again
Hantoush
|
| Sign In·View Thread·PermaLink | 1.00/5 |
|
|
|
 |
|
|
 |
|
 |
Hi ,
My web server supports Linux with PHP/Mysql .. Can I use WebUpdate ? or I have to upgrade to Windows ASP .NET web server ?
thanks
Hantoush
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
Hi,
nice work! But it´s not working here. I´m sitting behind a Proxy Server. Each time i start the client i´m thrown out with the exception "...407: Proxy Authentication Required."
Any idea where to put my login/pw for my WWW-Proxy and why i´m asked for this ? The HTTP server is running local.
Thanks in advance !
Frank
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |