C# Winform with CefSharp app crash on publish version












-1















I create an C# Winform application with CefSharp Project.
The application works great in the debug mode but when i try to publish it with VS2013 it's crash before the application start to run.



This is my program.cs file:



    [STAThread]
static void Main()
{
AppDomain.CurrentDomain.AssemblyResolve += Resolver;

LoadApp();
}

[MethodImpl(MethodImplOptions.NoInlining)]
private static void LoadApp()
{
var settings = new CefSettings();

settings.BrowserSubprocessPath = Path.Combine(AppDomain.CurrentDomain.SetupInformation.ApplicationBase,
Environment.Is64BitProcess ? "x64" : "x86",
"CefSharp.BrowserSubprocess.exe");

settings.CachePath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + @"TelegramParserCEF";
settings.IgnoreCertificateErrors = true;
settings.WindowlessRenderingEnabled = true;
settings.SetOffScreenRenderingBestPerformanceArgs();

Cef.Initialize(settings, performDependencyCheck: false, browserProcessHandler: null);

Application.Run(new Form1());
}

private static Assembly Resolver(object sender, ResolveEventArgs args)
{
if (args.Name.StartsWith("CefSharp"))
{
string assemblyName = args.Name.Split(new { ',' }, 2)[0] + ".dll";
string archSpecificPath = Path.Combine(AppDomain.CurrentDomain.SetupInformation.ApplicationBase,
Environment.Is64BitProcess ? "x64" : "x86",
assemblyName);

return File.Exists(archSpecificPath)
? Assembly.LoadFile(archSpecificPath)
: null;
}

return null;
}


When i checked the publish folder i only see this files:
enter image description here



And from the CefSharp Wiki i understand that there are couple of files that missing. Any idea what can be the problem?



I run and publish the project with Visual Studio 2013.
I'm using Any CPU for the compile.



EDIT



<ItemGroup>
<Content
Include="$(SolutionDir)packagescef.redist.x86.3.3497.1841CEF***" Exclude="$(SolutionDir)packagescef.redist.x86.3.3497.1841CEFx86***;$(SolutionDir)packagescef.redist.x86.3.2526.1362CEFlocales***.pak">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
<Visible>false</Visible>
</Content>

</ItemGroup>
<ItemGroup>
<Content Include="$(SolutionDir)packagescef.redist.x86.3.3497.1841CEF**en-GB.*;$(SolutionDir)packagescef.redist.x86.3.3497.1841CEF**en-US.*">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
<Visible>false</Visible>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="$(SolutionDir)packagescef.redist.x86.3.3497.1841CEFx86***">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
<Visible>false</Visible>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="$(SolutionDir)packagesCefSharp.Common.69.0.0CefSharpx86**CefSharp.BrowserSubprocess.*">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
<Visible>false</Visible>
</Content>
</ItemGroup>

<ItemGroup>
<Content
Include="$(SolutionDir)packagescef.redist.x64.3.3497.1841CEF***" Exclude="$(SolutionDir)packagescef.redist.x64.3.3497.1841CEFx64***;$(SolutionDir)packagescef.redist.x86.3.2526.1362CEFlocales***.pak">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
<Visible>false</Visible>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="$(SolutionDir)packagescef.redist.x64.3.3497.1841CEF**en-GB.*;$(SolutionDir)packagescef.redist.x64.3.3497.1841CEF**en-US.*">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
<Visible>false</Visible>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="$(SolutionDir)packagescef.redist.x64.3.3497.1841CEFx64***">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
<Visible>false</Visible>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="$(SolutionDir)packagesCefSharp.Common.69.0.0CefSharpx64**CefSharp.BrowserSubprocess.*">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
<Visible>false</Visible>
</Content>
</ItemGroup>


I added this and now the application crash with this error:



An unhandled exception of type 'System.IO.FileNotFoundException' occurred in App.exe

Additional information: Could not load file or assembly 'CefSharp.Core.dll' or one of its dependencies. The specified module could not be found.









