I have used telerik grid to display a table with inline editing option buttons. But i want to disable those buttons as per the rights assigned to the different roles. I have used custom authorization for the controller but i am unable to find a way to use this in the razor syntax

I have following code in my admin.cshtml:

@using (Html.BeginForm("RemoveItem", "Home", FormMethod.Post))
         {
              @Html.Hidden("key", item.Key)
              @Html.Hidden("type", "user")
              <input type="submit" value="Remove" />
         }

The controller:

    public ActionResult RemoveItem(HomeViewModel model)
   {
      AppRunRoot.RemoveItem(model); //Remove the Item from the Dictionary
      return RedirectToAction("Admin", "Home");
   }

My viewmodel stores the key and the type. I realized this with the separate class “AppDataRemoveModel” In the class “HomeViewModel” is following statement:

public AppDataRemove AppDataRemoveModel { get; set; }

I want to fill the viewmodel by clicking the Remove-button with the information (item.key and „user“) How can I do this? Thank you for your help

I have done so to avoid extra View Model mappings in Business class. Example:

public class PatientInfoBusiness
{
    public List<PatientInfo> GetPatientInfo()
    {
        IPatientInfoService proxy = new VRFactory().GetPatientInfoServiceProxy();
        var piData= proxy.GetPatientInfoSectionData();

        //var patientInfoVM= new List<patientInfoVM>();
        //piData.ForEach( a => patientInfoVM.Add(
        //                                                          new patientInfoVM
        //                                                          {
        //                                                              AcknowledgedUserName = a.AcknowledgedUserName,
        //                                                              Description = a.Description,
        //                                                              PriorityCode = a.PriorityCode,
        //                                                              Status = a.Status
        //                                                          }
        //                                        )
        //                );

        return piData;
    }
}

Shifted the commented code in the above Business to View, looping through and displaying in HTML. This way no need of patientInfoVM View Model. But I am skipping the business layer altogether and binding the entity from service layer directly in view!

i need set property of ViewBag in partial view and call in view. Here is my code: This is index.cshtml:

<h2>@ViewBag.Title</h2>
Html.RenderPartial("~/Views/Article/Partial.cshtml");

And this controller:

public ActionResult Index(int id)
{
  return View(_db.Articles.Find(id));
}

This is Partial.cshtml:

@model Article
@{
    ViewBag.Title = Model.Article.Title;
}

<h2>....</h2>
//html...

i have a code for reserving seats. the client only can reserve 2 seat . if he try reserve over two seat the website should give an error to the client . but my second if does not work and program jump in to the else (the else is an error for over reservation attention) . when we have less than 2 customer id in the SingleSeatTable (in SQLServer) this means the client can reserve only one seat . what should i do? whats my mistake?

    protected void btn_next_Click(object sender, EventArgs e)
{


    string seatname;
    string seatnumber;

    seatname = DropDownList1_SeatName.SelectedItem.ToString();
    seatnumber = DropDownList2_SeatNumber.SelectedItem.ToString();

    //چک کردن انتخاب نکردن دو صندلی تکراری توسط یک نفر
    string strquery2 = "select count(*) from SingleSeatTable where SeatNumber=@SeatNumber";

    SqlConnection connection2 = DBConnection.getConnection();
    connection2.Open();
    SqlCommand cmd2 = new SqlCommand();
    cmd2.Connection = connection2;
    cmd2.CommandText = strquery2;

    cmd2.Parameters.Add("@SeatNumber", seatnumber);

    int intRowCount1 = (int)cmd2.ExecuteScalar();
    connection2.Close();


    if (intRowCount1 == 1)
    {
        Messages myMsg = new Messages(); // ایجاد نمونه از کلاس
        myMsg.CreateMessageAlert("صندلی رزرو شده است . صندلی دیکری انتخاب نماییدو یا در صورت رزرو تمامی صندلی ها میز و شماره صندلی را دیگری انتخاب نمایید.");

    }


    else
    {
        //checking seat count

    string cis = Session["customerID"].ToString();

    string strquery3 = "select count(*) from SingleSeatTable where customer_id=@customer_id";
    SqlConnection connection3 = DBConnection.getConnection();
    connection3.Open();
    SqlCommand cmd3 = new SqlCommand();
    cmd3.Connection = connection3;
    cmd3.CommandText = strquery3;
    cmd3.Parameters.Add("@customer_id",cis );
    int intRowCount2 = (int)cmd3.ExecuteScalar();
    connection3.Close();

    if (intRowCount2 == 2)
    {
            string strQuery = "INSERT INTO [SingleSeatTable](SeatNumber,TableName,EventCode,Reserved,customer_id)" + "VALUES(@SeatNumber,@TableName,@EventCode,@Reserved,@customer_id)";
            SqlConnection connection4 = DBConnection.getConnection();
            connection4.Open();
            SqlCommand cmd4 = new SqlCommand();
            cmd4.Connection = connection4;
            cmd4.CommandText = strQuery;

            /******query No.1********/
            cmd4.Parameters.Add("@SeatNumber", seatnumber);
            cmd4.Parameters.Add("@TableName", seatname);
            cmd4.Parameters.Add("@EventCode", "100");
            cmd4.Parameters.Add("@Reserved", "1");
            cmd4.Parameters.Add("@customer_id", cis);
            cmd4.ExecuteNonQuery();
            connection4.Close();
            Response.Redirect("ReservationSucces.aspx");

        }

    else
    {
        Messages myMsg = new Messages(); // ایجاد نمونه از کلاس
        myMsg.CreateMessageAlert("ظرفیت رزرو شما پر شده است . شما نمی توانید بیش از دو صندلی انتخاب نمایید");
    }


    }

}

