ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2017 www.aspforums.com. All rights reserved.Will Asynchronous email will be sent even after Web Page is closed in ASP.Net?<p>Hi,</p> <p>I'd like a suggestion, I read this good Article:</p> <p><a href="http://www.aspsnippets.com/Articles/How-to-send-email-Asynchronously-in-ASPNet-using-Background-Thread.aspx">http://www.aspsnippets.com/Articles/How-to-send-email-Asynchronously-in-ASPNet-using-Background-Thread.aspx</a></p> <p>My Req. is after some event (ie click button) start send email process, but I'd like that user can close also the webpage without waiting the response of sending email.</p> <p>How can I do this, working with webservice or ?</p> <p>Tks&nbsp;</p> <p>Br\Vincenzo</p>http://www.aspforums.net/Threads/750155/Will-Asynchronous-email-will-be-sent-even-after-Web-Page-is-closed-in-ASPNet/http://www.aspforums.net/Threads/750155/Will-Asynchronous-email-will-be-sent-even-after-Web-Page-is-closed-in-ASPNet/Tue, 20 Oct 2015 05:13:21 GMTWhat FaultContract in WCF?<p>Hi</p> <p>I am having small clarification in Message and Fault Contract.</p> <p>fault contract is mainly used to handle the exception that happened in service to the consumer of the service. In other words it is used to customize the message in the service and send it to the consumer.</p> <p>My doubt is that why should i go for FaultContract. I can use MessageContract or Even i can put some datamember in the datacontract to store the exception and send it to the application.</p> <p>Hope this is clear. Please let me know if this is not.</p>http://www.aspforums.net/Threads/194788/What-FaultContract-in-WCF/http://www.aspforums.net/Threads/194788/What-FaultContract-in-WCF/Wed, 06 Aug 2014 00:52:09 GMTWhat Asynchronous call in WCF<p>Hi</p> <p>can any one explain me async call in wcf. What is the advantage and how it is used in WCF</p>http://www.aspforums.net/Threads/999938/What-Asynchronous-call-in-WCF/http://www.aspforums.net/Threads/999938/What-Asynchronous-call-in-WCF/Tue, 12 Aug 2014 04:23:50 GMTWeb Service vs ASP.NET Web API and implementing Web API<p>Hi,&nbsp;</p> <p>I am new to web service and Web API.</p> <p>Need to know practicle things which we can do with WEB API and not with web service, which can demonstrate, why we should prefer WEB API over WEB Serveice.</p> <p>&nbsp;</p> <p>Need example except web service using SOAP,XML etc, if any.</p>http://www.aspforums.net/Threads/168546/Web-Service-vs-ASPNET-Web-API-and-implementing-Web-API/http://www.aspforums.net/Threads/168546/Web-Service-vs-ASPNET-Web-API-and-implementing-Web-API/Fri, 30 Sep 2016 02:11:08 GMTweb project Asp.net C# run correctly on my system but it runs another system that time design change<p>web project in asp.net c# working properly on my system(Computer), but this project run on another syatem that time web page design will be change.</p> <p>web page design in the asp.net with &nbsp;css.</p> <p>what can i do for solve this issue ?</p>http://www.aspforums.net/Threads/150616/web-project-Aspnet-C-run-correctly-on-my-system-but-it-runs-another-system-that-time-design-change/http://www.aspforums.net/Threads/150616/web-project-Aspnet-C-run-correctly-on-my-system-but-it-runs-another-system-that-time-design-change/Fri, 20 May 2016 01:43:08 GMTWeb Came in ASP.Net<p>Hello Sir,</p> <p>&nbsp;</p> <p>I'm using below code for web came in my project.</p> <p><strong><a href="https://www.aspsnippets.com/Articles/Capture-Image-Photo-from-Web-Camera-Webcam-in-ASPNet-using-C-and-VBNet.aspx">https://www.aspsnippets.com/Articles/Capture-Image-Photo-from-Web-Camera-Webcam-in-ASPNet-using-C-and-VBNet.aspx</a></strong></p> <p>&nbsp;</p> <p><strong>This code works very slow, and mostly give this error</strong></p> <p><strong><span id="camStatus">error: Flash movie not yet registered!</span></strong></p> <p><strong>Some times image captured but sometime fails.</strong></p> <p><strong>Please help..</strong></p> <p><strong>Thanks</strong></p>http://www.aspforums.net/Threads/157234/Web-Came-in-ASPNet/http://www.aspforums.net/Threads/157234/Web-Came-in-ASPNet/Fri, 06 Oct 2017 01:55:45 GMTWCF Error Failed to update Service Reference 'WCFService.Reference' There was an error downloading<p>Error1Failed to update Service Reference 'SecurityWCFService.Reference'.Error:There was an error downloading 'http://localhost/SecServiceSite/Service.svc'.The request failed with HTTP status 404: Not Found.Metadata contains a reference that cannot be resolved: 'http://localhost/SecServiceSite/Service.svc'.There was no endpoint listening at http://localhost/SecServiceSite/Service.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.The remote server returned an error: (404) Not Found.(0x80131509)file:///D:/Ram/rajesh/New Folder (2)/Intranet/myAsmara/App_WebReferences/SecurityWCFService/Reference.svcmapD:\...\myAsmara\</p>http://www.aspforums.net/Threads/212904/WCF-Error-Failed-to-update-Service-Reference-WCFServiceReference-There-was-an-error-downloading/http://www.aspforums.net/Threads/212904/WCF-Error-Failed-to-update-Service-Reference-WCFServiceReference-There-was-an-error-downloading/Mon, 13 Oct 2014 01:10:18 GMTWarning: This web reference does not conform to WS-I Basic Profile v1.1. SOAP 1.1 binding was not found:<p>Hi,</p> <p>&nbsp;</p> <p>I want to create a Proxy class file from WSDL which is having Soap12 bindings style. I tried to create that using Wsdl.exe from command prompt. But i received the following error</p> <p>&nbsp;</p> <p><strong>Warning: This web reference does not conform to WS-I Basic Profile v1.1.</strong><br /><strong>SOAP 1.1 binding was not found: WS-I's Basic Profile 1.1 consists of implementat</strong><br /><strong>ion guidelines that recommend how a set of core Web services specifications shou</strong><br /><strong>ld be used together to develop interoperable Web services. For the 1.1 Profile,</strong><br /><strong>those specifications are SOAP 1.1, WSDL 1.1, UDDI 2.0, XML 1.0 and XML Schema.</strong></p> <p><strong>For more details on the WS-I Basic Profile v1.1, see the specification</strong><br /><strong>at http://www.ws-i.org/Profiles/BasicProfile-1.1.html.</strong></p> <p><strong>Warning: one or more bindings were skipped.</strong><br /><strong>Warnings were encountered. Review generated source comments for more details.</strong></p> <p><strong><br /></strong></p> <p><strong>so i couldn't create the class file. Please help</strong></p> <p>&nbsp;</p>http://www.aspforums.net/Threads/201910/Warning-This-web-reference-does-not-conform-to-WS-I-Basic-Profile-v11-SOAP-11-binding-was-not-found/http://www.aspforums.net/Threads/201910/Warning-This-web-reference-does-not-conform-to-WS-I-Basic-Profile-v11-SOAP-11-binding-was-not-found/Wed, 26 Feb 2014 09:24:36 GMTUse HttpContext.Current in WCF Service<p>I have created an WCF service for client in ASp.net. However the Response is not getting from POst method. Below is the code snippet:</p> <p>&nbsp;</p> <p>&nbsp;</p> <pre class="brush: csharp">public void Post() { System.Web.HttpContext.Current.Response.Clear(); System.Web.HttpContext.Current.Response.Write(&#34;&lt;html&gt;&lt;head&gt;&#34;); System.Web.HttpContext.Current.Response.Write(string.Format(&#34;&lt;/head&gt;&lt;body onload=\&#34;document.{0}.submit()\&#34;&gt;&#34;, FormName)); System.Web.HttpContext.Current.Response.Write(string.Format(&#34;&lt;form name=\&#34;{0}\&#34; method=\&#34;{1}\&#34; action=\&#34;{2}\&#34; &gt;&#34;, FormName, Method, Url)); for (int i = 0; i &lt; Inputs.Keys.Count; i++) { System.Web.HttpContext.Current.Response.Write(string.Format(&#34;&lt;input name=\&#34;{0}\&#34; type=\&#34;hidden\&#34; value=\&#34;{1}\&#34;&gt;&#34;, Inputs.Keys[i], Inputs[Inputs.Keys[i]])); } System.Web.HttpContext.Current.Response.Write(&#34;&lt;/form&gt;&#34;); System.Web.HttpContext.Current.Response.Write(&#34;&lt;/body&gt;&lt;/html&gt;&#34;); System.Web.HttpContext.Current.Response.End(); } </pre> <p>&nbsp;</p>http://www.aspforums.net/Threads/197128/Use-HttpContextCurrent-in-WCF-Service/http://www.aspforums.net/Threads/197128/Use-HttpContextCurrent-in-WCF-Service/Mon, 22 Jun 2015 07:23:35 GMTService Oriented Architecture with WCF<p>I want to secure my WCF services from unauthorized access. I am using ASP MVC as a front end to access my WCF services. Can I encrypt my services URL in JS file? And how I maintain the state management. I am calling my services directly through AJAX call and I am avoiding Model and Controller (using only for redirections from menu). What is the best approach to create SOA?<img src="file:///C:/Users/khabib/Desktop/arch.png" alt="Arch" /></p>http://www.aspforums.net/Threads/785316/Service-Oriented-Architecture-with-WCF/http://www.aspforums.net/Threads/785316/Service-Oriented-Architecture-with-WCF/Mon, 28 Mar 2016 02:11:31 GMTsend sms through web api for free sms using vb6<p>how to send sms through web api for free sms using vb6</p>http://www.aspforums.net/Threads/206107/send-sms-through-web-api-for-free-sms-using-vb6/http://www.aspforums.net/Threads/206107/send-sms-through-web-api-for-free-sms-using-vb6/Sat, 09 Sep 2017 07:33:15 GMTSend email using web application like Contact Us page in ASP.Net<p>how can the user send their requirement via email using my web application in asp.net...user must send mail to the mail account which associated with a Gmail account in my site......</p> <p>Dear i have a site ...on my site, there is three textbox&nbsp;</p> <p>1."From" in this box user need to write his mail id.</p> <p>2."Subject" what he/she is going to send me&nbsp;</p> <p>3. "Message Box"</p> <p>4.And a button called "Send"</p> <p>user type their mail id , subject and message and then user click on the button and the mail will come to my email is which is attached&nbsp;to my site</p> <p>&nbsp;</p>http://www.aspforums.net/Threads/167019/Send-email-using-web-application-like-Contact-Us-page-in-ASPNet/http://www.aspforums.net/Threads/167019/Send-email-using-web-application-like-Contact-Us-page-in-ASPNet/Wed, 20 Jul 2016 03:52:15 GMTUpload image using WCF Rest WebService in ASP.Net<p>How to upload and save images as (BLOB) in databse in asp.net using WCF</p> <p>&nbsp;</p> <p>am getting images as bytes in my datatable..but returns error 400 if multiple images selected</p> <pre class="brush: csharp"> DocumentID = int.Parse(Request.QueryString[&#34;DocID&#34;]); byte[] fileData = new byte[file.InputStream.Length]; //Stream streamdata = new MemoryStream(fileData); file.InputStream.Read(fileData, 0, Convert.ToInt32(file.InputStream.Length)); file = getfile.UploadedFiles[filecnt]; if (dtImage == null || dtImage.Rows.Count == 0) { dtImage = new DataTable(); dtImage.Columns.Add(&#34;REQID&#34;); dtImage.Columns.Add(&#34;DocType&#34;); dtImage.Columns.Add(&#34;FileType&#34;); dtImage.Columns.Add(&#34;uploadId&#34;); //dtImage.Columns.Add(&#34;DATA&#34;, typeof(Byte[])); //dtImage.Columns.Add(&#34;DATAstream&#34;, typeof(Stream)); for (int i = 0; i &lt;= 0; i++) { DataRow dtrowtar = dtImage.NewRow(); dtrowtar[0] = DocumentID; dtrowtar[1] = ddlType.SelectedValue.ToString(); dtrowtar[2] = file.GetExtension().ToString(); dtrowtar[3] = 1; dtrowtar[4] = fileData; //dtrowtar[5] = streamdata; dtImage.Rows.Add(dtrowtar); } } else { int DocIndex = dtImage.Rows.Count; dtImage.Rows.Add(); dtImage.Rows[DocIndex][&#34;REQID&#34;] = dtImage.Rows[0][&#34;REQID&#34;]; dtImage.Rows[DocIndex][&#34;DocType&#34;] = ddlType.SelectedValue.ToString(); dtImage.Rows[DocIndex][&#34;FileType&#34;] = file.GetExtension().ToString(); dtImage.Rows[DocIndex][&#34;uploadId&#34;] = int.Parse(dtImage.Rows[DocIndex - 1][&#34;uploadId&#34;].ToString()) + 1; dtImage.Rows[DocIndex][&#34;Data&#34;] = fileData; //dtImage.Rows[DocIndex][&#34;DATAstream&#34;] = streamdata; } } </pre> <p>&nbsp;</p>http://www.aspforums.net/Threads/976242/Upload-image-using-WCF-Rest-WebService-in-ASPNet/http://www.aspforums.net/Threads/976242/Upload-image-using-WCF-Rest-WebService-in-ASPNet/Tue, 03 Dec 2013 00:36:17 GMTUpload Image file using Web Service in ASP.Net<p>Hello,</p> <p>I want web service which will upload images (.jpeg, .jpg, .png) on server and this web service will call by android app, I am using web service <strong>not</strong> WCF.</p>http://www.aspforums.net/Threads/211932/Upload-Image-file-using-Web-Service-in-ASPNet/http://www.aspforums.net/Threads/211932/Upload-Image-file-using-Web-Service-in-ASPNet/Tue, 01 Sep 2015 04:36:17 GMTUpload file using Web Service in ASP.Net<p>Hello,</p> <p>I have one web method and I want to upload file on server using this method please guide me how to implement it.</p>http://www.aspforums.net/Threads/150920/Upload-file-using-Web-Service-in-ASPNet/http://www.aspforums.net/Threads/150920/Upload-file-using-Web-Service-in-ASPNet/Mon, 24 Aug 2015 04:46:21 GMTReffering All Kind Error To Page ASP.Net Web Form<p>How to Reffering All Kind Error To Page ASP.Net Web Form?</p> <p>Please Help.</p> <p>&nbsp;</p> <p>Best Regards,</p> <p>Resi Taufan</p>http://www.aspforums.net/Threads/541374/Reffering-All-Kind-Error-To-Page-ASPNet-Web-Form/http://www.aspforums.net/Threads/541374/Reffering-All-Kind-Error-To-Page-ASPNet-Web-Form/Fri, 22 Sep 2017 00:28:31 GMTProgrammatically change WCF Services EndPoint Address in ASP.Net<p>I currently have a wcf web service that is referenced by my hosted application and have configured the web.config file with the end-point. I need to be able to dynamically chand the eddredd for the endpoint upon login. Can someone help me with this?</p>http://www.aspforums.net/Threads/108662/Programmatically-change-WCF-Services-EndPoint-Address-in-ASPNet/http://www.aspforums.net/Threads/108662/Programmatically-change-WCF-Services-EndPoint-Address-in-ASPNet/Fri, 21 Apr 2017 01:55:25 GMTPass parameters to Web API in ASP.Net<p>How to sending Parameter or Request to Web API When It is Hosted onLine?</p>http://www.aspforums.net/Threads/158237/Pass-parameters-to-Web-API-in-ASPNet/http://www.aspforums.net/Threads/158237/Pass-parameters-to-Web-API-in-ASPNet/Tue, 09 Sep 2014 03:21:55 GMTPass data from one server to another server with webservice using C# and VB.Net in ASP.Net<p>Hiii,</p> <p>I am newer to webservice concept in .net.</p> <p>I want to pass data from application1 (Server1) to application2 (Server2) using webservice.</p> <p>&nbsp;</p>http://www.aspforums.net/Threads/142982/Pass-data-from-one-server-to-another-server-with-webservice-using-C-and-VBNet-in-ASPNet/http://www.aspforums.net/Threads/142982/Pass-data-from-one-server-to-another-server-with-webservice-using-C-and-VBNet-in-ASPNet/Fri, 08 Sep 2017 05:02:12 GMTMy ASP.NET Web application did not make use of the HTTP Strict Transport Security (HSTS) mechanism<p><strong>Hi</strong></p> <p><strong>My ASP.NET Web application did not make use of the HTTP Strict Transport Security (HSTS) mechanism. </strong></p> <p><strong>This could potentially expose users to Man in the Middle (MitM) attacks. </strong></p> <p><em>When a web application uses HSTS, it specifies that users must connect using HTTPS and that communication should cease if there are any errors in the certificate chain. </em></p> <p><em>In this way, users are prevented from clicking through certificate errors or accessing the application over a compromised channel.</em></p> <p><strong>How to implement HSTS</strong></p> <p><strong>How Can I Prevent exposing users to Man in the Middle (MitM) attacks?</strong></p>http://www.aspforums.net/Threads/530919/My-ASPNET-Web-application-did-not-make-use-of-the-HTTP-Strict-Transport-Security-HSTS-mechanism/http://www.aspforums.net/Threads/530919/My-ASPNET-Web-application-did-not-make-use-of-the-HTTP-Strict-Transport-Security-HSTS-mechanism/Tue, 04 Jul 2017 03:50:30 GMT