share|improve this question

























  • which files are missing?

    – Mario Mitterbauer
    Jan 20 at 16:19











  • See stackoverflow.com/questions/34225222/… and github.com/cefsharp/CefSharp/issues/1314

    – amaitland
    Jan 20 at 20:16











  • This should probably be closed as a duplicate.

    – amaitland
    Jan 20 at 20:16











  • @amaitland I saw this threads but when i include if in the app .csproj and try to run it with VS2013 and debug it i get this error: Additional information: Could not load file or assembly 'CefSharp.Core.dll' or one of its dependencies. The specified module could not be found. I'm Using Any CPU and done everything like mention in this thread: https://github.com/cefsharp/CefSharp/issues/1714 - Option 2. Before i add the include files the debug work great.

    – MTA
    Jan 21 at 8:02













  • Edit your original post to include what you tried, in detail. A vague statement about you tried something and it didn't work isn't enough for me to help.

    – amaitland
    Jan 21 at 8:07
















-1















I create an C# Winform application with CefSharp Project.
The application works great in the debug mode but when i try to publish it with VS2013 it's crash before the application start to run.



This is my program.cs file:



    [STAThread]
static void Main()
{
AppDomain.CurrentDomain.AssemblyResolve += Resolver;

LoadApp();
}

[MethodImpl(MethodImplOptions.NoInlining)]
private static void LoadApp()
{
var settings = new CefSettings();

settings.BrowserSubprocessPath = Path.Combine(AppDomain.CurrentDomain.SetupInformation.ApplicationBase,
Environment.Is64BitProcess ? "x64" : "x86",
"CefSharp.BrowserSubprocess.exe");

settings.CachePath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + @"TelegramParserCEF";
settings.IgnoreCertificateErrors = true;
settings.WindowlessRenderingEnabled = true;
settings.SetOffScreenRenderingBestPerformanceArgs();

Cef.Initialize(settings, performDependencyCheck: false, browserProcessHandler: null);

Application.Run(new Form1());
}

private static Assembly Resolver(object sender, ResolveEventArgs args)
{
if (args.Name.StartsWith("CefSharp"))
{
string assemblyName = args.Name.Split(new { ',' }, 2)[0] + ".dll";
string archSpecificPath = Path.Combine(AppDomain.CurrentDomain.SetupInformation.ApplicationBase,
Environment.Is64BitProcess ? "x64" : "x86",
assemblyName);

return File.Exists(archSpecificPath)
? Assembly.LoadFile(archSpecificPath)
: null;
}

return null;
}


When i checked the publish folder i only see this files:
enter image description here



And from the CefSharp Wiki i understand that there are couple of files that missing. Any idea what can be the problem?



I run and publish the project with Visual Studio 2013.
I'm using Any CPU for the compile.



EDIT



<ItemGroup>
<Content
Include="$(SolutionDir)packagescef.redist.x86.3.3497.1841CEF***" Exclude="$(SolutionDir)packagescef.redist.x86.3.3497.1841CEFx86***;$(SolutionDir)packagescef.redist.x86.3.2526.1362CEFlocales***.pak">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
<Visible>false</Visible>
</Content>

</ItemGroup>
<ItemGroup>
<Content Include="$(SolutionDir)packagescef.redist.x86.3.3497.1841CEF**en-GB.*;$(SolutionDir)packagescef.redist.x86.3.3497.1841CEF**en-US.*">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
<Visible>false</Visible>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="$(SolutionDir)packagescef.redist.x86.3.3497.1841CEFx86***">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
<Visible>false</Visible>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="$(SolutionDir)packagesCefSharp.Common.69.0.0CefSharpx86**CefSharp.BrowserSubprocess.*">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
<Visible>false</Visible>
</Content>
</ItemGroup>