I have two databases in my MVC 5 application. One is the memmbership database and the other is the application database. I want to merge the databases into one database and set the destination database for the both databases the same in the project's Package/Publich SQL property. I also created a config transform for the web.config file. This is how it looks.

    <connectionStrings>
          <add name="DefaultConnection" 
    connectionString="Data Source=DESKTOP-0CKI1SE;Initial Catalog=DT;User ID=test;Password=test1234"
    xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
          <add name="DriversTrainingEntities"
   connectionString="Data Source=DESKTOP-0CKI1SE;Initial Catalog=DT;User ID=test;Password=test1234"
   xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
    </connectionStrings>

After Deploying the application, The schema is created perfectly for the membership database DefaultConnection. But for the application database, I get the error "Keyword not supported:'data source'". I think this is because I added the connection string for the destination database twice. How can I change the configuration for both databases only once?

Upload Multiple image save into Database vb.net

i have html code :

<div class="col-xs-12 margin-top-60">
    <input id="file-upload" name="files " type="file" multiple>
</div>

how to make that upload image path in database and without runat server ? (because if i give runat server in html program is error)

I published a website and i create a website in iis as you can see here

enter image description here

But when i enter the url conf.qums.ac.ir i get this error :

HTTP Error 404. The requested resource is not found.

enter image description here

as you can see in the image the browser redirects the request to the ip of server

Should i set something more and details.

I am developing chart control programmatically in asp.net. Everything is working fine but when I make chart 3D enabled true.Its data point color overlapping chart areas color.I don't know why its happening.please help me my code is hereenter image description here

                        nm = dr[0].ToString();
                        Chart1.ChartAreas.Add(nm.ToString());
                        Chart1.Series.Add(nm);
                        Chart1.Series[nm].ChartType = SeriesChartType.Pie;
                        Chart1.ChartAreas[nm].Area3DStyle.Enable3D = true;
            Chart1.Series[nm].Points[0].Color = System.Drawing.Color.Blue;
            Chart1.Series[nm].Points[1].Color = System.Drawing.Color.Wheat;

I have to update some values in table row if UserId = Session["username"] but its showing error:

ExecuteNonQuery: Connection property has not been initialized.

can any one know what i am doing wrong here a Session["username"] have its value i have checked.

