I compiled the cefsharp and did a setup file from it. I installed the my custom browser on my windows 7 64 bit pc and I made my custom browser, the default browser. There is not problem until here. It runs perfectly when I run the browser.exe.
Problem is:
When I clicked a local html file or a link like that this picture(), The browser.exe run but cannot open, returns error. Error is "It cannot load cefsharp.dll, cefshap.core.dll ..., all cefsharp dlls"
How can I solve this?
Cefsharp has a bug in Cefsharp.dll while loading the dependencies. I fixed it and error gone.
While loading the dependencies some paths are absoulate. I change them into relative paths.
Related
Me and my friend are working on a project in c# ASP.NET and we are using git as version control. I am working on macOS and my friend is working on Windows. It have worked fine until one day ago when we had worked on my friend's computer and pushed the code. Later i tried to make a pull request and when i tried to run the code (that works fine on the Windows computer) i recieve this error message:
/Users/ludvig/.nuget/packages/ikvm.image/8.4.4/buildTransitive/IKVM.Image.targets(9,9): Error MSB4175: The task factory "RoslynCodeTaskFactory" could not be loaded from the assembly "/usr/local/share/dotnet/sdk/7.0.101/Microsoft.Build.Tasks.Core.dll". Could not load file or assembly 'System.CodeDom, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. Could not find or load a specific file. (0x80131621) (MSB4175) (Monsterarenan)
We are using .net 6 and the IDE is Visual Studio. This is probably a poorly asked question but we both are new to ASP.NET and we did not find anyone with a similar problem.
There are many reasons for this error, here are three solutions, please try one by one:
The operation could not be completed successfully because the file contains a virus or potentially unwanted software. Please turn off all protections.
It may be a problem of path access rights. Please go to the folder where you are located and change the permission of your user name to user ownership in Properties-Security.
Open web.config and find the following related nodes.
Comment out these results and recompile.
I have downloaded the Swagger-Net code from the Github respository(https://github.com/heldersepu/Swagger-Net)
Then i have open the solution in visualstudio and builded the code and executed the code.The server is starting but the swagger-ui is not loading on the browser after entering URL
The router works perfectly but UI is not rendering
I have gone through the browser console i am getting following error
1.faild to load swagger-ui-standalone-preset-js
2.faild to load swagger-ui-css
3.faild to load swagger-ui-bundle-js
Because i need to modify the code for my project requirement on the swagger-net
Kindly help how to setup the workable environment
MY CODE AVAILABLE IN "https://github.com/mydeenali/Share"
I have a wpf application that runs on my computer fine.
The application opens on a colleagues computer but when he clicks one of the buttons an exception appears.
The exception is
Could not load file or assembly 'ABC, Version=1.0.0.0, Culture=netural, PublicKeyToken=null' or one of its dependencies
My application has two projects, ABCWPF & ABCLibrary. I had a console application which was called ABC.
I made a copy of this project and changed the output type to Class Library. I renamed all the folder names from ABC to ABCLibrary as well as the two files below,
ABC.csproj renamed to ABCLibrary.csproj
ABC.user renamed to ABCLibrary.user
I also updated one line in the solution file for ABCLibrary shown below. Please note I didn't change the GUID's I read that visual studio will automatically do that.
Project("{Some GUID}") = "ABCLibrary", "ABCLibrary\ABCLibrary.csproj", "{Some GUID}"
In the properties page of ABCLibrary on the application section the Assembly name & Default namespace are both ABC.
Why will this run on my computer by not my colleagues?
Update
I've just used the fuslogvw. Looking at the log file for the assembly that is giving my colleague issues (ABC) and it says the bind result operation completed successfully, no issues that I can see
Another Update
So it works on my other colleagues computer so its appears to be this one computer (the one it really needs to run on). I did notice something (probably nothing but not getting anywhere) in windows explorer the app has an icon but on the computer that it isn't working on it has the visual studio default icon.
Update 3
So it works on some of my colleagues computer and other it doesn't. Is the error message telling me that there is a file in the assembly ABC that cannot be loaded? If so they only reference I have added is a Bloomberg reference which every users uses everyday so not sure what is going on
There could be any number of problems why a computer can't load an assembly. Some reasons may include:
The .DLL file doesn't exist in the application folder structure
The .DLL file should be in the GAC, but isn't
The .DLL file could have a different name than expected
The .DLL file could have a different signature and so the CLR refuses to load it.
The .DLL could be compiled with a version of .NET incompatible to the calling library (i.e. .NET 3.5 calling a .NET 4.5.2 library).
I recommend you use the Assembly Binding Log Viewer (Fuslogvw.exe) to see the details of what's happening on the computer:
Open the command prompt as an administrator
Type fuslogvw in the command prompt
Click on Settings
Check the box that says "Log Bind Failure" or "Log all Binds"
To learn more about how to investigate a bind failure see Fuslogvw's page at MSDN
Have you tried using FusionLog? FusionLog would give you all the paths that the Loader tried searching while loading the dependencies. Look at this link on how to turn on the fusion log.
I am using "GeckoFx-29.0-0.6" for having a firefox web browser control in Windows Form application.
When I run my Windows form application which have GeckoFX browser control everyting is working fine.
I use the following code in my application,
Gecko.Xpcom.Initialize("xulrunner/");
and I use xcopy to load the bin folder with xulrunner folder. So in this scenario the xul runner is loaded from the same loaction where the application .exe is found.
When I make wix setup of my application, I am doing the same process, I have xulrunner folder in the same location as application .exe. But the application is not able to invoke the windows form. Its showing the message "unable to load DLL 'xul'".
I resolved this issue by changing my setup such that the xulrunner folder is copied to the c:/windows/system32 folder location. When I do so, the application works successfully in some machines but do not work in someother.
Is there any way to resolve this? such that I don't need to put the xulrunner in the system32 folder ?
You can try giving the full path to the xulrunner directory. Do something like:
var programDirectory = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
Gecko.XpCom.Initialize(Path.Combine(programDirectory, "xulrunner");
That will work when the app is installed, and if you've placed xulrunner in your output directory. If you don't want to bother copying it in there, then you will want to make the above code a bit smarter so that when you're just running from Visual Studio, it can locate xulrunner where you have placed it.
Our class for smartly finding files under a number of conditions, FileLocator, is open source, you can grab it and use it.
I have wasted lot of time trying to fix the issue and found that the error was due to mismatch of geckofix and xulruneer version. they both should be same. checkout this link to understand more https://bitbucket.org/geckofx/geckofx/wiki/Version_lists
Heads up, I know this post is old, but I discovered something. If you use Visual Studio (2019 is the version I have, at the time of this post), and you added the Geckofx45.64 via NuGet, there is also a Geckofx45.64.Windows package. When you read the description of this package from Visual Studio NuGet Manager, it says:
This should only be used for building Geckofx... Do NOT use this
package if you just want to include Geckofx in your application.
Well, I downloaded it anyway, and checked the contents of this package and noticed that it had all the files that Geckofx.45 was complaining about missing during run-time (init). I, therefore, added the package, and Geckofx now works exactly the way it instructs.
library that allows embedding gecko in C# applications.
Example Usage:
[STAThread]
static void Main(string[] args)
{
Xpcom.Initialize("Firefox64");
var geckoWebBrowser = new GeckoWebBrowser {Dock = DockStyle.Fill};
Form f = new Form();
f.Controls.Add(geckoWebBrowser);
geckoWebBrowser.Navigate("www.google.com");
Application.Run(f);
}
Hope this helps. This one had me going in circles for a while.
You'll get that error when you forget to run the line Xpcom.Initialize("Firefox64"); before using GeckoWebBrowser.
This also works
Gecko.Xpcom.Initialize(Environment.CurrentDirectory + "\\xulrunner");
I have IIS 6.2 running a C# MVC4 application and I keep getting a jquery.min.map 404 error in Google Chrome. I do not get the same error in IE9. I have the uncompressed jquery file along with the minified one and the map all in my scripts directory controlled by a NuGet package. Is there something specific with Chrome that could be causing this or is there something else I can look into? It looks like all my references are correct (I'm including it in the Bundler, etc.)
Thanks!
I had the same problem today. The .map file wasn't being published. The solution was to right click on the .map file in Visual Studio and select properties. Note that the Build Action is None. Change None to Content and the .map file will be included when you publish.
You need to run Re-minify AA CSS/JS/HTML Files in Web Essentials.
Download here.