<ItemGroup>
<Content
Include="$(SolutionDir)packagescef.redist.x64.3.3497.1841CEF***" Exclude="$(SolutionDir)packagescef.redist.x64.3.3497.1841CEFx64***;$(SolutionDir)packagescef.redist.x86.3.2526.1362CEFlocales***.pak">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
<Visible>false</Visible>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="$(SolutionDir)packagescef.redist.x64.3.3497.1841CEF**en-GB.*;$(SolutionDir)packagescef.redist.x64.3.3497.1841CEF**en-US.*">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
<Visible>false</Visible>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="$(SolutionDir)packagescef.redist.x64.3.3497.1841CEFx64***">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
<Visible>false</Visible>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="$(SolutionDir)packagesCefSharp.Common.69.0.0CefSharpx64**CefSharp.BrowserSubprocess.*">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
<Visible>false</Visible>
</Content>
</ItemGroup>


I added this and now the application crash with this error:



An unhandled exception of type 'System.IO.FileNotFoundException' occurred in App.exe

Additional information: Could not load file or assembly 'CefSharp.Core.dll' or one of its dependencies. The specified module could not be found.









share|improve this question

























  • which files are missing?

    – Mario Mitterbauer
    Jan 20 at 16:19











  • See stackoverflow.com/questions/34225222/… and github.com/cefsharp/CefSharp/issues/1314

    – amaitland
    Jan 20 at 20:16











  • This should probably be closed as a duplicate.

    – amaitland
    Jan 20 at 20:16











  • @amaitland I saw this threads but when i include if in the app .csproj and try to run it with VS2013 and debug it i get this error: Additional information: Could not load file or assembly 'CefSharp.Core.dll' or one of its dependencies. The specified module could not be found. I'm Using Any CPU and done everything like mention in this thread: https://github.com/cefsharp/CefSharp/issues/1714 - Option 2. Before i add the include files the debug work great.

    – MTA
    Jan 21 at 8:02













  • Edit your original post to include what you tried, in detail. A vague statement about you tried something and it didn't work isn't enough for me to help.

    – amaitland
    Jan 21 at 8:07














-1












-1








-1








I create an C# Winform application with CefSharp Project.
The application works great in the debug mode but when i try to publish it with VS2013 it's crash before the application start to run.



This is my program.cs file:



    [STAThread]
static void Main()
{
AppDomain.CurrentDomain.AssemblyResolve += Resolver;

LoadApp();
}

[MethodImpl(MethodImplOptions.NoInlining)]
private static void LoadApp()
{
var settings = new CefSettings();

settings.BrowserSubprocessPath = Path.Combine(AppDomain.CurrentDomain.SetupInformation.ApplicationBase,
Environment.Is64BitProcess ? "x64" : "x86",
"CefSharp.BrowserSubprocess.exe");

settings.CachePath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + @"TelegramParserCEF";
settings.IgnoreCertificateErrors = true;
settings.WindowlessRenderingEnabled = true;
settings.SetOffScreenRenderingBestPerformanceArgs();

Cef.Initialize(settings, performDependencyCheck: false, browserProcessHandler: null);

Application.Run(new Form1());
}

private static Assembly Resolver(object sender, ResolveEventArgs args)
{
if (args.Name.StartsWith("CefSharp"))
{
string assemblyName = args.Name.Split(new { ',' }, 2)[0] + ".dll";
string archSpecificPath = Path.Combine(AppDomain.CurrentDomain.SetupInformation.ApplicationBase,
Environment.Is64BitProcess ? "x64" : "x86",
assemblyName);

return File.Exists(archSpecificPath)
? Assembly.LoadFile(archSpecificPath)
: null;
}

return null;
}


When i checked the publish folder i only see this files:
enter image description here



And from the CefSharp Wiki i understand that there are couple of files that missing. Any idea what can be the problem?



I run and publish the project with Visual Studio 2013.
I'm using Any CPU for the compile.



EDIT



<ItemGroup>
<Content
Include="$(SolutionDir)packagescef.redist.x86.3.3497.1841CEF***" Exclude="$(SolutionDir)packagescef.redist.x86.3.3497.1841CEFx86***;$(SolutionDir)packagescef.redist.x86.3.2526.1362CEFlocales***.pak">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
<Visible>false</Visible>
</Content>

</ItemGroup>
<ItemGroup>
<Content Include="$(SolutionDir)packagescef.redist.x86.3.3497.1841CEF**en-GB.*;$(SolutionDir)packagescef.redist.x86.3.3497.1841CEF**en-US.*">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
<Visible>false</Visible>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="$(SolutionDir)packagescef.redist.x86.3.3497.1841CEFx86***">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
<Visible>false</Visible>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="$(SolutionDir)packagesCefSharp.Common.69.0.0CefSharpx86**CefSharp.BrowserSubprocess.*">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
<Visible>false</Visible>
</Content>
</ItemGroup>

<ItemGroup>
<Content
Include="$(SolutionDir)packagescef.redist.x64.3.3497.1841CEF***" Exclude="$(SolutionDir)packagescef.redist.x64.3.3497.1841CEFx64***;$(SolutionDir)packagescef.redist.x86.3.2526.1362CEFlocales***.pak">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
<Visible>false</Visible>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="$(SolutionDir)packagescef.redist.x64.3.3497.1841CEF**en-GB.*;$(SolutionDir)packagescef.redist.x64.3.3497.1841CEF**en-US.*">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
<Visible>false</Visible>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="$(SolutionDir)packagescef.redist.x64.3.3497.1841CEFx64***">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
<Visible>false</Visible>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="$(SolutionDir)packagesCefSharp.Common.69.0.0CefSharpx64**CefSharp.BrowserSubprocess.*">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
<Visible>false</Visible>
</Content>
</ItemGroup>


I added this and now the application crash with this error:



An unhandled exception of type 'System.IO.FileNotFoundException' occurred in App.exe

Additional information: Could not load file or assembly 'CefSharp.Core.dll' or one of its dependencies. The specified module could not be found.









share|improve this question
















I create an C# Winform application with CefSharp Project.
The application works great in the debug mode but when i try to publish it with VS2013 it's crash before the application start to run.



This is my program.cs file:



    [STAThread]
static void Main()
{
AppDomain.CurrentDomain.AssemblyResolve += Resolver;

LoadApp();
}

[MethodImpl(MethodImplOptions.NoInlining)]
private static void LoadApp()
{
var settings = new CefSettings();

settings.BrowserSubprocessPath = Path.Combine(AppDomain.CurrentDomain.SetupInformation.ApplicationBase,
Environment.Is64BitProcess ? "x64" : "x86",
"CefSharp.BrowserSubprocess.exe");

settings.CachePath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + @"TelegramParserCEF";
settings.IgnoreCertificateErrors = true;
settings.WindowlessRenderingEnabled = true;
settings.SetOffScreenRenderingBestPerformanceArgs();

Cef.Initialize(settings, performDependencyCheck: false, browserProcessHandler: null);

Application.Run(new Form1());
}

private static Assembly Resolver(object sender, ResolveEventArgs args)
{
if (args.Name.StartsWith("CefSharp"))
{
string assemblyName = args.Name.Split(new { ',' }, 2)[0] + ".dll";
string archSpecificPath = Path.Combine(AppDomain.CurrentDomain.SetupInformation.ApplicationBase,
Environment.Is64BitProcess ? "x64" : "x86",
assemblyName);

return File.Exists(archSpecificPath)
? Assembly.LoadFile(archSpecificPath)
: null;
}

return null;
}


When i checked the publish folder i only see this files:
enter image description here



And from the CefSharp Wiki i understand that there are couple of files that missing. Any idea what can be the problem?



I run and publish the project with Visual Studio 2013.
I'm using Any CPU for the compile.



EDIT



<ItemGroup>
<Content
Include="$(SolutionDir)packagescef.redist.x86.3.3497.1841CEF***" Exclude="$(SolutionDir)packagescef.redist.x86.3.3497.1841CEFx86***;$(SolutionDir)packagescef.redist.x86.3.2526.1362CEFlocales***.pak">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
<Visible>false</Visible>
</Content>

</ItemGroup>
<ItemGroup>
<Content Include="$(SolutionDir)packagescef.redist.x86.3.3497.1841CEF**en-GB.*;$(SolutionDir)packagescef.redist.x86.3.3497.1841CEF**en-US.*">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
<Visible>false</Visible>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="$(SolutionDir)packagescef.redist.x86.3.3497.1841CEFx86***">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
<Visible>false</Visible>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="$(SolutionDir)packagesCefSharp.Common.69.0.0CefSharpx86**CefSharp.BrowserSubprocess.*">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
<Visible>false</Visible>
</Content>
</ItemGroup>

<ItemGroup>
<Content
Include="$(SolutionDir)packagescef.redist.x64.3.3497.1841CEF***" Exclude="$(SolutionDir)packagescef.redist.x64.3.3497.1841CEFx64***;$(SolutionDir)packagescef.redist.x86.3.2526.1362CEFlocales***.pak">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
<Visible>false</Visible>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="$(SolutionDir)packagescef.redist.x64.3.3497.1841CEF**en-GB.*;$(SolutionDir)packagescef.redist.x64.3.3497.1841CEF**en-US.*">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
<Visible>false</Visible>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="$(SolutionDir)packagescef.redist.x64.3.3497.1841CEFx64***">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
<Visible>false</Visible>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="$(SolutionDir)packagesCefSharp.Common.69.0.0CefSharpx64**CefSharp.BrowserSubprocess.*">
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
<Visible>false</Visible>
</Content>
</ItemGroup>


I added this and now the application crash with this error:



An unhandled exception of type 'System.IO.FileNotFoundException' occurred in App.exe

Additional information: Could not load file or assembly 'CefSharp.Core.dll' or one of its dependencies. The specified module could not be found.






c# winforms chromium cefsharp






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 21 at 8:11







MTA

















asked Jan 20 at 15:15









MTAMTA

3,4421678168




3,4421678168













  • which files are missing?

    – Mario Mitterbauer
    Jan 20 at 16:19











  • See stackoverflow.com/questions/34225222/… and github.com/cefsharp/CefSharp/issues/1314

    – amaitland
    Jan 20 at 20:16











  • This should probably be closed as a duplicate.

    – amaitland
    Jan 20 at 20:16











  • @amaitland I saw this threads but when i include if in the app .csproj and try to run it with VS2013 and debug it i get this error: Additional information: Could not load file or assembly 'CefSharp.Core.dll' or one of its dependencies. The specified module could not be found. I'm Using Any CPU and done everything like mention in this thread: https://github.com/cefsharp/CefSharp/issues/1714 - Option 2. Before i add the include files the debug work great.

    – MTA
    Jan 21 at 8:02













  • Edit your original post to include what you tried, in detail. A vague statement about you tried something and it didn't work isn't enough for me to help.

    – amaitland
    Jan 21 at 8:07



















  • which files are missing?

    – Mario Mitterbauer
    Jan 20 at 16:19











  • See stackoverflow.com/questions/34225222/… and github.com/cefsharp/CefSharp/issues/1314

    – amaitland
    Jan 20 at 20:16











  • This should probably be closed as a duplicate.

    – amaitland
    Jan 20 at 20:16











  • @amaitland I saw this threads but when i include if in the app .csproj and try to run it with VS2013 and debug it i get this error: Additional information: Could not load file or assembly 'CefSharp.Core.dll' or one of its dependencies. The specified module could not be found. I'm Using Any CPU and done everything like mention in this thread: https://github.com/cefsharp/CefSharp/issues/1714 - Option 2. Before i add the include files the debug work great.

    – MTA
    Jan 21 at 8:02













  • Edit your original post to include what you tried, in detail. A vague statement about you tried something and it didn't work isn't enough for me to help.

    – amaitland
    Jan 21 at 8:07

















