updating your web.config with the following entry:
<configuration>
<system.web>
<hostingEnvironment shadowCopyBinAssemblies="false" />
</system.web>
</configuration>
Every Question..What does it mean? Why is this? How it works?
Microsoft .Net (pronounced dot (.) net) may be a package element that runs on the Windows software package.
.Net provides tools and libraries that change developers to form Windows package a lot of quicker and easier.
Microsoft describes it as:".Net is that the Microsoft internet Service strategy to attach data, people,
system and devices through software".I'm Choulla Naresh..!
updating your web.config with the following entry:
<configuration>
<system.web>
<hostingEnvironment shadowCopyBinAssemblies="false" />
</system.web>
</configuration>
Login time, if we click ,multiple time we will get this exception. that time use application error and rediredt to after login page
protected void Application_Error(object sender, EventArgs e)
{
try
{
string controller = Request.RequestContext.RouteData.Values["controller"].ToString();
string action = Request.RequestContext.RouteData.Values["action"].ToString();
Exception exception = Server.GetLastError();
if (exception != null)
{
if (exception is HttpAntiForgeryException)
{
Response.Redirect("~/Account/Dashboard");
}
}
}
catch (Exception ex)
{
throw;
}
}
<appSettings>
<add key="aspnet:MaxJsonDeserializerMembers" value="150000" />
</appSettings>
if you are doing publish in local or local server.. if you change your port number application will work.. published code run in your server or local machine
%appdata%\NuGet\NuGet.Config
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageRestore>
<add key="enabled" value="True" />
<add key="automatic" value="True" />
</packageRestore>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
<add key="nuget.org" value="https://www.nuget.org/api/v2/" />
<add key="Package source" value="E:\Download" />
</packageSources>
<activePackageSource>
<add key="All" value="(Aggregate source)" />
</activePackageSource>
</configuration>
Table don't have a primary key.. add primary and update edmx..
Goto tools > Options > Source Control > Current source control plug- in select None and try to add service Or project run in admin mode and add.. it will work
Applicatin_start()
Application.Lock();
Application["Totaluser"] = (int)Application["Totaluser"] + 1;
Application.UnLock();