Posts

Showing posts from March, 2021

Could not load file or assembly 'log4net, Version=1.2.10.0 Crystal report Error

 If you install 32 bit crystal report runtime software in your machine  then try this Open IIS Go to current server – > Application Pools Select the application pool your 32-bit application will run under Click Advanced setting or Application Pool Default Set Enable 32-bit Applications to True If you install 64 bit crystal report runtime software in your machine  Conversely, if you've got the 64bit version installed, ensure  Enable 32-bit Applications  is set to  False See this link from stackoverflow https://stackoverflow.com/questions/17291736/could-not-load-file-or-assembly-log4net-version-1-2-10-0-culture-neutral-pub

HTML to PDF convert using Aspose.Pdf-iTextSharp

    private string ExportGridToPDF(string id) { try { string Err = string.Empty; DataTable dt = (DataTable)Session["Data"]; var imageUrl = ""; StringBuilder sb = new StringBuilder(); string baseUrl = Request.Url.Scheme + "://" + Request.Url.Authority + Request.ApplicationPath.TrimEnd('/') + "/"; var seblLogo = baseUrl + "/img/sebl.png"; sb.Append(""); if (dt.Rows.Count > 0) { sb = new StringBuilder(); sb.Append("<header class='clearfix' style='padding:50px'>"); sb.Append("<div id='bodyproject' >"); sb.Append("<table width='700px...

Npm ERR cb() never called .npm WARN registry Using stale data from http://registry.npmjs.org/ because the host is inaccessible -- are you offline?

Check if you have any proxy config npm config list Delete them by npm config delete proxy npm config delete http-proxy npm config delete https-proxy Now try npm install

Tool 'dotnet-ef' failed to install. dotnet core

Image
PROBLEM: My .NET SDKs latest version is 5.0.103 but when i try to install the tool dotnet-ef with version 5.0.103 then it shows an error error NU1100: Unable to resolve 'dotnet-ef (>= 0.0.0)' for 'net5.0'. error NU1100: Unable to resolve 'dotnet-ef (>= 0.0.0)' for 'net5.0/any'. The tool package could not be restored. Tool 'dotnet-ef' failed to install. This failure may have been caused by: * You are attempting to install a preview release and did not use the --version option to specify the version. * A package by this name was found, but it was not a .NET tool. * The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem. * You mistyped the name of the tool. Solution  : Try this command dotnet nuget list source output was no nuget source found. Then i run this command dotnet nuget add source  https://api.nuget.org/v3/index.json  -n DefaultNuget after adding nuget source dotnet tool install --global dotnet-...