which files are missing?

– Mario Mitterbauer
Jan 20 at 16:19





which files are missing?

– Mario Mitterbauer
Jan 20 at 16:19













See stackoverflow.com/questions/34225222/… and github.com/cefsharp/CefSharp/issues/1314

– amaitland
Jan 20 at 20:16





See stackoverflow.com/questions/34225222/… and github.com/cefsharp/CefSharp/issues/1314

– amaitland
Jan 20 at 20:16













This should probably be closed as a duplicate.

– amaitland
Jan 20 at 20:16





This should probably be closed as a duplicate.

– amaitland
Jan 20 at 20:16













@amaitland I saw this threads but when i include if in the app .csproj and try to run it with VS2013 and debug it i get this error: Additional information: Could not load file or assembly 'CefSharp.Core.dll' or one of its dependencies. The specified module could not be found. I'm Using Any CPU and done everything like mention in this thread: https://github.com/cefsharp/CefSharp/issues/1714 - Option 2. Before i add the include files the debug work great.

– MTA
Jan 21 at 8:02







@amaitland I saw this threads but when i include if in the app .csproj and try to run it with VS2013 and debug it i get this error: Additional information: Could not load file or assembly 'CefSharp.Core.dll' or one of its dependencies. The specified module could not be found. I'm Using Any CPU and done everything like mention in this thread: https://github.com/cefsharp/CefSharp/issues/1714 - Option 2. Before i add the include files the debug work great.

– MTA
Jan 21 at 8:02















Edit your original post to include what you tried, in detail. A vague statement about you tried something and it didn't work isn't enough for me to help.

– amaitland
Jan 21 at 8:07





Edit your original post to include what you tried, in detail. A vague statement about you tried something and it didn't work isn't enough for me to help.

– amaitland
Jan 21 at 8:07












1 Answer
1






active

oldest

votes


















0














Any CPU is the issue.



You can select either x64 or x86 platform.




  1. Make sure you have added reference to CefSharp.Winforms nuget


  2. Make sure that the platform of solution is set to x86 / x64 explicitly instead of Any CPU.



  3. Add below runtime binding in the configuration file:



    <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    <probing privatePath="x86"/>
    </assemblyBinding>
    </runtime>




  4. CSProj file should have below property set:



    <CefSharpAnyCpuSupport>true</CefSharpAnyCpuSupport>




Refer this article - which explains step by step process of setting up CEFSharp browser in winforms.






share|improve this answer
























  • But CefSharp Supports Any Cpu.

    – MTA
    Jan 20 at 17:06











  • Somhow anycpu did not work for me. I checked documentation and after 63.0.2, any cpu seems to be supported. Can you mention which version are you using in the question. Also can you try steps mentioned in my answer - they should work.

    – Manoj Choudhari
    Jan 20 at 17:19











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54277856%2fc-sharp-winform-with-cefsharp-app-crash-on-publish-version%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Any CPU is the issue.



You can select either x64 or x86 platform.




  1. Make sure you have added reference to CefSharp.Winforms nuget


  2. Make sure that the platform of solution is set to x86 / x64 explicitly instead of Any CPU.



  3. Add below runtime binding in the configuration file:



    <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    <probing privatePath="x86"/>
    </assemblyBinding>
    </runtime>




  4. CSProj file should have below property set:



    <CefSharpAnyCpuSupport>true</CefSharpAnyCpuSupport>




Refer this article - which explains step by step process of setting up CEFSharp browser in winforms.






share|improve this answer
























  • But CefSharp Supports Any Cpu.

    – MTA
    Jan 20 at 17:06











  • Somhow anycpu did not work for me. I checked documentation and after 63.0.2, any cpu seems to be supported. Can you mention which version are you using in the question. Also can you try steps mentioned in my answer - they should work.

    – Manoj Choudhari
    Jan 20 at 17:19
















