On my developer environment ajax toolkit is working good. Rendering textbox as sliders. All good. But when I'm putting it into the web host, it's not working. The textboxes are left as well and enormous error on console (chrome and firfox)
Uncaught SyntaxError: Unexpected token < ScriptResource.axd:1
Uncaught Sys.ArgumentUndefinedException: Sys.ArgumentUndefinedException: Value cannot be undefined.
Parameter name: baseType ScriptResource.axd:847
Uncaught Sys.ArgumentUndefinedException: Sys.ArgumentUndefinedException: Value cannot be undefined.
Parameter name: type ScriptResource.axd:847
2
Uncaught Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500 ScriptResource.axd:847
I tried reinstalling ajaxtoolkitfrom packagemaneger but didn't work. Still same problem.
Any Ideas?
It's the just browser cache. Clearing those resolved the issue.
I had this error too. For me, it turned out that I had used the wrong Script manager.
On the page which uses the Ajax control, I had a standard <asp:ScriptManager>. My control (an <ajaxToolkit:ComboBox>) did not work. When I used a <ajaxToolkit:ToolkitScriptManager> instead, it started behaving as expected.
I don't know if this will solve the error in all cases, but it is one more thing to check for.
The baseType argument in ScriptResource.axd # line 847 is undefined. Same is true for the type parameter.
Here's what I would do. Try installing your bits on another machine, perhaps in your office right next to your development machine. The error indicates some resource IS NOT installed. Trying to repro a working copy of you setup, on a clean machine is the first step.
After you've done that, post an update here...
Related
After publishing website occurs some strange errors every time.
Unknown error occurred while trying to verify integrity.
service-worker.js:22 Uncaught (in promise) TypeError: Failed to fetch at service-worker.js:22.
Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
When i open the web application on browser's icongito mode everything is ok, so i think the problems becomes from cache.
Also it occurs mainly on Chrome. On firefox is ok after first Ctrl + f5 refresh.
What can cause this strange behaviour, and what can be the solution?
After removing PWA(Progressive web application) the behaviour stopped to exists. The error occured from Offline cache on browser (Cache - Cache Storage - offline-cache). maybe in .NET 6 release will be better perforance.
I've been trying possible solutions that I can find online with the bottom error message with no luck.
An exception of type 'OpenQA.Selenium.WebDriverException' occurred in WebDriver.dll but was not handled in user code
Additional information: The HTTP request to the remote WebDriver server for URL http://localhost:49357/session/8490ba8026d4a3d1bb60f08d2063ae79/elements timed out after 60 seconds.
protected bool Exists(By by)
{
return wd.FindElements(#by).Any();
}
When I run any of my scripts that come across the "Exists" method (posted above) where I'm expecting the element it's searching for to NOT BE there, I get the error message "The HTTP request...timed out after 60 seconds.". However, this only happens when I run the test in Chrome and the element doesn't exist on the page (when it does exist, it has no issues with the Exists method). When I run the script with Firefox, it has no issues at all.
I've tried extending my commandTimeout to twice the time, but it still fails at 60 seconds. Tried changing the "webDriver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(###))" to twice it's wait length, no success. Looked through everything in my code base that has a timeout method and tried to change those, no success there either. I even went as far as change the ChromeOptions BinaryLocation to be pointed at the actual chromedriver.exe file.
If anyone can suggest on how to find the default location of the correct wait command or how to solve my issue with how to identify when an element isn't present on the screen, that would help immensely.
I m trying to run my windows service but it is giving error 1053: "timed out"
The error 1053 should pop up in case the start up method fails to respond in 30 seconds but in this case the OnStart method is not even reached. I tried debugging it but it is not helping as i don't even reach the actual code and the error message pops up before that. Can any one help in this case?
I had a similar issue when I was trying to install a service at remote desktop and erring
Error 1053: The service did not respond to the start or control request in a timely fashion
I was able to fix this issue by installing the targeted dotnet framework
(sometime remote servers on lower framework and we build the service using latest framework).
So my finding is that in these cases you need to check few things:
install proper dependencies
all dlls are with targeted framework
Main static method present in servivce.cs
I'm new to Windows Services development and Faced Same Issue
I tried everything that was given in this link this link and
in this link but still I was not able to fix issue!
Then I tried some other small things on my own and I found 2 things in my solution
Startup Object Not Set in solution properties
for this, right click -> windowsServiceProject -> click properties -> in there will be left menu in it click on ->Application ->Check "Startup Object" -> If its "empty" ? then click and select project/Service Name.Program (in my case the main method is in program.cs so..)
and if it's selected and is ok then... there can be an error in your code see point number 2
Error In Our Service Code
For this try to simply run the project with Pressing "Start".
If there are any exception or error Like: null pointer or, there were some wrong or missing path or anything that generates exception on running because of developer's mistake then it will show a thrown error and you will able to solve it EG:enter image description here
or if the code is ok then it will show like this:
a dialog box "Windows Service can not be debugged you have to install it
first then and then it will be able to run" (if this dialog shows it's ok normal behaviour if showing any exception then fix that thing and rebuild you will be able to start the service)
My application has an HTTP channel to run a method on a remote computer. I'm able to do that with one computer by using the line:
System.Runtime.Remoting.RemotingConfiguration.RegisterWellKnownClientType(
typeof(RemoteObject), uri);
I also need to run another method on another computer. So I used the same line as above but changed the URI to the name of the other remote computer. However, I am getting this RemotingException:
Attempt to redirect activation of type 'RemoteClass.RemoteObject, RemoteObject'
which is already redirected.
I've done some research on this exception but haven't found too much information about it. I've looked at the documentation for the exception, but don't really understand it. I tried to find the cause of the error, and learned that if I change the parameter typeof(RemoteObject) such that typeof() is applied to an object of a different type, it works fine. But I still need to use RemoteObject as the type in order to run a method from that class. Is there a work around for this?
I am using the Mathematica .Net/Link platform to create a web service to format and calculate math problems. However I am unable to get it working.
I create it using this code:
_Log.IpDebug("Starting the Kernel Link");
if (string.IsNullOrEmpty(_MathLinkArguments))
_InternelKernel = MathLinkFactory.CreateKernelLink();
else
_InternelKernel = MathLinkFactory.CreateKernelLink(_MathLinkArguments);
_Log.IpDebug("Kernel Link Started");
_InternelKernel.WaitAndDiscardAnswer();
The value of _MathLinkArguments is -linkmode launch -linkname \"C:\\Program Files\\Wolfram Research\\Mathematica\\7.0\\Math.exe\".
This piece of code is called from the Application_Start method of the global.asax.cs file.
When it gets to the WaitAndDiscardAnswer() call it gives the server error:
Error code: 11. Connected MathLink program has closed the link, but there might still be data underway.
Note: The SampleCode given with the .NET/Link package (both a console app and a WinForms app) works.
Edit:
I copied the console app sample code given with Mathematica into an asp.net page and it gave me the same error the first load and then on subsequent loads it gave me:
Error code: 1. MathLink connection was lost.
Edit2:
I forgot to mention that when I have procmon and task manager open while running my app, I can tell that Math.exe starts but it immediately exits, which makes those error code make complete sense...but doesn't explain why that happened.
To allow the .Net/Link to work in Asp.net (at least in IIS 7.5) you need to enable the property loadUserProfile on the app pool for the web site.
I am not entirely sure why this is the case, but from what I found while trying to debug this, there are some things that are gotten from the user's profile. I know for a fact that the default location of the kernel is, which explains why I couldn't use it with no arguments, and so I can only assume that other things are needed as well and without the profile it couldn't determine that.
But whatever the reason is this is required, it is, or at least it is a fix if you are getting similar problems like this in your own application.
I got the same error in a .Net WinForm application.
mathKernel = new MathKernel();
mathKernel.Compute("<< XYZ`XYZGraphs`");
The error occurred on loading the package straight after instantiating the MathKernel.
To resolve it you can wait a couple of seconds and then instantiating the MathKernel works fine. During this state where there might still be data underway the following conditions are both false:
if (!MathKernel.IsConnected)
{
MathKernel.Connect();
}
if (MathKernel.IsComputing)
{
MathKernel.Abort();
}
Edit:
I've recieved the error again and this time was able to determine the problem.
Using a command line open the MathKernel.exe and view the error message: