Silverlight not searching for ClientAccessPolicy.xml - silverlight

I'm working with Silverlight and WebSocket4Net and get an error when attempting to connect. The problem is with the underlying socket:
{System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions.}
There is no InnerException or StackTrace below this.
It does not try to find the ClientAccessPolicy.xml -- at all.
I'm trying to connect to another computer, say 10.0.0.102, and that I'm from 10.0.0.101. I can access 10.0.0.102/ClientAccessPolicy.xml just fine. However, in Fiddler, it doesn't even attempt to load 10.0.0.102/ClientAccessPolicy -- no call is made to find it.
Because of this, my attempt to call and connect to the WebSocket via TCP doesn't work at all (i.e. ws://10.0.0.102:4530/WebSockOutput/). I've manually set the Socket's ClientAccessPolicyProtocol to Http... When I check at the lower layers, it's still setting the CAPP correctly.
Any thoughts?
I'd also like to add that I've rebooted and cleared the Temp directory on both machines several times.

OK, so the problem is REALLY REALLY REALLY sad, on my part.
Apparently it already cached the ClientAccessPolicy.xml (which I'd changed to support the TCP Ports), and though I thought I was killing the temporary internet files, I wasn't. I deleted my history/downloaded data from IE's Options, and that fixed everything.
One would think that Silverlight would attempt to re-download the ClientAccessPolicy a bit more frequently...

Related

Parse4cn1 connection error

I'm facing trouble using parse4cn1 because apparently I have a connection issue with the server(back4app). I was working with parse4cn1 for quite some time and everything went fine until yesterday. Right now I am getting a ParseException when using it -
[parse4cn1] Request failed.
ParseException [code=100, msg=Connection to backend failed., cause=null]
**The project runs perfectly on a different pc. tried to use another network on this computer and still get the same connection issue.
It must be my computer blocking me from using this particular server. unfortunately I do not know how to check if this is true and obviously how to fix it..(am using netbeans if it matters..)
help would be apreciated!
Itay
Eventually the issue was in my codename1 simulator, apparently the default behavior of it is blocking all outgoing network connections (or at least that how it was for me). I had to simply change it to regular network activity.

Credentails Manager service is stopped

Hi,
I am getting the below error when trying to update my view . Also, creds manager service is stopped and not getting started.
As long as the credmanager.exe is not started, none of the view (snapshot or dynamic) will work. So you need to debug that first.
Typically, you would check the ClearCase logs, and the Windows event, to see what the issue is. See "how to fix or investigate 'Operation “view_ws_is_ws_view” failed'?", using cleartool getlog.
That kind of error ("This application has failed to start becauselibatriaks.dllwas not found. Re-installing the application may fix this problem") was seen with rather old versions of ClearCase (7.0.1).
See for instance this thread.
If the DLL is present and the directory is in your path you should never
get this error.
Check to see how far ...\rational\clearcase\bin is down your SYSTEM path, and make sure the DLL's are in there.
ccgzip.exe will be called (by the client process) when checking in any files that fall back to the "compressed_file" element type. It may be called by the view server during file opens and checkouts to construct cleartext if needed. The former uses your user path, the latter will normally use the SYSTEM path.
We've seen odd behavior on Windows when the path gets >500 characters
long, though there seems to be no "official" limit to the length this environment variable (%PATH%) can grow to.
The error message you see is likely a path issue. Whether that's related to the other issue is unknown...
Is the albd server process running? The credential manager service is flagged to depend on this service. If that service fails to start, or terminates, the credential manager service will also fail.
A service startup failure should be in the Application or System Event logs. and from there the "Troubleshooting albd startup failures" technote on ibm.com would likely be a good place to start.

axapta random crashes multiple calls same method

I have a web application that makes calls to axapta, if I test the web with only one user, then evething goes perfectly. But, if I test the web with two or three users at the same time, and make calls with all the users to the same ax method (I have not tested diferent methods), then ax randomly crashes and even return diferents exceptions, BusinessConnectionException it's the most usual, but event so, the Message of the exception varies from error to error.
How can I detect the errors?
How can I get more info of what is wrong?
How can I solve this problem?
EDIT:
This event crashes IIS somtimes...
EDIT:
see coments for solution explanation until I can answer my own.. "silly" question.
It was my fault all along... I have created the axapta client as a Singleton (static), and all the clients (I did not think about that) shared the same connection with ax. When I changed the static for a non static, then all worked, a little bit slower, but worked.

Path.GetTempFileName causes Access to path '' is denied.in Silverlight

I am have a problem with Path.GetTempFileName with running a Silverlight application. If I install my application to run Out-Of-browser it runs ok. It only fails when I run it locally i.e. In-Browser.
The error is
File operation not permitted. Access to path '' is denied.
I cannot debug my application because of this issue. Can anyone suggest a work around?
The problem is probably no access to where ever Path.GetTempPath is pointing to.
If you have access to say My Documents, you could combine that with Path.GetRandomFileName, or if it's not happening too often, a simple time stamp.
Maybe you could use isolated storage. You could ask to make it a trusted application which would gain you access to the file system but doesn't work in say windows phone.
The GetTempFileName method tries to access the temporary folder which is typically on the C:\ (or whichever letter the main drive has been assigned). For security reasons, in-browser applications aren't allowed local access and that's likely why you're getting an error.

Real remote editing without X-Forwarding, using Vim or the like

I'm currently working an a rather large web project which is written using C servlets ( utilizing GWAN Web server ). In the past I've used a couple of IDEs for my LAMP/PHP jobs, like Eclipse.
My problems with Eclipse are that you can either mirror the project locally, which isn't possible in this case as I'm working on a Mac (server does not run on OSX), or use the "remote" view, which would re-upload files when you save them.
In the later case, the file is only partly written while uploading, which makes this a no-go for a running web server, or the file could become corrupted if the connection was lost during uploading. Also, for changing some character, uploading the whole file seems rather inefficient to me.
So I was thinking:
Wouldn't it be possible to have the IDE open Vim per SSH and mirror my changes there, and then just :w (save) ? Or use some kind of diff-files for changes?
The first one would be preffered, as it has the added advantage of Vim .swp files, which makes it possible that others know when someone is already editing the file.
My current solution is using ssh+vim, but then I lose all the cool features I have with Eclipse and other more advanced IDEs.
Also, regarding X-Forwarding: The reason I don't like it is speed. It feels way slower than just editing locally, and takes up unneeded bandwidth, when all I want to do is basically "text editing".
P.S.: I couldn't find any more appropriate tags for the question, especially no "remote" tag, but if you know any, feel free to add them. Also, if there is another similar question, feel free to point it out - I couldn't find any.
Thank you very much.
If you're concerned about having to transmit the entire file for minor changes, the only solution that comes to my mind is running (either continuously, or on demand) an rsync job that mirrors the remote site to your local system (and back). The rsync protocol just transmits the delta information. According to Are rsync operations atomic at file level?, the change is atomic.
Another possibility: run everything in a virtual machine on your Mac. The server and the IDE/text editor are both on the same virtual machine so you don't have to fear network issues.
Because the source code on the virtual machine is under some kind of VCS the classic code → test → commit process is trivial (at least theoretically).

Resources