I am working on a custom action for our company's shopping cart website. It is a software that is installed and setup, and we are able to add to it by creating custom actions. I created an ASP.NET (web forms) page that uses SignalR to add to it, but whenever it tries to grab an instance of the hub within javascript, it is always undefined.
In Chrome, I can see signalr/hubs, and there are no 404 not found errors on the page either. It works perfectly fine when running it in debug from VS 2012, but not from within the web site on the server.
I am certain I have deployed all the necessary components, and have tried many approaches to changing the way it finds the hub, but nothing seems to work.
I can provide code samples if needed.
I found the issue. It was related to the name of the hub being misspelled in javascript. Once that got fixed, then the function name needed to be changed in javascript so the first character is lowercase. It is working as intended now.
Related
I am setting up a web api for the first time and I have another project for reference. It is a .NET framework project that will have a React frontend. I am running it using Visual Studio and IIS Express.
I have no build errors when I start the api project. It has swagger added so I can test database calls, so I know the api itself is working. But I am missing adding something as I am looking to add more security to it.
I am trying to verify authentication and I want to use integrated Windows authentication. When I set a break point, the user in the HttpContext.Current is never set and is never authenticated, so I can't add any authorization filters.
I went back to just the basic empty api project that has the frontend web pages removed to see if I removed something and it shows the same issue. So I either removed it again or I am actually missing adding something.
I am not sure where to look for what is missing, so any pointers would be appreciated.
The left browser is what I am expecting and the right browser is what I am seeing.
I don't need the directory browse turned on, so seeing a 403.14 - Forbidden is fine. But I am clearly missing something to get to that point. Is there a better way to figure out which resource/dependency is causing this error?
I can also see the working version requested url is what I am expecting, but the other is just a /.
Is there a way to resolve that if this is the error?
I can add code snippets if needed, but I haven't yet as I am not sure where the issue is.
I ended up finding the answer using blank test web apis to see what I may have left in that wasn't needed. The project was set up using this option:
After removing the views, etc., to make it strictly an api project. I started removing references (and clearing the associated errors) and seeing what happened with the build after each change.
Under the App_Start folder, there were some additional files that weren't present in the project I had for comparison - FilterConfig, and RouteConfig - which were also called in the Global.asax.
I removed the call in Global.asax for all three and I was able to see the expected http error page.
I dont have enough reputation for a comment, but you got 404 error, which, as you know, means there is nothing on that url. So check the route config and startup.cs Edit: I am on the phone so I didnt saw you already solved it. Good :)
I have written a visual web part for SharePoint 2013 in VS2015. The web part contains a number of asp controls as well as a grid view. I implemented AJAX with using script manager proxy and update panel. The deployed web part works well in IE but in google chrome, it doesn't work. I have found the solution on the internet. http://www.jquery2dotnet.com/2011/11/update-panel-not-working-in-google.html. I have put the code in js file in layout folder. In scriptmanager add reference to the file Path="/_layouts/15/prj/WebKit.js". However, it is not working in chrome. Could anyone please tell me how to solve this issue?
There seems to be an issue with SharePoint + UpdatePanel.
I've had the same problem and found the following article:
https://msdn.microsoft.com/en-us/library/ff650218.aspx
To be honest, I couldn't apply the proposed solution, because I couldn't find the requested dll.
So, to solve my postback problem, I saw two possibilities:
1. Use DevExpress
2. Change my code to client side.
I chose the second option.
I am working on asp.net. I have developed one website and it is working fine. But there is one client's PC where the website is not working properly.
The main problem is with some of the AJAX controls. The two controls which are not working are Accordion Pane and Model Popup.
I saw the developer option of the browser and its states the following error/warning while I am visiting that page.
**InterYield Click Bind version 1.0-SNAPSHOT.4,685 20131123-0125 clickbinder.do?ver=1.0-SNAPSHOT.4%2C685:1
Uncaught SyntaxError: Unexpected token ILLEGAL xdm.html:8
event.returnValue is deprecated. Please use the standard event.preventDefault() instead. init2.js:1
InterYield click bind handler had no ad coverage. nocoverage.do?callback=InterYieldNS.NoCoverage&product=iy&title=&matchedKeyword=&affiliate=adpeak2&…:6
Resource interpreted as Script but transferred with MIME type text/html: "http://telemetry.scorpionsaver.com/te.aspx?callback=jQuery18308800485304091…22%3A%22about+to+call+server%22%2C%22sampleRate%22%3A10%7D&_=1386416017076".
jquery.min.js:2
Uncaught SyntaxError: Unexpected token <**
The website is deployed on .net 2 framework. The client is using windows 8 operating system.
I have checked three browsers on clients pc. IE, Chrome and Firfox. but the problem exists on all 3 browsers.
I work with a couple of different websites that have users with a similar issue, where nothing loads past a certain point. The only thing similar with all the users is the InterYield Click Bind in their Console logging.
I had them run a Malware scanner (Malwarebytes Anti-Malware works best), and after it cleans the system, they are able to access the sites.
Hope this helps!
I am currently migrating from Tridion R5.3 to Tridion 2011. I am having issues with serving some pages through the presentation server. For reference all of my web pages are classic ASP and I am running them on IIS7.5.
I have have a page located at http://www.example.com/widget/index.asp. When I first access the page I get a The page cannot be displayed because an internal server error has occurred., if I then refresh the page it loads fine, if I refresh the page a third time it comes up with the error. The page works every other request.
I have enabled Failed Request Tracing on my website and I am getting the error
ASP_LOG_ERROR
LineNumber: 87
ErrorCode: 800706be
Description:
Note there is no description.
The code being called is
85: Dim objTranslationPageLink
86: Set objTranslationPageLink = Server.createObject("cd_link.PageLink")
87: strTranslatedPageLink = objTranslationPageLink.GetLinkAsString("tcm:0-12-1", "tcm:12-123456-64", "", "", "TranslationFound", False)
88: Set objTranslationPageLink = Nothing
It looks like there is no problems creating the cd_link.PageLink object, just when calling the GetLinkAsString(...) function.
I use the cd_link.PageLink object in lot of other pages with no problems but it seems with pages that use this specific piece of code experience the problems.
I was thinking it could be something to do with caching pages however I turned off caching of ASP pages (IIS7 > ASP > Services > Caching Properties) and still had the problem.
Any ideas?
edit1
The code worked fine on Windows Server 2003 IIS6. I am trying to make it work on Windows Server 2008 IIS7.
edit2
It appears that the page is creating a lot of cd_link.ComponentLink and cd_link.PageLink objects. I have a test page in which I create 10 ComponentLink objects I get the error (every other page) but if I reduce this to 5 ComponentLink objects it works every time.
edit3
My cd_core.xxxx.xx.xx.log has the following errors
2012-11-02 11:55:34,027 ERROR XMLConfigurationReader - Error while validating file 'cd_link_conf.xml' with schema 'schemas/cd_link_conf.xsd'. cvc-complex-type.3.2.2: Attribute 'DefaultRootLocation' is not allowed to appear in element 'Publications'.
edit4
Thanks for bearing with me. The problem I was having with my cd_link_config is fixed and doesn't appear to have been be related. I now have no errors in my any of the four log files (cd_core, cd_deployer, cd_monitor, cd_transport) but the original issue persists.
Looks like you are running the CD Link windows service and the following hotfix might help to resolve your issue. I have not tried this hotfix but the description says Page link fails on second attempt of accessing the page, so that means it might work sproadically depending on the logger memory resources.
Anyway worth looking at this hotfix : CD_2011.1.0.78355
Description: The Linking windows service was not correctly cleaning up a logger memory resource on certain windows platforms
It is a long time since I worked with Classic ASP and SDL Tridion, but double check the following
Is the linking service running on the server?
Check your cd_licenses.xml file is in place
Validate that you have a correct cd_link_conf.xml and cd_storage_conf.xml (these changed from 5.3 I believe)
Look in the Application and Tridion event logs for clues
The Tridion linking log files
That error code seems to imply that the Linking DLL is not registered properly.
That is all I can think of for now.
I didn't realise that 2011 actually schema-validates the config files, but in any case, now the error is clear. I'd suggest doing the validation yourself in an XML editor such as XML Spy. That should point out exactly what's wrong with the configuration file.
To routinely check your configurations, you may find it interesting to script it as described here.
Early in my project they were working fine. Now the client side validation isn't working, it wants to post back before telling me that a required field is required.
It's not working on my local environment nor on the server. Is there possibly some scripts that aren't getting copied? Did I delete a required reference? I'm using a project type, not web site type with .Net 4.
I tried starting a new project and copying over my form, and it works as expected.
Turned out to be a problem with routing.
Viewed the source of the page, clicked on the validation script, and it wasn't going to the right place :/
routes.Add(new Route(
"{resource}.axd/{*pathInfo}", new StopRoutingHandler())
);