SqlConnection conn7 = new SqlConnection(@"Data Source=SANJAY-PC\SQLEXPRESS;Initial Catalog=dev;User ID=sa;Password=sa@123;Pooling=False");
        var qry = "UPDATE Registration (FirstName,LastName,Password,LastName,EmaildId,UserId) " +
      "VALUES (@FirstName, @LastName, @Password, @EmaildId, @UserId) WHERE UserId='" + Session["username"] + "'";
        var cmd = new SqlCommand(qry);
        cmd.Parameters.AddWithValue("@FirstName", Firstname_Update.Text);
        cmd.Parameters.AddWithValue("@LastName", Lastname_Update.Text);
        cmd.Parameters.AddWithValue("@Password", Password_Update.Text);
        cmd.Parameters.AddWithValue("@EmaildId", EmailIdUpdate.Text);
        cmd.Parameters.AddWithValue("@UserId", UserIdUpdate.Text);
        conn7.Open();
        cmd.ExecuteNonQuery();
        conn7.Close();

I have a problem with my c# code in a asp.net website.

Here is my code.

mood = Session["feeling"].ToString();
DataTable dt2 = blrate.selectmood("selectmood", mood);
DataTable dt3=new DataTable();

for (int k = 0; k < dt2.Rows.Count; k++)
{
    dt3.Rows[k][0]= music.selectMusic("sel_musicname", Convert.toInt32(dt2.Rows[k][2]));
    dt3.Rows[k][1] = music.selectMusic("sel_musicUrl", Convert.ToInt32(dt2.Rows[k][2]));
}
GridView1.DataSource = dt3;
GridView1.DataBind(); 

I want to add rows in datatable but it has the eror

There is no row in position 0.

Final datatable must have two columns and k rows.
what should i do???

creata a plugin in dyanmics crm when an contact created and send email to contact emial address.please help to solve this.

I am using vb.net in my website. I want to know If I have Listview Control & I want to delete selected rows by checkbox? I know it can be done by using 'For Each but how to execute this I have no idea. pLease help me.

<asp:ListView ID="productsList" runat="server" DataKeyNames="">
                                        <LayoutTemplate>
                                            <table class="content-table products-table">
                                                <thead>
                                        <tr>
                                            <td class="checkbox-part">
                                                <asp:CheckBox runat="server" ID="chkAll" />
                                            </td>

                                            <td>
                                                Image
                                            </td>

                                            <td class="product-title">
                                                Name
                                            </td>

                                            <td>
                                               Item Code
                                            </td>

                                            <td>
                                                Budget
                                            </td>

                                            <td>
                                                MOQ
                                            </td>

                                            <td>
                                                Status
                                            </td>
                                        </tr>
                                    </thead>
                                                <div id="itemPlaceholderContainer" runat="server" style="">
                                                    <div runat="server" id="itemPlaceholder" />
                                                </div>
                                            </table>
                                        </LayoutTemplate>

                                        <ItemTemplate>
                                            <tbody>
                                        <tr>
                                            <td class="checkbox-part">
                                                <asp:CheckBox runat="server" ID="chk" />
                                            </td>

                                            <td>
                                                <img src='<%#"../../" + Eval("image") %>' runat="server" class="lil-thumbnail" />
                                            </td>

                                            <td class="product-title">
                                                <asp:Label ID="id" runat="server" Text='<%# Eval("ID") %>' Visible="false"></asp:Label>
                                                <asp:Label ID="productName" runat="server" Text='<%# Eval("product_name") %>'></asp:Label><br />
                                                <asp:hyperlink ID="Edit" runat="server" cssClass="editbtn icn" ToolTip="Edit Product" NavigateUrl='<%# "new-product.aspx?edit=edit" & "&" & "productID=" & Eval("ID") %>'></asp:hyperlink>

                                                <asp:LinkButton ID="Delete" runat="server" CssClass="deletebtn icn" CommandName="DeleteProduct" CommandArgument='<%# Eval("ID")%>' ToolTip="delete" OnClientClick="return confirm('Are you sure you want to delete this Item?')" CausesValidation="false"></asp:LinkButton>

                                                <asp:HyperLink ID="view" NavigateUrl="#" runat="server" CssClass="viewbtn icn" ToolTip="View Product"></asp:HyperLink>
                                            </td>

                                            <td>
                                                <asp:Label ID="sku" runat="server" Text='<%# Eval("sku") %>'></asp:Label>
                                            </td>

                                            <td>
                                                <asp:Label ID="price_range" runat="server" Text='<%# Eval("price_range") %>'></asp:Label>
                                            </td>

                                            <td>
                                                <asp:Label ID="moq" runat="server" Text='<%# Eval("moq") %>'></asp:Label>
                                            </td>

                                            <td>
                                                <asp:Label ID="status" runat="server" Text='<%# Eval("status") %>'></asp:Label>
                                            </td>
                                        </tr>
                                    </tbody>
                                        </ItemTemplate>
                                    </asp:ListView>