0














Any CPU is the issue.



You can select either x64 or x86 platform.




  1. Make sure you have added reference to CefSharp.Winforms nuget


  2. Make sure that the platform of solution is set to x86 / x64 explicitly instead of Any CPU.



  3. Add below runtime binding in the configuration file:



    <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    <probing privatePath="x86"/>
    </assemblyBinding>
    </runtime>




  4. CSProj file should have below property set:



    <CefSharpAnyCpuSupport>true</CefSharpAnyCpuSupport>




Refer this article - which explains step by step process of setting up CEFSharp browser in winforms.






share|improve this answer
























  • But CefSharp Supports Any Cpu.

    – MTA
    Jan 20 at 17:06











  • Somhow anycpu did not work for me. I checked documentation and after 63.0.2, any cpu seems to be supported. Can you mention which version are you using in the question. Also can you try steps mentioned in my answer - they should work.

    – Manoj Choudhari
    Jan 20 at 17:19














0












0








0







Any CPU is the issue.



You can select either x64 or x86 platform.




  1. Make sure you have added reference to CefSharp.Winforms nuget


  2. Make sure that the platform of solution is set to x86 / x64 explicitly instead of Any CPU.



  3. Add below runtime binding in the configuration file:



    <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    <probing privatePath="x86"/>
    </assemblyBinding>
    </runtime>




  4. CSProj file should have below property set:



    <CefSharpAnyCpuSupport>true</CefSharpAnyCpuSupport>




Refer this article - which explains step by step process of setting up CEFSharp browser in winforms.






share|improve this answer













Any CPU is the issue.



You can select either x64 or x86 platform.




  1. Make sure you have added reference to CefSharp.Winforms nuget


  2. Make sure that the platform of solution is set to x86 / x64 explicitly instead of Any CPU.



  3. Add below runtime binding in the configuration file:



    <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    <probing privatePath="x86"/>
    </assemblyBinding>
    </runtime>




  4. CSProj file should have below property set:



    <CefSharpAnyCpuSupport>true</CefSharpAnyCpuSupport>




Refer this article - which explains step by step process of setting up CEFSharp browser in winforms.







share|improve this answer












share|improve this answer



share|improve this answer










answered Jan 20 at 15:32









Manoj ChoudhariManoj Choudhari

1,5361516




1,5361516













  • But CefSharp Supports Any Cpu.

    – MTA
    Jan 20 at 17:06











  • Somhow anycpu did not work for me. I checked documentation and after 63.0.2, any cpu seems to be supported. Can you mention which version are you using in the question. Also can you try steps mentioned in my answer - they should work.

    – Manoj Choudhari
    Jan 20 at 17:19



















  • But CefSharp Supports Any Cpu.

    – MTA
    Jan 20 at 17:06











  • Somhow anycpu did not work for me. I checked documentation and after 63.0.2, any cpu seems to be supported. Can you mention which version are you using in the question. Also can you try steps mentioned in my answer - they should work.

    – Manoj Choudhari
    Jan 20 at 17:19

















But CefSharp Supports Any Cpu.

– MTA
Jan 20 at 17:06





But CefSharp Supports Any Cpu.

– MTA
Jan 20 at 17:06













Somhow anycpu did not work for me. I checked documentation and after 63.0.2, any cpu seems to be supported. Can you mention which version are you using in the question. Also can you try steps mentioned in my answer - they should work.

– Manoj Choudhari
Jan 20 at 17:19





Somhow anycpu did not work for me. I checked documentation and after 63.0.2, any cpu seems to be supported. Can you mention which version are you using in the question. Also can you try steps mentioned in my answer - they should work.

– Manoj Choudhari
Jan 20 at 17:19




















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54277856%2fc-sharp-winform-with-cefsharp-app-crash-on-publish-version%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Homophylophilia

Updating UILabel text programmatically using a function

Cloud Functions - OpenCV Videocapture Read method fails for larger files from cloud storage