I am facing an issue that due to some missing styles, when I run my Silverlight 4 application it simply shows a blank page instead of throwing an exception and telling me which style is missing. Any suggestions??
So, seems like the answer is:
When debugging Silverlight, try using different browsers. Pay special attention to IE since it is somewhat integrated with other Microsoft software, including VS.
Related
I'm testing WebView2 (1.0.774.44) to see if it can replace old IE embedded web browser for my wpf project. What I'm doing is simply navigate to wherever the domain I hardcoded. And it works fine on my Dev environment. But when I test my app (the same .exe) on one of my virtual machines, it does not work.
On the testing environment, the web viewer only displays blank pages. When I run DevTools on the page, it looks like it loads html strings. I can even click links or buttons on the page. I just cannot see them.
There are not much to share either. I just simply made a new window that is declared like below.
//TestWebViewWindow.xaml
<window
...some declarations
xmlns:wv2="clr-namespace:Microsoft.Web.WebView2.Wpf;assembly=Microsoft.Web.WebView2.Wpf"
...more declarations
>
<Border>
<wv2:WebView2 Name="xWebView" Source="https://microsoft.com">
<wv2:WebView2.CreationProperties>
<wv2:CoreWebView2CreationProperties UserDataFolder="C:\Temp\webview2"/>
</wv2:WebView2.CreationProperties>
</wv2:WebView2>
</Border>
</window>
At first, I thought it was a browser problem but then the problem persisted on my testing VM, even when I installed the latest compatible Webview2 Runtime.
Both of my testing and dev environment have WebView2 Runtime (89.0.774.68) installed. And I have copied WebView2Loader.dll on the testing environment.
Any guidance?
EDIT: I have not tried Disabling one of Display adapter, but unfortunately, that option is not a way I'm trying to pursue. What I found so far is that, stated problem does not seem to reproduce on latest release of Windows 10.
We experienced a similar issue and finally discovered that it could reproduce only whenever we worked with more than one graphics card adapter. Perhaps it's also your case.
The same problem here,
Finally I found a solution by disabling one of my display adapters and changing the main display in Windows settings.
As a less aggressive method, you can also try to change the main monitor on Windows
It's completely odd but it's working now.
I've been creating a WPF application using .net core 3 preview 6. I'm using MVVM pattern. When I was creating layout, using preview 5, everything was correct, but now it doesn't. I have an exception during parse XAML. I had to translate this into english. Sorry if i did any mistake.
Message: System.Windows.Markup.XamlParseException : Call constructor for the type "System.Windows.Controls.TextBox" complying with bound restrictions has caused an exception. ---- System.ArgumentException : Request value "USUŃ" was not found.
I have this exception when TextBox or PasswordBox are creating.
Nowhere in the project is "USUŃ". USUŃ means DELETE.
I have a similar problem getting a System.ArgumentException "requested value 'BILDAUF' was not found" with preview 6. Returning to preview 5 it works again. For me the exception occurs trying to get into a TextBox using the mouse ... it gets thrown before any handler is actually called, so it happens somewhere in the framework.
My gut-feeling: it could be some issue in the Culture Settings that I'm not able to pin down, most probably I'm missing some general setting at init-time. Because BILDAUF is the german name for the PAGEUP key. USUŃ should be the DELETE key (in Polish), if I'm not mistaken ...
I started writing this answer some time ago and was interrupted - seems my gut-feeling deserves a pat on the shoulder:
https://github.com/dotnet/wpf/issues/684
So, if it is feasible you "could" set the CurrentUICulture to en-US - in my case this is fine with me, since I'm writing tools for a project using English as project language. The only other option I'm aware of right now is to stick with preview 5, as preview 7 will still contatin some Culture related issues as the last answer in the linked issue-thread clearly states.
My WinForms project involves a C# web browser control - and I am getting the dreaded scripting error (like this image, different error though) when I visit different webpages:
I have read, and done, all the stuff about updating the browser emulation mode from IE7 to IE9 (or 11) in the windows registry (a la this stuff Use latest version of Internet Explorer in the webbrowser control) and the error still persists.
Now this is really frustrating due to the fact the the web page I am visiting works fine in IE itself, it is just my embedded one that has the error.
In desperation, I renamed my generated exe file "iexplore.exe" and bingo, the app works, with no scripting errors.
So this tells me there must be other settings in the registry or somewhere that cause this error, if anyone knows what these are I'd be most grateful if you could share them please!
N.B. I don't want to suppress the errors, I want to run the script.
Set the WebBrowser.ScriptErrorsSuppressed property to true disable the alerts for errors. Documentation here.
You can also change the IE version used by your WebBrowser as seen here, though I recommend doing this in the installer as editing the registry requires admin permissions.
I would also recommend navigating to http://detectmybrowser.com/ from your WinForms browser to make sure that the changes you made to your registry are correct.
I'm having a very odd problem.
We wrote a Windows Phone 8.1 app, and upgraded it to UWP. The debug version of the app works great, however, when I run it in release, I get this error:
Internal.Runtime.TypeLoader.TypeBuilder+MissingTemplateException: Exception of type '{0}' was thrown., Internal.Runtime.TypeLoader.TypeBuilder+MissingTemplateException. For more information, visit http://go.microsoft.com/fwlink/?LinkId=623485
When trying to open a specific ViewModel (working with MvvmCross). It happens only to this ViewModel, though it doesn't seem special in any way.
Note that I'm compiling it with .NetNative enabled. If I disable it, it works fine, but I can't release the app to the store without it.
Any help would be greatly appreciated.
That's one of the runtime exceptions in .NET Native. Most likely you can work around this by adding something to your Default.rd.xml file.
To properly diagnose this I'd recommend enabling .NET Native compilation for the DEBUG configuration of your project (Project properties > BUILD > Enable .Net Native checkbox). Then, set your debugger to stop on first chance exceptions.
If you can move to Update 1, the messages are a bit better.
After digging in a bit, I'd love to know what it ends up being. It's pretty uncommon to hit this type of error so it would be great to know places where we can be better. You're always welcome to send specific feedback to us at dotnetnative#microsoft.com.
It appears the problem was that the offending ViewModel had an Init method that returned a Task:
public async Task Init(...)
Fixed by changing it to void:
public async void Init(...)
Not quite sure why, but it works...
I've been working with Janus GridEx for Web for a few days. I'm afraid I'm unable to open the GridEx designer (Grid context menu in ASP.NET designer), which makes real work fairly impossible or at least unproductive. I get the following error message:
Error invoking 'GridEX Designer'. Details:Exception has been thrown by the target of an invocation.
Unfortunately this error message doesn't really tell me anything about the real error. In Janus Forums, somebody had the same issue. The support guy recommended to check version and Local Copy property, but this isn't the cause of the problem (neither mine nor the guy's in Janus Forum).
Thank you for any help.
Greets
Matthias
Original text of this post:
I just figured out how to open the
GridEx designer. Visual Studio needs
to be running as Administrator ("Run
as Administrator" in Vista, and
confirm the UAC message). Don't like
that personally, but it works fine.
This is right so far, the message does not appear anymore. The designer did open, but did not save any changes. In Janussys forum, support staff had not seen this behavior before.
Currently the problem is different (I'd say even worse): The designer does not open, but the message mentioned in the opening post doesn't appear anymore. Just nothing happens. UAC is still disabled, and Visual Studio running as Administrator. I completely reinstalled the component with UAC disabled.
I know that "Doesn't work!" is no proper error description at all, but in this case I just don't know better.