I'm creating a website that involves submitting forms. The forms look identical, but have different models associated to it for database purposes. So for example, I might be taking student information, but for different schools. So the page you go to for each school (but on the same site) looks identical with regards to the forms that are filled out, but will go to different tables in the database. I have created individual models for each school and a partial view for the form. So my question is, is there a way to pass in multiple models into the same partial view depending on which page one is on? I figure there might be a better way, instead of rewriting a bunch of code.

I can post my code if someone thinks it's necessary, but I think I'm just looking for some examples of how this might best be done. Anyway, I'm new to MVC and any help or direction would be greatly appreciated. Thanks! :)

I am trying to check in the customer to our cafe on Facebook using our portal on local WiFi network (the site permanently runs on local network). I am using following code that uses Facebook C# SDK:

if (Request.QueryString["code"] != null && Request.QueryString["code"] != "")
{
    string AccessToken = Request["code"].ToString();
    var fb = new FacebookClient(AccessToken);
    dynamic parameters = new ExpandoObject();
    parameters.message = "This is just a test.";
    parameters.place = "<MY PAGE ID>";
    dynamic result = fb.Post("me/feed", parameters);
    var id = result.id;
}
else
{
    var redirectUri = "http://<LOCAL SERVER IP ADDRESS>:<LOCAL SERVER PORT NUMBER>/FBLogin.aspx";

    var service = new FacebookClient();
    var loginUrl = service.GetLoginUrl(new
    {
        client_id = appID,
        client_secret = appSecret,
        redirect_uri = redirectUri,
        response_type = "code",
        scope = "publish_actions" // Add other permissions as needed
    });

    Response.Redirect(loginUrl.ToString());

    var fb = new FacebookClient();
    dynamic result = fb.Post("oauth/access_token", new
    {
        client_id = appID,
        client_secret = appSecret,
        redirect_uri = redirectUri
        //code = Request.QueryString["code"].ToString()
    });
}

I tried everything from following link: Malformed access token 190 error and other SO questions that I forgot the links of. But it didn't worked. Please help!

UPDATE

I am able to check in using the access token generated directly using Facebook Debug Tool.

UPDATE

Full Exception:

