Trying to solve flex2gateway issue (Flex /ColdFusion 9 Enterprise on VPS Windows Server) - apache-flex

I'm migrating a Flex 3/ColdFusion 7 app over to ColdFusion 9 Enterprise. I'm getting a strange result: When a user first visits the application, I receive the following error:
faultCode:Client.Error.MessageSend faultString:'Send failed' faultDetail:'Channel.Connect.Failed error Invalid URL url: 'http://[mydomain]/flex2gateway/'
The weird thing is the error goes away if you refresh the browser. It will however reappear if you restart the browser. I have no clue as to what is going on. I did go directly to the 'http://[mydomain]/flex2gateway' and saw the request blank white page. I took a look at the logs in CFAdmin but nothing there. Wondering if it has to do with how ColdFusion and Windows Server are communicating. I did learn of a workaround here:
http://forums.adobe.com/thread/662371
I'd prefer not use a hack. Any ideas on how to solve this problem would be greatly appreciated.
Thanks.
Jason

Related

Using Media3D in IIS hosted ASP.NET Site

I have developed an ASP.NET website that uses System.Windows.Media dlls to render a 3D Image as a bitmap.
The process is the client page requests a render.
The server then runs the Rendering code and sets the bitmap on the page.
This all works fine in VisualStudio, but as soon as I publish to IIS the rendered image no longer displays. The Bitmap rendered by Media3D is empty!
I am using RenderTargetBitmap to Render the ViewPort3d to a Bitmap.
I believe this is an IIS trust issue but I have been unable to solve it. Does anyone have a clue on how to work around this?
I am using .Net 4.5 and am running on Windows 7 64 bit, but the server that will be hosting it is Windows 8 Server, if that changes anything.
UPDATE
Process Monitor was very usefull.
From what I can tell
HKCU\Software\Classes\CLSID{AC757296-3522-4E11-9862-C17BE5A1767E}\Instance
HKCR\CLSID{AC757296-3522-4E11-9862-C17BE5A1767E}\Instance NAME NOT FOUND
HKCU\Software\Classes\CLSID{2B46E70F-CDA7-473E-89F6-DC9630A2390B}\Instance NAME NOT FOUND
HKCR\CLSID{2B46E70F-CDA7-473E-89F6-DC9630A2390B}\Instance NAME NOT FOUND
These keys could be causing the problem, but i'm not entirely sure what they are, googling the first one comes up with
http://msdn.microsoft.com/en-us/library/windows/desktop/ee719879%28v=vs.85%29.aspx
Which refers to Encoder-Specific Registry Entries. Which leads me to believe I am somehow missing the appropriate encoder/decoder for RenderTargetBitmap and BmpBitmapEncoder to work properly from w3wp.exe/ IIS. Where do I find these? I would of thought they came with .NET Framework. Any clues?
These are not requested when I run the website from Visual Studio...
Thanks,
GP

IIS Express Internet Explorer cannot display the webpage ... until restart

I have one asp.net application which I debug locally using IIS Express.
I have a setup by which I access it as http//machine-name:port/appname (instead of localhost).
This works smoothly until suddenly out of the blue during debugging I get the message:
Internet Explorer cannot display the webpage
What ever I do, it does not work again until I restart Windows.
Has anyone faced this issue before? Is there a way to fix this without restarting Windows?
I am using Windows 7 with Visual Studio 2010, but this also happens in VS 2012.
EDIT This issue stopped occurring. which leads me to believe this was Microsoft bug which they fixed in one of their updates
Just taking a stab in the dark, since you aren't getting any responses... Try deleting (or even just rename) the applicationHost.config under "My Documents\IISExpress\config", then open VS.net and run your project again. A new IISExpress config file will get generated for you. I have had mine junked up with something in the past, and starting fresh with a new one fixed whatever it was.
I have faced the same issue in a perticular scenario.
It was like, Page_Load event of 1st page contains code to redirect response to 2nd page and Page_Load event of 2nd page contains code to redirect response back to 1st page.
So due to this browser response fell into infinite loop and it shows message: "Internet Explorer cannot display the webpage".
So I'll suggest you to check the response redirection logic which may be causing problem.
If you work with a DI framework like Ninject and you are doing changes on your services dependencies, beware not to generate a circular dependency. When starting up the application you might get this same error.

trying to find cause of Flex "RPC Error" pop-up

I'm working with a Flex 4 application (MXML and ActionScript front-end using BlazeDS and Java back-end) and I am trying to find the origin of an error.
The user sometimes (maybe once a week) gets a pop-up window with "RPC Error" in their web browser. If they retry the operation, they get the same error. Restarting the browser or maybe just reloading the page makes the error go away. Looking in the server log, I don't see any error on the server side. How can I figure out the cause of the RPC error? Can I configure some setting in the browser or Flash player to get additional info?
Thanks for any ideas. I've searched the web & some forums including SO but I've come up empty-handed.
Edit: in this case it appears the problem was loss of the network connection (user was connected via cell modem). I'm still interested in any ideas about how to troubleshoot this problem.
I like to do my development in Firefox and using Firebug as a console. When the Flex app starts, open up Firebug and look at the Net tab. It will bring up all the RPC calls made while Flex is initializing, which can be very useful for these kinds of bugs.

ReportViewer - 401: Unauthorized

I have an ASP.NET website that uses the ReportViewer control. The reporting services are on another machine on the local network. This has been working fine for over six months, but all of a sudden I'm getting the following error in my ReportViewer control:
The request failed with HTTP status 401: Unauthorized.
As far as I'm aware, nothing has changed on either of these machines, except that I installed the IIS 'URL Rewrite' module for use with another project. Could this be a factor?
Any other assistance would be appreciated.
Very odd. I ran out of ideas and just restarted the server to see if it made a difference. It did. I don't know what the problem was, but maybe this'll save someone a few hours trying to fix the same problem.

Error While Debugging

I have one web application. while i debug the solution the rendering makes too slow and if i close the browser page i got one error like this
WebDev.WebServer.exe has encountered a problem and needs to close. We are sorry for the inconvenience.
I got one information from attched proess is that this .exe file related to asp.net development server- port(port number).
How it can be resolved? please help me..
You cannot close the browser that opens when you are running debug for an ASP.NET program.
It renders slower because you are debugging it. This means the compiler has injected a lot of extra code need to make the application work with the debugger. There is no getting around this.

Resources