Hi all, I have a windows service application that needs to make request to a remote web service (https:// ...) for uploading files. the contact mechanism between them is a SSL based channel. I assigned my windows service to run under a specified user account and installed the client certificate with that user account as well. And I am getting this exception as title, however, strange enough, I do not get this exception all the time, i got this exception sporadically. Does it prove that I did configure certificate properly? if so, what other reasons would cause this exception??? Any suggestion would be appriciated!! Ming
Bluebamboo
Posts
-
The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel -
How to renew the value stored in Cache (Asp.net 1.1)Thanks Alexei, Image that when I tried to deploy another version of application, which the email content(physical file) used by application has been updated, but the code still reads old value from cache instend of the new email file because cache("key") is not Nothing. Ming
-
How to renew the value stored in Cache (Asp.net 1.1)I just found that the cache can be emptied if any changes happened on Web.config :omg:
-
How to renew the value stored in Cache (Asp.net 1.1)because only when IIS is restarted, the cache can be emptied. The reason I want to renew the cache is I want the changes on email being able to be reflect to cache.
'Save email to cache If Cache("LINKASCHOOLEMAIL") Is Nothing Then Cache("LINKASCHOOLEMAIL") = "Read email from file" End If
Many thanks -
How to renew the value stored in Cache (Asp.net 1.1)Hi guys, I try to use Cache to store email's content which is used frequently throughout whole Web application, The email was designed to put into a htm file, everytime when the application send email the system will read from the htm file, so the Cache is going to reduce some of IO overhead.
Cache("LINKASCHOOLEMAIL") = "emaill content"
But the problem is if I want to change the content of the email, the changes won't be reflected to cache until I reboot IIS (I can't do in this way because there are several Web applications in that IIS). So is it any ways to resolve my problem? Many thanks Ming -
A potentially dangerous Request.Form value was detected from the client [modified]because the basic requirement is that I provide a online html editor (implemented by using textbox) which allows user types in html markup , and submit to database. and also I have other textboxes on the same page which do need the asp.net pagevalidate feature, is any solution? any suggestion would be appricated! Cheers, Ming
-
A potentially dangerous Request.Form value was detected from the client [modified]Hi N a v a n e e t h, Thanks for your solution, but I think you don't understand what I am asking, you are alright, that is my fault, I didn't hightlight the key words. The key word is without setting the validateRequest to false in the page directive or in the web.config file? Cheers, Ming
-
A potentially dangerous Request.Form value was detected from the client [modified]Hi guys, Please forgive me, if it is a question frequent asked. As you know, when we tried to submit a asp.net page with characters something like '<test>' filled in, and we would get an error as the subject. How can the exception "A potentially dangerous Request.Form value was detected from the client" be handled without setting the validateRequest to false in the page directive or in the web.config file? because I just want to void this ASP.NET feature for only a single textbox, Any suggestions? Thanks, Ming.
modified on Wednesday, April 2, 2008 10:28 AM
-
message box in asp.net//TRY ? alert('ok');
-
Update a datatable to databaseHi Joe, Thanks for you suggestion, Problem has been *solved*, I haven't found where exactly cause the problem, because it worked once suddenly, and now it always works. Amazing! I think it is not a problem with the code I pasted, probably it was something wrong with other potential reasons, which I don't know exactly, but one of them what I guess could be this[^] Thanks. Ming
-
Update a datatable to databaseThanks for your reply I don't think that causes the problem, you can check the solution provided by Micsoft support http://support.microsoft.com/kb/308055[^] and the solution declare a SqlCOmmand with such a query
DAUpdateCmd = New SqlCommand("Update CustTest set CustName = @pCustName where CustId = @pCustId", da.SelectCommand.Connection)
which is actually perform same function as what I did -
Update a datatable to databaseHi guys, I got a datatable from a excel file, and try to update this table onto sql server, in other words, the users can change the table in sql server based on excel file. I use SqlDataAdapter to update the table, but the problem is no change happen on my database.
'... Dim cmdSql As SqlCommand = New SqlCommand cmdSql.Connection = connSql cmdSql.CommandText = "UPDATE pfSchool SET notes = @notes WHERE ID = @id" cmdSql.Parameters.Add(New SqlParameter("@notes", SqlDbType.NText)) cmdSql.Parameters("@notes").SourceColumn = "notes" cmdSql.Parameters.Add(New SqlParameter("@id", SqlDbType.Int)) cmdSql.Parameters("@id").SourceColumn = "ID" ' modify the data for testing dtData.Rows(0)("notes") = "test2" Dim daSql As SqlDataAdapter = New SqlDataAdapter daSql.UpdateCommand = cmdSql daSql.UpdateCommand.Connection.Open() daSql.Update(dtData) '...
Above is a piece of codes which i made for testing. Any suggestion would be appreciated! Ming -
How to access server-side controls of a user control(ascx) from its parent page (aspx) by using javascriptOh dear! I just found out what I said was wrong. getElementById function works as well!! :omg:
-
How to access server-side controls of a user control(ascx) from its parent page (aspx) by using javascriptNo, it doesn't work with getElementById, no error shown in Firefox error console. the result show null. but anyway, getElementsByName works .. :laugh:
-
How to access server-side controls of a user control(ascx) from its parent page (aspx) by using javascriptHi Michael, Problems solved, I use getElementsByName with its name in HTML ViewSource instead of ID, it works! ;) It seems like the getElimentById function still does not work compatiblely with firefox very well. Regards, Ming
-
How to access server-side controls of a user control(ascx) from its parent page (aspx) by using javascriptHi Michael, Thanks for your help, I did use the way you suggested. The HTML ViewSource for the asp:net control in both IE and Firefox are actually same: :doh: For Firefox: For IE: Regards, Ming
-
How to access server-side controls of a user control(ascx) from its parent page (aspx) by using javascriptBy the way,I use the latest version of firefox.
-
How to access server-side controls of a user control(ascx) from its parent page (aspx) by using javascriptHi, The firefox do use getElementbyId, because I tried this piece of code below to get the client-side controls within a user control , it works. var obj = document.getElementById('AClientSideControl');
-
How to access server-side controls of a user control(ascx) from its parent page (aspx) by using javascriptHi all, I have already found the approaches to access server-side controls of a user control (e.g asp:label asp:textbox ...) on IE, var obj = document.getElementById('uctAUserConrolID_AServerSideControlID'); //or var obj = document.getElementById('uctAUserConrolID:AServerSideControlID'); //or BUT, these approaches don't work on Firefox!!! :( please let me know if anyone know the answer. Thanks Ming
-
How to retrieve image with Htmlgood suggetion for me thank a lot:)