19026 2
Git push error "git did not exit cleanly (exit code 128)" , how to solve?

When I am trying to push my new commit using Tortoise-Git on server, I am getting this error "git did not exit cleanly (exit code 128)", here is the image of the issue

...

Type
Question
18922 2
"Invalid URI: The format of the URI could not be determined" Error in C#

I am trying to run the below code in my asp.net MVC web-application, to get the URL of first image(<img>) in the HTML string, using the code below

       public static List<Uri> FetchLinksFromSource(string htmlSource)
        {
            List<Uri> links = new List<Uri>();
            string regexImgSrc = @"<img[^>]*?src\s*=\s*[""']?([^'"" >]+?)[ '""][^>]*?>";
            MatchCollection matchesImgSrc = Regex.Matches(htmlSource, regexImgSrc, RegexOptions.IgnoreCase | RegexOptions.Singleline);
            foreach (Match m in matchesImgSrc)
            {
                string href = m.Groups[1].Value;
                links.Add(new Uri(href)); //getting error here
            }
            return links;
        }

but I am getting this error "Invalid URI: The format of the URI could not be determined" when I run this code, here is the image of the error

...

Type
Question
18841 3
Using Entity framework join (EF join) to join two or more tables
In this article, I will explain how we can easily implement inner join on data of two or more tables using entity framework join (ef join) in ASP.NET MVC C#.
Type
Article
17994 1
In Memory cache C# (Explanation with example in .NET and .NET Core)
In this article, I have explained about in memory cache in C# with an console application example in .NET and .NET Core, how to add cache item, remove it, update it or get it's value.
Type
Article
16543 0
Reduce image file size using ASP.NET MVC & C# (Without losing image quality)
This article will help you to reduce your image (jpg or jpeg) file size without losing image quality in asp.net MVC C#.
Type
Article


15960 0
Ways to convert List into Datatable using C#
This article gives you quick solution & few ways to convert .ToList() or IEmuerable List data into DataTable using C#.
Type
Article
15701 2
Unable to update the EntitySet because it has a DefiningQuery and no InsertFunction element exists in the ModificationFunctionMapping element to support the current operation

I am trying to enter a new value in my database table row using Entity Framework in my asp.net MVC application, but getting this error

Unable to update the EntitySet because it has a DefiningQuery and no <InsertFunction> element exists in the <ModificationFunctionMapping> element to support the current operation.

How can I solve it, any suggestions or help? thanks

...
Type
Question
15689 3
The type initializer for 'System.Data.Entity.Migrations.DbMigrationsConfiguration`1' threw an exception

I am trying to Enable migration in Code first using Nuget package manager console command

...
Type
Question
15609 0
Create XML document using C# (Console Application example)
In this article, I have explained, how you can create XML document in C# using Console application, it should work in ASP.NET Web-Forms or MVC, as C# code remains same.
Type
Article
15450 0
Exception handling in C# (With try-catch-finally block details)
In this article, I will explain you in detail about the concept of Exception handling in C# and how we can use try-catch block to handle errors with example.
Type
Article

Page 2 of 24