Tag Archives: error msg

Error msg: No mapping exists from object type System.Data.SqlClient.SqlParameter to a known managed provider native type.

        Dim pID As New SqlParameter(“@ID”, SqlDbType.Int)         pID.Value = TextBoxParentID.Text         cmd.Parameters.AddWithValue(“@ID”, pID) I changed it to:         Dim pID As New SqlParameter(“@ID”, SqlDbType.Int)         pID.Value = TextBoxParentID.Text         cmd.Parameters.Add(pID) and it works also this works:         Dim pID … Continue reading

Posted in Databases, Programming, SQL-Server, VB.NET | Tagged , , , , , | 3 Comments

Error Msg: Server Error in ‘/folder‘ Application … A potentially dangerous Request.Form value was detected

Error Msg: Server Error in ‘/folder‘ Application … A potentially dangerous Request.Form value was detected Solution: Add ValidateRequest=”false” to the <% Page tag for example if you already have: <%@ Page Language=”vb” AutoEventWireup=”false” Codebehind=”MyForm.aspx.vb” Inherits=”Proj.MyForm”%> then this should become: <%@ … Continue reading

Posted in ASP.NET, Programming | Tagged , , , | Leave a comment

Error 7 It is an error to use a section registered as allowDefinition=’MachineToApplication’ beyond application level.

PROBLEM: Error 7 It is an error to use a section registered as allowDefinition=’MachineToApplication’ beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS. D:\lawsDB\laws\news\web.config 83  SOLUTION: There was two web.config files, one in … Continue reading

Posted in Programming, VB.NET | Tagged , , | Leave a comment