(OAuthException - #190) Malformed access token AQBQAhmVl6xEYtUmSUzBCdcMq8Djzi-XgEkkFLVwUgT_v592CkhBxOiJ7xX6-PoUpvk2XRqZZ9TahXw8u7_R1qletojvnMR5ENlVTON5tzOg-6b6Mw2foGRyXUEnzNzYhc1p7bb48E9nV5NuB1tg0cFsSM2WSeSTYXnjyyuuuyxEjeqfXy1Kn0PTnIaH1s_2wuKuUCq2AdD-PyHkbj_zUADDnwZCeJk5KSHkqbcKTLgYaIk6roMWJb8xHsExJK86xbRt5jXvS2-bBLwi5dYHn_Fpc7NZjilRvNYWa2gyKSo8ElABnF3Qr051VJInVoNsXiOYTQK24tWvEqvOY_ZeKoId

I am working on an ASP.Net Web Application.

I am trying to pick two rows from a table and update one column in both rows and I would like to maintain Repeatable Read isolation level during the transaction. However, changes would take effect and they are not committed.

Please help.

Thanks, Mehdi

protected void btnMoveUp_Click(object sender, ImageClickEventArgs e)
{
    var SelectedItems = rgActivity.MasterTableView.GetSelectedItems();
    if (SelectedItems.Count() == 1 )
    {
        TransactionOptions transactionOptions = new
            TransactionOptions()
        {
            IsolationLevel =
                System.Transactions.IsolationLevel.RepeatableRead
        };
        using (TransactionScope transactionScope = new TransactionScope(TransactionScopeOption.Required, transactionOptions))
        {
            int ActivityID = Convert.ToInt32(rgActivity.MasterTableView.DataKeyValues[SelectedItems[0].ItemIndex]["ID"]);

            var currentActivity = dc.Workflow_Activities.Single(a => a.ID == ActivityID);

            if (currentActivity.RowNum > 0) // we cannot move the first item up further.
            {
                // find the immedige upper item if any
                var uperActivityList = dc.Workflow_Activities
                    .Where(a => 
                                currentActivity.WorkflowId == a.WorkflowId 
                                && a.RowNum == currentActivity.RowNum - 1
                           );

                var uperActivity = ( uperActivityList.Count() > 0 ) ? uperActivityList.First() : null;

                // changes are done here <<<<<<<<<<<<<<<<<<<<<<<<<<<
                currentActivity.RowNum --;
                if (uperActivity != null)
                {
                    uperActivity.RowNum++;
                }
                dc.SubmitChanges();
            }
        rgActivity.Rebind();
        }
    }
    else
    {
        ShowMessage("So no");
    }
}

I'm wondering is there any way to dynamically add sections to Views in MVC?

this is what I have in mind

@model Foo 

@AddSections(Foo.Bar)

and this would be the AddSections Method although I know the output should not be string.

public string AddSections(int i)
{
    switch(i)
    {
        case 1 :
            return "@section State1 { <h1>Hello World! </h1>}" ;
        default :
            return "@section State2 { <h1>See you, World! </h1>}" ;        
    }
}

So in a simple way my question is what should the ouput of this method be to render as sections in View.

Here is the problem. We have a server with ssl enabled and hence we were using https binding. But we need to temporarily move the website to another server without SSL. so we need to do an https to http redirection. I have used the following rules.

   <rule name="HTTP to HTTPS Redirection" stopProcessing="true">
      <match url="(.*)" />
      <conditions>
        <add input="{HTTPS}" pattern="^ON$" />
      </conditions>
      <action type="Redirect" url="http://{HTTP_HOST}/{R:1}" redirectType="Found" />
    </rule>

I treid pattern both ON and OFF but the redirection does not occur. can anyone help?

Can someone please assist me in creating a ViewModel to retrieve the values from my Database to a DropDownList ?

I'm currently getting the values now to my DropDownList using a ViewBag and was told to not retrieve the data to DropDownList using ViewBag or ViewData.

I would like to create a ViewModel to retrieve the data from my database to my DropDownList on the public IActionResult Create() not the public IActionResult Create(Employee employee)on the EmployeeController.

I was also told to NEVER use my main "Employee" Model that I added above for CRUD. I was told to use ViewModels for CRUD, not sure if this is true and if so, why??

Employee Model:

    public class Employee
{
    [Key]
    public int EmpId { get; set; }

    [Required]
    public string EmpFirstName { get; set; }

    [Required]
    public string EmpLastName { get; set; }

    public int DeptId { get; set; }
    public Department Department { get; set; }

    public int BldgId { get; set; }
    public Building Building { get; set; }
}

EmployeeController:

public class EmployeeController : Controller
{
    private DataEntryContext _context;

    public EmployeeController(DataEntryContext context)
    {
        _context = context;
    }

    public IActionResult Index()
    {
        return View(_context.Employees.ToList());
    }

    // Populate Department values to DropDownList
    private IEnumerable<SelectListItem> GetDeptList()
    {
        var dept = _context.Departments
            .Select(s => new SelectListItem
            {
                Value = s.DeptId.ToString(),
                Text = s.DeptTitle
            })
            .ToList();

        return (dept);
    }

    // Populate Building values to DropDownList
    private IEnumerable<SelectListItem> GetBldgList()
    {
        var bldg = _context.Buildings
            .Select(b => new SelectListItem
            {
                Value = b.BldgId.ToString(),
                Text = b.BldgName
            })
            .ToList();

        return (bldg);
    }

    public IActionResult Create()
    {
        // Load values to DropDownLists for Departments and Buildings
        ViewBag.DeptListName = GetDeptList();
        ViewBag.BldgListName = GetBldgList();

        return View();
    }

    [HttpPost]
    [ValidateAntiForgeryToken]
    public IActionResult Create(Employee employee)
    {
        if (ModelState.IsValid)
        {
            _context.Employees.Add(employee);
            _context.SaveChanges();
            return RedirectToAction("Index");
        }

        return View(employee);
    }

    public IActionResult Edit(int? id)
    {
        if (id == null)
        {
            return View("Error");
            //return NotFound();
        }

        var employee = _context.Employees
            .Where(e => e.EmpId == id)
            .Single();

        if (employee == null)
        {
            return View("Error");
            //return NotFound();
        }

        ViewBag.DeptListName = GetDeptList();
        ViewBag.BldgListName = GetBldgList();

        return View(employee);
    }

    [HttpPost]
    [ValidateAntiForgeryToken]
    public IActionResult Edit(Employee employee)
    {
        if (ModelState.IsValid)
        {
            ViewBag.DeptListName = GetDeptList();
            ViewBag.BldgListName = GetBldgList();

            _context.Employees.Update(employee);
            _context.SaveChanges();

           return RedirectToAction("Index");
        }

        return View(employee);
    }
}

So, I created a folder called ViewModels. I then created the following ViewModel called CreateEmployeeViewModel with the following properties below:

    public class CreateEmployeeViewModel
{
    public int EmpId { get; set; }
    public string EmpFirstName { get; set; }
    public string EmpLastName { get; set; }

    public int DeptId { get; set; }
    public string DeptTitle { get; set; 
    public Department department { get; set; } // connect to Departments table
    public IEnumerable<SelectListItem> DeptList;

    public int BldgId { get; set; }
    public string BldgName { get; set; }
    public Building building { get; set; } // connect to Building Table
    public IEnumerable<SelectListItem> BldgList;
}

If I use the ViewModel approach do I need to remove the using DataEntryMVCEFCore.Models; from my EmployeeController and add using DataEntryMVCEFCore.ViewModels; If I do that will I still have access to my _context class to talk to the Database?

I have just written an MVC application and got it working in my lab. Now that I've deployed it to GoDaddy, I am getting the following error.

Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request failed.

Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack trace:

[SecurityException: Request failed.] System.Security.CodeAccessSecurityEngine.ThrowSecurityException(RuntimeAssembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandleInternal rmh, SecurityAction action, Object demand, IPermission permThatFailed) +165 System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Object assemblyOrString, PermissionSet granted, PermissionSet refused, RuntimeMethodHandleInternal rmh, SecurityAction action, Object demand, IPermission permThatFailed) +100 System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandleInternal rmh, Object assemblyOrString, SecurityAction action, Boolean throwException) +284 System.Security.CodeAccessSecurityEngine.CheckSetHelper(CompressedStack cs, PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandleInternal rmh, RuntimeAssembly asm, SecurityAction action) +70 System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type) +0 System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName) +70 System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +40 System.Type.GetType(String typeName) +30 System.CodeDom.Compiler.CompilerInfo.get_IsCodeDomProviderTypeValid() +12 System.Web.Compilation.CompilationUtil.GetRecompilationHash(CompilationSection ps) +2175 System.Web.Configuration.CompilationSection.get_RecompilationHash() +96 System.Web.Compilation.BuildManager.CheckTopLevelFilesUpToDateInternal(Int64 cachedHash) +458 System.Web.Compilation.BuildManager.CheckTopLevelFilesUpToDate(Int64 cachedHash) +51 System.Web.Compilation.BuildManager.ExecutePreAppStart() +135 System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +531

I wondered about my database connection string, although the error doesn't seem to suggest any issue with the database.

So my real question is: How does one go about troubleshooting this. The messages don't really seem to help at all. What could be a next step?

Is Azure Table Storage Session Provider as an ASP.NET Session State option obsolete ? I am not able find official Microsoft communication on this but found it in a blog. Also, the links provided in this MSDN blog is redirecting to home page.

I am not able to find official Microsoft communication on this.

I wish to implement it at the project level hence need to be doubly sure. Request all to help me here please.