Hi there,
I developped an aplication using SmartClient 7 that uses viewloader to fetch forms from the server. The application was developed on Windows XP and tested there and I had no problem with ViewLoader. I did the same at the test server which is running Windows 2003. Again no problem, but when I uploaded it to Production Server which is Windows 2008 R2 with IIS 7.5, ViewLoader started returning HTTP Error 400. It does the same thing when the site is viewed from another computer in the domain. So now I'm confused. I checked and doublechecked the virtual directories, I even gave Full control permission to Everyone to all the directories and still no luck. This is rather urgent so please respond ASAP.
here is the contents of the developer console:
Here is the code for the inherited ViewLoader that is used:
and here is the code whic calls the loader:
And I repeat. It's not due to the code, because the thing works perfectly on my local machine and test server.
Thanks in advance
Goran Mumelas
I developped an aplication using SmartClient 7 that uses viewloader to fetch forms from the server. The application was developed on Windows XP and tested there and I had no problem with ViewLoader. I did the same at the test server which is running Windows 2003. Again no problem, but when I uploaded it to Production Server which is Windows 2008 R2 with IIS 7.5, ViewLoader started returning HTTP Error 400. It does the same thing when the site is viewed from another computer in the domain. So now I'm confused. I checked and doublechecked the virtual directories, I even gave Full control permission to Everyone to all the directories and still no luck. This is rather urgent so please respond ASAP.
here is the contents of the developer console:
Code:
12:32:47.490:XRP1:WARN:Log:Error: 'Expected ';'' in http://localhost/rodiab/ at line 1 Class.globalEvalWithCapture(_1=>"Transport error - HTTP code: 400 for URL..."[61], _2=>anonymous(), _3=>Obj, _4=>undef) ViewLoader.$40p(_1=>Obj, _2=>Obj, _3=>"Transport error - HTTP code: 400 for URL..."[61]) callback(rpcResponse=>Obj, data=>"Transport error - HTTP code: 400 for URL..."[61], rpcRequest=>Obj) " if(window.isc_FormLoader_759)isc_FormLoader_759.$40p(rpcRequest, rpcResponse, data) " Class.fireCallback(_1=>"if(window.isc_FormLoader_759)isc_FormLoa..."[83], _2=>"rpcResponse,data,rpcRequest", _3=>Array[3], _4=>[RPCManager ID:builtinApplication], _5=>undef) on [Class Class] Class.fireCallback(_1=>"if(window.isc_FormLoader_759)isc_FormLoa..."[83], _2=>"rpcResponse,data,rpcRequest", _3=>Array[3], _4=>undef) "return isc.Class.fireCallback(_1,_2,_3,this,_4)" RPCManager.fireReplyCallback(_1=>"if(window.isc_FormLoader_759)isc_FormLoa..."[83], _2=>Obj, _3=>Obj, _4=>"Transport error - HTTP code: 400 for URL..."[61]) RPCManager.fireReplyCallbacks(_1=>Obj, _2=>Obj) RPCManager.performOperationReply(_1=>Obj, _2=>Obj) RPCManager.$39d(_1=>4) RPCManager.performTransactionReply(_1=>4, _2=>Array[1], _3=>undef) callback(transactionNum=>4, results=>Obj, wd=>undef) " isc.RPCManager.performTransactionReply(transactionNum,results,wd) " ** recursed on Class.fireCallback 12:32:47.505:XRP1:WARN:Log:[object Error] 12:32:47.505:XRP1:WARN:Log:firing the callback from global eval with... 12:32:47.521:XRP1:WARN:Log:viewLoader is:[FormLoader ID:isc_FormLoader_759]
Code:
isc.ClassFactory.defineClass("FormLoader", "ViewLoader"); isc.FormLoader.addProperties({ onLoad: null, viewLoaded: function(view) { view.initialize(this.target, this.toolstrip, this.header); if (this.onLoad != null) this.onLoad(view); }, handleError: function(rpcRequest, rpcResponse) { isc.warn("Greška!<br><br>Status: " + rpcResponse.status + "<br>Http kod: " + rpcResponse.httpResponseCode); } })
Code:
p._loader = FormLoader.create({ xwidth: '100%', height: AItem.Height, autoDraw: false, loadingMessage: '', target: bbrMain, toolstrip: p._toolbar, header: lblHeader, showConnectors: true, onLoad: function(view) { lytMain.viewLoaded(view); }, viewURL: "Controls/" + AItem.Action + ".js" });
Thanks in advance
Goran Mumelas
Comment