Hi, I have an asp.net application and using connection string to connect to database. But I am getting below error. Connection open and login was successful, but then an error occurred while enabling MARS for this connection. (provider: Name Pipes Provider, error:15- Function not supported) I am using Asp.net framework 4.5 and SQl server 2012 DataTable dt = new DataTable(); SqlConnection objcon = new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["test"].ToString()); using (var command = new SqlCommand("SELECT * FROM testData", objcon)) { var formCollection = new List<Form>(); try { objcon.Open(); command.CommandTimeout = 3000; var res = command.ExecuteReader(); objcon.Close(); lblID.Text ="Success"; } catch (Exception ex) { objcon.Close(); lblID.Text = ex.Message; } }
Travelthrprog
Posts
-
error occurred while enabling mars for this connection -
Add xml declaration statement using xslt.when I tried in xslt 1.0 in vs2008 <xsl:processing-instruction name="xml"> xsl:textversion="1.0"</xsl:text> </xsl:processing-instruction> I am getting error xsl:processing-instruction cannot be a child of xsl:stylesheet
-
call formview Databind event from Raisecallbackeventwith formview div layers does not help. The insert template has to be loaded when we are changing to insert mode. How do I make the Raisecallback event to load formview in different modes? I have this formview inside a usercontrol with gridview. and the parent page has other controls which should be editable.
-
call formview Databind event from RaisecallbackeventHi all, Is it possible to change the formview mode from insert to readonly or from readonly to insert from Raisecallbackevent(asynchronous postback] in asp.net!!! with __doPostback event of hidden button, I am able to do it. But I want to do this asynchronously. Please help
-
command prompt build web deployment and vs project 2005Hi Dave, I am able to run it manually. But I want to create msbuild .proj file to do it. I just tried building only proj2 by referencing the proj1.dll file as shown below C:\2proj false But gives an error Msb4025-invalid characters in the coding I also don't know how to build the first proj and then add the reference it in the above code. Please help. Thanking you, Nirmala
-
command prompt build web deployment and vs project 2005Hi, I have 2 proj-a user control project and a web page project(huge web site). Currently using web deployment, I am creating a dll file for user control project. Then I am referencing this to web page project and build and debug to view the changes in web project. To avoid this long process, I am trying to build a batch file to build both. I am able to build the usercontrol using msbuild in the batch file. Now I am not able to reference this dll file to webpage project and build the web page project using devenv.How do I reference dll file to webpage project in command prompt or in a batch file. Please help
-
javascript document.all error in firefox for asp:panelNever mind I found the solution var ie=document.all; if (ie) document.all("Panel2").style.display = "none"; :)else document.getElementById("Panel2").style.display="none"; code
-
javascript document.all error in firefox for asp:panelHi all, I am trying to access the asp:panel Id inside the javascript like this document.all("panel2") and it works fine in IE browser. But with firefox this is errors out. I tried var panelvar= document.all("panel2")||document.getelementbyid("panel2) it failed Any suggesionts please...... code