ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.you can not start the application it has already installed in different location<p>I have developed a VB.net application. installing in windows server 2008 to share the application. I use the oneclick install the application. Other users can not use the application.</p> <p>when chick the shortcut, the error say, 'you can not start the application, it has already installed in different location'</p> <p>&nbsp;</p> <p>&nbsp;</p>https://www.aspforums.net:443/Threads/914984/you-can-not-start-the-application-it-has-already-installed-in-different-location/https://www.aspforums.net:443/Threads/914984/you-can-not-start-the-application-it-has-already-installed-in-different-location/Mon, 21 May 2012 09:33:14 GMTWrite to Event Log using Windows Service in C# and VB.Net<p>how to write eventlog in windows servies and where can i get log file</p> <p>and how to use threading</p>https://www.aspforums.net:443/Threads/440844/Write-to-Event-Log-using-Windows-Service-in-C-and-VBNet/https://www.aspforums.net:443/Threads/440844/Write-to-Event-Log-using-Windows-Service-in-C-and-VBNet/Tue, 04 Aug 2015 02:31:08 GMTWinForms Reports using DevExpress Reporting<p>how to make report in windows form using dev express&nbsp;</p>https://www.aspforums.net:443/Threads/195872/WinForms-Reports-using-DevExpress-Reporting/https://www.aspforums.net:443/Threads/195872/WinForms-Reports-using-DevExpress-Reporting/Sun, 14 Aug 2016 06:00:28 GMTWindows Universal Application Error: The app manifest must be valid as per schema<p>Severity Code Description Project File Line Suppression State Error Validation error. error C00CE169: App manifest validation error: The app manifest must be valid as per schema: Line 10, Column 57, Reason: 'CN=#Arun' violates pattern constraint of '(CN|L|O|OU|E|C|S|STREET|T|G|I|SN|DC|SERIALNUMBER|Description|PostalCode|POBox|Phone|X21Address|dnQualifier|(OID\.(0|[1-9][0-9]*)(\.(0|[1-9][0-9]*))+))=(([^,+="&lt;&gt;#;])+|".*")(, ((CN|L|O|OU|E|C|S|STREET|T|G|I|SN|DC|SERIALNUMBER|Description|PostalCode|POBox|Phone|X21Address|dnQualifier|(OID\.(0|[1-9][0-9]*)(\.(0|[1-9][0-9]*))+))=(([^,+="&lt;&gt;#;])+|".*")))*'. The attribute 'Publisher' with value 'CN=#Arun' failed to parse.&nbsp;&nbsp; &nbsp;SecondApp1&nbsp;&nbsp; &nbsp;C:\Users\#Arun\source\repos\SecondApp1\SecondApp1\bin\x64\Debug\AppxManifest.xml&nbsp;</p> <p>What is this error?</p> <pre class="brush: xml">&lt;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&gt; &lt;Package xmlns=&#34;http://schemas.microsoft.com/appx/manifest/foundation/windows10&#34; xmlns:mp=&#34;http://schemas.microsoft.com/appx/2014/phone/manifest&#34; xmlns:uap=&#34;http://schemas.microsoft.com/appx/manifest/uap/windows10&#34; xmlns:genTemplate=&#34;http://schemas.microsoft.com/appx/developer/windowsTemplateStudio&#34; IgnorableNamespaces=&#34;uap mp genTemplate build&#34; xmlns:build=&#34;http://schemas.microsoft.com/developer/appx/2015/build&#34;&gt; &lt;!-- THIS PACKAGE MANIFEST FILE IS GENERATED BY THE BUILD PROCESS. Changes to this file will be lost when it is regenerated. To correct errors in this file, edit the source .appxmanifest file. For more information on package manifest files, see http://go.microsoft.com/fwlink/?LinkID=241727 --&gt; &lt;Identity Name=&#34;677DB45F-2894-43D6-AD52-995494564901&#34; Publisher=&#34;CN=#Arun&#34; Version=&#34;1.0.0.0&#34; ProcessorArchitecture=&#34;x64&#34; /&gt; &lt;mp:PhoneIdentity PhoneProductId=&#34;677DB45F-2894-43D6-AD52-995494564901&#34; PhonePublisherId=&#34;00000000-0000-0000-0000-000000000000&#34; /&gt; &lt;Properties&gt; &lt;DisplayName&gt;SecondApp1&lt;/DisplayName&gt; &lt;PublisherDisplayName&gt;#Arun&lt;/PublisherDisplayName&gt; &lt;Logo&gt;Assets\StoreLogo.png&lt;/Logo&gt; &lt;/Properties&gt; &lt;Dependencies&gt; &lt;TargetDeviceFamily Name=&#34;Windows.Universal&#34; MinVersion=&#34;10.0.17134.0&#34; MaxVersionTested=&#34;10.0.17763.0&#34; /&gt; &lt;PackageDependency Name=&#34;Microsoft.UI.Xaml.2.0&#34; MinVersion=&#34;2.1810.18003.0&#34; Publisher=&#34;CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US&#34; /&gt; &lt;PackageDependency Name=&#34;Microsoft.NET.CoreRuntime.2.1&#34; MinVersion=&#34;2.1.26124.5&#34; Publisher=&#34;CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US&#34; /&gt; &lt;PackageDependency Name=&#34;Microsoft.VCLibs.140.00.Debug&#34; MinVersion=&#34;14.0.27023.1&#34; Publisher=&#34;CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US&#34; /&gt; &lt;/Dependencies&gt; &lt;Resources&gt; &lt;Resource Language=&#34;EN-US&#34; /&gt; &lt;/Resources&gt; &lt;Applications&gt; &lt;Application Id=&#34;App&#34; Executable=&#34;SecondApp1.exe&#34; EntryPoint=&#34;SecondApp1.App&#34;&gt; &lt;uap:VisualElements DisplayName=&#34;ms-resource:AppDisplayName&#34; Square150x150Logo=&#34;Assets\Square150x150Logo.png&#34; Square44x44Logo=&#34;Assets\Square44x44Logo.png&#34; Description=&#34;ms-resource:AppDescription&#34; BackgroundColor=&#34;transparent&#34;&gt; &lt;uap:DefaultTile Wide310x150Logo=&#34;Assets\Wide310x150Logo.png&#34;&gt;&lt;/uap:DefaultTile&gt; &lt;uap:SplashScreen Image=&#34;Assets\SplashScreen.png&#34; /&gt; &lt;/uap:VisualElements&gt; &lt;/Application&gt; &lt;/Applications&gt; &lt;Capabilities&gt; &lt;Capability Name=&#34;internetClient&#34; /&gt; &lt;uap:Capability Name=&#34;enterpriseAuthentication&#34; /&gt; &lt;/Capabilities&gt; &lt;genTemplate:Metadata&gt; &lt;genTemplate:Item Name=&#34;generator&#34; Value=&#34;Windows Template Studio&#34; /&gt; &lt;genTemplate:Item Name=&#34;wizardVersion&#34; Version=&#34;v3.0.19031.2&#34; /&gt; &lt;genTemplate:Item Name=&#34;templatesVersion&#34; Version=&#34;v3.0.19031.2&#34; /&gt; &lt;genTemplate:Item Name=&#34;projectType&#34; Value=&#34;SplitView&#34; /&gt; &lt;genTemplate:Item Name=&#34;framework&#34; Value=&#34;MVVMBasic&#34; /&gt; &lt;genTemplate:Item Name=&#34;platform&#34; Value=&#34;Uwp&#34; /&gt; &lt;/genTemplate:Metadata&gt; &lt;Extensions&gt; &lt;Extension Category=&#34;windows.activatableClass.inProcessServer&#34;&gt; &lt;InProcessServer&gt; &lt;Path&gt;WatsonRegistrationUtility.dll&lt;/Path&gt; &lt;ActivatableClass ActivatableClassId=&#34;WatsonRegistrationUtility.WatsonRegistrationManager&#34; ThreadingModel=&#34;both&#34; /&gt; &lt;/InProcessServer&gt; &lt;/Extension&gt; &lt;Extension Category=&#34;windows.activatableClass.inProcessServer&#34;&gt; &lt;InProcessServer&gt; &lt;Path&gt;CLRHost.dll&lt;/Path&gt; &lt;ActivatableClass ActivatableClassId=&#34;Microsoft.UI.Xaml.Markup.ReflectionXamlMetadataProvider&#34; ThreadingModel=&#34;both&#34; /&gt; &lt;/InProcessServer&gt; &lt;/Extension&gt; &lt;/Extensions&gt; &lt;build:Metadata&gt; &lt;build:Item Name=&#34;TargetFrameworkMoniker&#34; Value=&#34;.NETCore,Version=v5.0&#34; /&gt; &lt;build:Item Name=&#34;VisualStudio&#34; Version=&#34;15.0&#34; /&gt; &lt;build:Item Name=&#34;VisualStudioEdition&#34; Value=&#34;Microsoft Visual Studio Community 2017&#34; /&gt; &lt;build:Item Name=&#34;OperatingSystem&#34; Version=&#34;10.0.16299.15 (WinBuild.160101.0800)&#34; /&gt; &lt;build:Item Name=&#34;Microsoft.Build.AppxPackage.dll&#34; Version=&#34;15.0.28307.104&#34; /&gt; &lt;build:Item Name=&#34;ProjectGUID&#34; Value=&#34;{05296F3B-818F-42DD-AE38-54E642F57CAC}&#34; /&gt; &lt;build:Item Name=&#34;OptimizingToolset&#34; Value=&#34;None&#34; /&gt; &lt;build:Item Name=&#34;TargetRuntime&#34; Value=&#34;Managed&#34; /&gt; &lt;build:Item Name=&#34;Microsoft.Windows.UI.Xaml.Build.Tasks.dll&#34; Version=&#34;10.0.17763.132&#34; /&gt; &lt;build:Item Name=&#34;UseDotNetNativeSharedAssemblyFrameworkPackage&#34; Value=&#34;true&#34; /&gt; &lt;build:Item Name=&#34;MakePri.exe&#34; Version=&#34;10.0.17763.132 (WinBuild.160101.0800)&#34; /&gt; &lt;/build:Metadata&gt; &lt;/Package&gt;</pre> <p>&nbsp;</p>https://www.aspforums.net:443/Threads/116069/Windows-Universal-Application-Error-The-app-manifest-must-be-valid-as-per-schema/https://www.aspforums.net:443/Threads/116069/Windows-Universal-Application-Error-The-app-manifest-must-be-valid-as-per-schema/Wed, 06 Feb 2019 05:29:43 GMTWindows Service Scheduler.cs Code Problem<p>Hi ,</p> <p>&nbsp; &nbsp;This is my Scheduler.cs Code&nbsp;</p> <p>&nbsp;</p> <pre class="brush: csharp"> private Timer timer1 = null; public Scheduler() { InitializeComponent(); } protected override void OnStart(string[] args) { timer1 = new Timer(); this.timer1.Interval = 30000; this.timer1.Elapsed += new System.Timers.ElapsedEventHandler(this.timer1_Tick); this.timer1.Enabled = true; Library.WriteErrorLog(&#34;Service Has Been Started&#34;); } private void timer1_Tick(object sender, ElapsedEventArgs e) { Library.WriteErrorLog(&#34;Timer ticked and some job doing&#34;); sendEmailNotification(); Library.WriteErrorLog(&#34;Timer ticked and some job Completed&#34;); } private bool sendEmailNotification() { bool isSend = false; try { MailMessage message = new MailMessage(); message.To.Add(&#34;xxx@gmail.com&#34;); // if (!string.IsNullOrEmpty(dEmail.CC)) message.CC.Add(&#34;xxxx@gmail.com&#34;); //if (!string.IsNullOrEmpty(dEmail.BCC)) // message.Bcc.Add(dEmail.BCC); message.Subject = &#34;Tezting&#34;; message.Body = &#34;Testing&#34;; message.IsBodyHtml = true; SmtpClient smtp = new SmtpClient(); smtp.Send(message); isSend = true; } catch (Exception ex) { throw (ex); } return isSend; } protected override void OnStop() { timer1.Enabled = false; Library.WriteErrorLog(&#34;Teh window service has been stopped&#34;); }</pre> <p>Problem : In my log file its always printing like beloow:</p> <p>&nbsp;</p> <p>&nbsp;</p> <pre class="brush: csharp">4/6/2016 12:41:23 PMService Has Been Started 4/6/2016 12:41:53 PMTimer ticked and some job doing 4/6/2016 12:42:23 PMTimer ticked and some job doing 4/6/2016 12:42:53 PMTimer ticked and some job doing 4/6/2016 12:43:23 PMTimer ticked and some job doing 4/6/2016 12:43:53 PMTimer ticked and some job doing 4/6/2016 12:44:23 PMTimer ticked and some job doing 4/6/2016 12:44:53 PMTimer ticked and some job doing 4/6/2016 12:45:23 PMTimer ticked and some job doing 4/6/2016 12:45:53 PMTimer ticked and some job doing</pre> <p>its always printing job is doing...but not completed message&nbsp;</p>https://www.aspforums.net:443/Threads/207510/Windows-Service-Schedulercs-Code-Problem/https://www.aspforums.net:443/Threads/207510/Windows-Service-Schedulercs-Code-Problem/Wed, 06 Apr 2016 01:52:43 GMTWindows service run first time then stop<p>my window service is running only once .after that its not scheduling for next time.</p> <pre class="brush: sql">using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Configuration; using System.Data.SqlClient; using System.Data; using GenSQL; namespace Udyog_Bandhu_Service { public class UdyogBandhu { static string SourceConStr = ConfigurationManager.ConnectionStrings[&#34;EODBService&#34;].ConnectionString; static UdyogBandhu() { } public void UpdatePayments() { try { DBHelper SourceDBHelper = new DBHelper(SourceConStr); UPSwpNiveshMitraServices.upswp_niveshmitraservicesSoapClient client = new UPSwpNiveshMitraServices.upswp_niveshmitraservicesSoapClient(); DataTable dtPayment = SourceDBHelper.ExecuteDataTableProc(&#34;PROC_getPaymentDetails_WindowService&#34;, null); if (dtPayment.Rows.Count &gt; 0) { UdyogBandhuService.WriteToFile(&#34;Success : {0}&#34; + dtPayment.Rows.Count); foreach (DataRow item in dtPayment.Rows) { // DataSet ds = client.WGetUBPaymentDetails(Convert.ToString(item[&#34;Control_ID&#34;]), Convert.ToString(item[&#34;Unit_Id&#34;]), Convert.ToString(item[&#34;ServiceID&#34;]), Convert.ToString(item[&#34;passsalt&#34;])); DataSet ds = client.WGetUBPaymentDetails(&#34;UPSWP170000411&#34;, &#34;UPSWP17000041101&#34;, &#34;SC06002&#34;, &#34;fcf18dfd1405fbe78ff459e85e7b96&#34;); if (ds != null &amp;&amp; ds.Tables[0].Rows.Count == 1) { if (Convert.ToString(ds.Tables[0].Rows[0][&#34;Status_Code&#34;]) == &#34;11&#34;) { SqlParameter[] param = new SqlParameter[]{ new SqlParameter(&#34;@Control_ID&#34;,ds.Tables[0].Rows[0][&#34;Control_ID&#34;]), new SqlParameter(&#34;@Unit_Id&#34;,ds.Tables[0].Rows[0][&#34;Unit_Id&#34;]), new SqlParameter(&#34;@Service_ID&#34;,ds.Tables[0].Rows[0][&#34;Service_ID&#34;]), new SqlParameter(&#34;@ProcessIndustryID&#34;,ds.Tables[0].Rows[0][&#34;ProcessIndustryID&#34;]), new SqlParameter(&#34;@ApplicationID&#34;,ds.Tables[0].Rows[0][&#34;ApplicationID&#34;]), new SqlParameter(&#34;@Fee_Amount&#34;,ds.Tables[0].Rows[0][&#34;Fee_Amount&#34;]), new SqlParameter(&#34;@Fee_Status&#34;,ds.Tables[0].Rows[0][&#34;Fee_Status&#34;]), new SqlParameter(&#34;@Transaction_ID&#34;,ds.Tables[0].Rows[0][&#34;Transaction_ID&#34;]), new SqlParameter(&#34;@Transaction_Date&#34;,ds.Tables[0].Rows[0][&#34;Transaction_Date&#34;]), new SqlParameter(&#34;@Transaction_Time&#34;,ds.Tables[0].Rows[0][&#34;Transaction_Time&#34;]), new SqlParameter(&#34;@Transaction_DateTime&#34;,ds.Tables[0].Rows[0][&#34;Transaction_DateTime&#34;]), new SqlParameter(&#34;@Status_Code&#34;,ds.Tables[0].Rows[0][&#34;Status_Code&#34;]), new SqlParameter(&#34;@Remarks&#34;,ds.Tables[0].Rows[0][&#34;Remarks&#34;]), }; DataTable dtResult = SourceDBHelper.ExecuteDataTableProc(&#34;Proc_InsertUpdatePaymentDetails_UB_WindowService&#34;, param); if (dtResult != null &amp;&amp; dtResult.Rows.Count &gt; 0) { if (Convert.ToString(dtResult.Rows[0][&#34;Flag&#34;]) == &#34;1&#34;) { UdyogBandhuService.WriteToFile(&#34;Success Message {0} &#34; + dtResult.Rows[0][&#34;Msg&#34;]); } else { UdyogBandhuService.WriteToFile(&#34;Info Message {0} &#34; + dtResult.Rows[0][&#34;Msg&#34;]); } UdyogBandhuService objser = new UdyogBandhuService(); objser.ScheduleService(); } } } else { UdyogBandhuService.WriteToFile(&#34;Info Message : No Record Found from Udyog Bandhu Service.&#34;); } } } else { UdyogBandhuService.WriteToFile(&#34;Info Message : There is no record found to update from Database.&#34;); } } catch (Exception ex) { UdyogBandhuService.WriteToFile(&#34;ERROR AT {0} &#34; + ex.Message); } } #region WriteToFileLog public static void WriteLog(string log, string type) { try { } catch (Exception ex) { UdyogBandhuService.WriteToFile(&#34;ERROR AT {0} \n Log:&#34; + log + &#34; \n Message:&#34; + ex.Message); } } #endregion } } </pre> <p>&nbsp;</p> <pre class="brush: xml"> &lt;appSettings&gt; &lt;!--&lt;add key =&#34;Mode&#34; value =&#34;DAILY&#34;/&gt;--&gt; &lt;add key=&#34;Mode&#34; value=&#34;Interval&#34; /&gt; &lt;add key=&#34;IntervalMinutes&#34; value=&#34;1&#34; /&gt; &lt;add key=&#34;ScheduledTime&#34; value=&#34;19:01:00&#34; /&gt; &lt;add key=&#34;ScheduledTimes&#34; value=&#34;10:00:00,10:30:00,10:45:00,11:00:00,11:15:00,11:30:00,12:30:00,15:15:00,15:45:00,16:00:00,17:00:00,17:15:00,18:00:00,19:00:00,20:00:00&#34; /&gt; &lt;add key=&#34;ErrorLogPath&#34; value=&#34;C:\\EODB\\ServiceLog.txt&#34;/&gt; &lt;add key=&#34;isAllowed&#34; value=&#34;Y&#34;/&gt; &lt;/appSettings&gt;</pre> <p>&nbsp;</p>https://www.aspforums.net:443/Threads/174935/Windows-service-run-first-time-then-stop/https://www.aspforums.net:443/Threads/174935/Windows-service-run-first-time-then-stop/Wed, 31 Jan 2018 06:04:55 GMTWindows Application Error: Could not load file or assembly Microsoft.Office.Interop.Excel Version12.0.0.0 or one of its dependencies<p>i am getting the foll.error while saving the multiple entries :</p> <p>See the end of this message for details on invoking <br />just-in-time (JIT) debugging instead of this dialog box.<br /><br />************* Exception Text *************<br />System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Office.Interop.Excel, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified.<br />File name: 'Microsoft.Office.Interop.Excel, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'<br />&nbsp;&nbsp; at ExpoDataSystem.ManualEntryForm.saveTemp_Click(Object sender, EventArgs e)<br />&nbsp;&nbsp; at System.Windows.Forms.Control.OnClick(EventArgs e)<br />&nbsp;&nbsp; at System.Windows.Forms.Button.OnClick(EventArgs e)<br />&nbsp;&nbsp; at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)<br />&nbsp;&nbsp; at System.Windows.Forms.Control.WmMouseUp(Message&amp; m, MouseButtons button, Int32 clicks)<br />&nbsp;&nbsp; at System.Windows.Forms.Control.WndProc(Message&amp; m)<br />&nbsp;&nbsp; at System.Windows.Forms.ButtonBase.WndProc(Message&amp; m)<br />&nbsp;&nbsp; at System.Windows.Forms.Button.WndProc(Message&amp; m)<br />&nbsp;&nbsp; at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp; m)<br />&nbsp;&nbsp; at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp; m)<br />&nbsp;&nbsp; at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)<br /><br />WRN: Assembly binding logging is turned OFF.<br />To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.<br />Note: There is some performance penalty associated with assembly bind failure logging.<br />To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].<br /><br /><br /><br />************* Loaded Assemblies *************<br />mscorlib<br />&nbsp;&nbsp;&nbsp; Assembly Version: 4.0.0.0<br />&nbsp;&nbsp;&nbsp; Win32 Version: 4.6.1586.0 built by: NETFXREL2<br />&nbsp;&nbsp;&nbsp; CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll<br />----------------------------------------<br />ExpoDataSystem<br />&nbsp;&nbsp;&nbsp; Assembly Version: 1.0.0.0<br />&nbsp;&nbsp;&nbsp; Win32 Version: 1.0.0.0<br />&nbsp;&nbsp;&nbsp; CodeBase: file:///C:/Users/COMP/Desktop/test/ExpoDataSystem.exe<br />----------------------------------------<br />System.Windows.Forms<br />&nbsp;&nbsp;&nbsp; Assembly Version: 4.0.0.0<br />&nbsp;&nbsp;&nbsp; Win32 Version: 4.6.1586.0 built by: NETFXREL2<br />&nbsp;&nbsp;&nbsp; CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll<br />----------------------------------------<br />System<br />&nbsp;&nbsp;&nbsp; Assembly Version: 4.0.0.0<br />&nbsp;&nbsp;&nbsp; Win32 Version: 4.6.1586.0 built by: NETFXREL2<br />&nbsp;&nbsp;&nbsp; CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll<br />----------------------------------------<br />System.Drawing<br />&nbsp;&nbsp;&nbsp; Assembly Version: 4.0.0.0<br />&nbsp;&nbsp;&nbsp; Win32 Version: 4.6.1586.0 built by: NETFXREL2<br />&nbsp;&nbsp;&nbsp; CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll<br />----------------------------------------<br />Accessibility<br />&nbsp;&nbsp;&nbsp; Assembly Version: 4.0.0.0<br />&nbsp;&nbsp;&nbsp; Win32 Version: 4.6.1586.0 built by: NETFXREL2<br />&nbsp;&nbsp;&nbsp; CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll<br />----------------------------------------<br />System.Data<br />&nbsp;&nbsp;&nbsp; Assembly Version: 4.0.0.0<br />&nbsp;&nbsp;&nbsp; Win32 Version: 4.6.1586.0 built by: NETFXREL2<br />&nbsp;&nbsp;&nbsp; CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll<br />----------------------------------------<br />System.Xml<br />&nbsp;&nbsp;&nbsp; Assembly Version: 4.0.0.0<br />&nbsp;&nbsp;&nbsp; Win32 Version: 4.6.1586.0 built by: NETFXREL2<br />&nbsp;&nbsp;&nbsp; CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll<br />----------------------------------------<br />System.Configuration<br />&nbsp;&nbsp;&nbsp; Assembly Version: 4.0.0.0<br />&nbsp;&nbsp;&nbsp; Win32 Version: 4.6.1586.0 built by: NETFXREL2<br />&nbsp;&nbsp;&nbsp; CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll<br />----------------------------------------<br />System.Core<br />&nbsp;&nbsp;&nbsp; Assembly Version: 4.0.0.0<br />&nbsp;&nbsp;&nbsp; Win32 Version: 4.6.1586.0 built by: NETFXREL2<br />&nbsp;&nbsp;&nbsp; CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll<br />----------------------------------------<br />System.Transactions<br />&nbsp;&nbsp;&nbsp; Assembly Version: 4.0.0.0<br />&nbsp;&nbsp;&nbsp; Win32 Version: 4.6.1586.0 built by: NETFXREL2<br />&nbsp;&nbsp;&nbsp; CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll<br />----------------------------------------<br />System.EnterpriseServices<br />&nbsp;&nbsp;&nbsp; Assembly Version: 4.0.0.0<br />&nbsp;&nbsp;&nbsp; Win32 Version: 4.6.1586.0 built by: NETFXREL2<br />&nbsp;&nbsp;&nbsp; CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll<br />----------------------------------------<br />System.Runtime.Caching<br />&nbsp;&nbsp;&nbsp; Assembly Version: 4.0.0.0<br />&nbsp;&nbsp;&nbsp; Win32 Version: 4.6.1586.0<br />&nbsp;&nbsp;&nbsp; CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Caching/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Runtime.Caching.dll<br />----------------------------------------<br />System.Numerics<br />&nbsp;&nbsp;&nbsp; Assembly Version: 4.0.0.0<br />&nbsp;&nbsp;&nbsp; Win32 Version: 4.6.1586.0 built by: NETFXREL2<br />&nbsp;&nbsp;&nbsp; CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll<br />----------------------------------------<br /><br />************* JIT Debugging *************<br />To enable just-in-time (JIT) debugging, the .config file for this<br />application or computer (machine.config) must have the<br />jitDebugging value set in the system.windows.forms section.<br />The application must also be compiled with debugging<br />enabled.<br /><br />For example:<br /><br />&lt;configuration&gt;<br />&nbsp;&nbsp;&nbsp; &lt;system.windows.forms jitDebugging="true" /&gt;<br />&lt;/configuration&gt;<br /><br />When JIT debugging is enabled, any unhandled exception<br />will be sent to the JIT debugger registered on the computer<br />rather than be handled by this dialog box.</p>https://www.aspforums.net:443/Threads/132626/Windows-Application-Error-Could-not-load-file-or-assembly-MicrosoftOfficeInteropExcel-Version12000-or-one-of-its-dependencies/https://www.aspforums.net:443/Threads/132626/Windows-Application-Error-Could-not-load-file-or-assembly-MicrosoftOfficeInteropExcel-Version12000-or-one-of-its-dependencies/Mon, 27 Aug 2018 05:33:55 GMTWindows Forms: Procedure or function has too many arguments specified.<p>im working with this code;</p> <p>&nbsp;</p> <p><strong>&nbsp;i have stored procedure :</strong></p> <p>&nbsp;</p> <pre class="brush: vb">ALTER PROCEDURE [dbo].[Insert_target] @year_covered int, @region int, @province int, @project int, @municipality varchar(50), @subproject varchar(50), @allocation int, @target_new int, @target_restore int, @target_rehab int, @target_fb int, @target_job int, @idd int output AS BEGIN SET NOCOUNT ON; Insert into tbltarget (year_covered, region, province, municipality, project, subproject, allocation, target_new, target_restore, target_rehab, target_fb, target_job)&nbsp;</pre> <pre class="brush: vb"><span style=&#34;font-size: 9pt;&#34;>values (@year_covered,@region,@province,@municipality,</span><span style=&#34;font-size: 9pt;&#34;> @project,@subproject,@allocation,@target_new,@target_restore,@target_rehab,@target_fb,@target_job)</span></pre> <pre class="brush: vb"> set @idd = scope_identity() return @idd END</pre> <pre class="brush: vb">&nbsp;</pre> <pre class="brush: vb">&nbsp;</pre> <p><strong>My Code :&nbsp;</strong></p> <p>&nbsp;</p> <p>&nbsp;</p> <pre class="brush: vb">For Each lv In ListView1.Items dbCommand.CommandType = CommandType.StoredProcedure dbCommand.CommandText = &#34;Insert_target&#34; dbCommand.Parameters.AddWithValue(&#34;@year_covered&#34;,CInt(ListView1.Items(i).Text.ToString)) dbCommand.Parameters.AddWithValue(&#34;@region&#34;, CInt(REGION)) dbCommand.Parameters.AddWithValue(&#34;@province&#34;, CInt(PROVINCE)) dbCommand.Parameters.AddWithValue(&#34;@municipality&#34;, ListView1.Items(i).SubItems(6).ToString) dbCommand.Parameters.AddWithValue(&#34;@project&#34;, CInt(PROJECT)) dbCommand.Parameters.AddWithValue(&#34;@subproject&#34;, ListView1.Items(i).SubItems(7).ToString) dbCommand.Parameters.AddWithValue(&#34;@allocation&#34;, CInt(ListView1.Items(i).SubItems(8).Text.ToString)) dbCommand.Parameters.AddWithValue(&#34;@target_new&#34;, CInt(ListView1.Items(i).SubItems(9).Text.ToString)) dbCommand.Parameters.AddWithValue(&#34;@target_restore&#34;, CInt(ListView1.Items(i).SubItems(10).Text.ToString)) dbCommand.Parameters.AddWithValue(&#34;@target_rehab&#34;, CInt(ListView1.Items(i).SubItems(11).Text.ToString)) dbCommand.Parameters.AddWithValue(&#34;@target_fb&#34;, CInt(ListView1.Items(i).SubItems(12).Text.ToString)) dbCommand.Parameters.AddWithValue(&#34;@target_job&#34;, CInt(ListView1.Items(i).SubItems(13).Text.ToString)) dbCommand.Parameters.Add(&#34;@idd&#34;, SqlDbType.Int).Direction = ParameterDirection.Output dbCommand.Connection = dbConnection Try dbCommand.ExecuteNonQuery() Dim ids As String = dbCommand.Parameters(&#34;@idd&#34;).Value.ToString Catch ex As Exception MessageBox.Show(ex, MessageBoxButtons.OK, MessageBoxIcon.Information) End Try Next</pre> <p>Im hoping someone could help me... &nbsp;</p>https://www.aspforums.net:443/Threads/397574/Windows-Forms-Procedure-or-function-has-too-many-arguments-specified/https://www.aspforums.net:443/Threads/397574/Windows-Forms-Procedure-or-function-has-too-many-arguments-specified/Tue, 17 Sep 2013 03:46:17 GMTWindows Forms DataGridView has 3 columns but need to insert data for 5 columns<p>Hi</p> <p>I am making a windows application in which user enters details through gridview there are 3 grid view 2 of entering data correctly but 3 gridview size is small so i cant bind all colums there i have bind only 3 columns there are total 5 columns in total&nbsp; is there any way to enter ther remaining columns data .</p>https://www.aspforums.net:443/Threads/213660/Windows-Forms-DataGridView-has-3-columns-but-need-to-insert-data-for-5-columns/https://www.aspforums.net:443/Threads/213660/Windows-Forms-DataGridView-has-3-columns-but-need-to-insert-data-for-5-columns/Tue, 27 Nov 2012 03:24:50 GMTWindows Forms Application Error: Attempted to perform an unauthorized operation<p>I'm trying to write log file once application(winform) start and some oprations going on at background.</p> <p>It's working fine with Visual Studio, but once I create exe file and run it... it gives an error of attempted to perform an unauthorized operation c# winform log file</p> <p>Is there any other way arround to give access of instattion folder once application installed to the user's machine?</p> <p>Here is my code: </p> <pre class="brush: csharp">public SplashScreen() { InitializeComponent(); GrantAccess(); } private void GrantAccess() { try { var path = Path.GetDirectoryName(Application.StartupPath); DirectoryInfo dInfo = new DirectoryInfo(path); DirectorySecurity dSecurity = dInfo.GetAccessControl(); dSecurity.AddAccessRule(new FileSystemAccessRule(new SecurityIdentifier(WellKnownSidType.WorldSid, null), FileSystemRights.FullControl, InheritanceFlags.ObjectInherit | InheritanceFlags.ContainerInherit, PropagationFlags.NoPropagateInherit, AccessControlType.Allow)); dInfo.SetAccessControl(dSecurity); } catch (Exception ex) { Console.WriteLine(ex); Console.ReadLine(); } }</pre> <p><img src="http://imgr.es/42NN" alt="" /></p>https://www.aspforums.net:443/Threads/500369/Windows-Forms-Application-Error-Attempted-to-perform-an-unauthorized-operation/https://www.aspforums.net:443/Threads/500369/Windows-Forms-Application-Error-Attempted-to-perform-an-unauthorized-operation/Wed, 10 Jan 2018 00:18:28 GMTWindows Form Error: Value of Type label cannot be converted to Control in VB.Net<p>Hi Sir</p> <p>I am creating labels dynamically and these labels to the tabpage. My code is:&nbsp;</p> <pre class="brush: vb"> Dim sKeyText As Label = New Label() Dim sKeyValue As Label = New Label() sKeyText.AutoSize = True sKeyText.Location = New Point(67, 610) sKeyText.Text = &#34;Server License Key:&#34; sKeyValue.AutoSize = True sKeyValue.Location = New Point(196, 610) sKeyValue.Text = dr.GetString(&#34;ServerLicencse&#34;) licenseInfoTP.Controls.Add(sKeyText) LicenseInfoTP.Controls.Add(sKeyValue)</pre> <p>It gives me error.The error is <strong>Value of</strong>&nbsp;<strong>Type 'label' cannot be converted to 'Control'.</strong></p> <p>Please help me...</p>https://www.aspforums.net:443/Threads/148221/Windows-Form-Error-Value-of-Type-label-cannot-be-converted-to-Control-in-VBNet/https://www.aspforums.net:443/Threads/148221/Windows-Form-Error-Value-of-Type-label-cannot-be-converted-to-Control-in-VBNet/Thu, 20 Jun 2019 05:52:03 GMTWindows Form Error: Unable to run or unstall the application the application requires that assembly CrystalDecesions.ReportAppSaver.CommonObjectModel<p>getting this error after creating exe file help please...</p> <p>unable to run or unstall the application. the application requires that assembly CrystalDecesions.ReportAppSaver.CommonObjectModel Version 13.0.3500.0 be installed in the Global Assembly Cache (GAC) first. pls help...</p>https://www.aspforums.net:443/Threads/107588/Windows-Form-Error-Unable-to-run-or-unstall-the-application-the-application-requires-that-assembly-CrystalDecesionsReportAppSaverCommonObjectModel/https://www.aspforums.net:443/Threads/107588/Windows-Form-Error-Unable-to-run-or-unstall-the-application-the-application-requires-that-assembly-CrystalDecesionsReportAppSaverCommonObjectModel/Mon, 19 Feb 2018 04:41:09 GMTWindows Form Error: The name HttpUtility does not exist in the current context<p>I am writing sms sending code in the windows form.</p> <p>In web based it is working form but in windows form it is showing me error that httpUtility namespace does not exist.</p> <p>I download the system.web.dll library and added it in my project but inspite adding this library, I m getting the same error message.</p> <p>hereby screenshoot is attached. How to fix it</p> <p><img src="https://i.imgur.com/ocOMPHN.png" alt="https://i.imgur.com/JDkEIjE" /></p>https://www.aspforums.net:443/Threads/192188/Windows-Form-Error-The-name-HttpUtility-does-not-exist-in-the-current-context/https://www.aspforums.net:443/Threads/192188/Windows-Form-Error-The-name-HttpUtility-does-not-exist-in-the-current-context/Mon, 22 Apr 2019 07:16:49 GMTWindows Form Error: The INSERT statement conflicted with the FOREIGN KEY constraint<p>below my code i have two table salesorderAddeidt its is a procedure apply on saleorder table to get value from textboxes,and second table is orderdetail storeprocedure is OrderDetailAddorEdit to get value from datagridvew</p> <p><strong>In window form,error&nbsp;Additional information: The INSERT statement conflicted with the FOREIGN KEY constraint "FK_OrderDetail_SalesOrder". The conflict occurred in database "SilverProduction", table "dbo.SalesOrder", column 'OrderNo'</strong></p> <pre class="brush: csharp"> private void btnSave_Click(object sender, EventArgs e) { if (ValidateMasterDetailForm()) { int _EmpID = 0; using (SqlConnection sqlCon = new SqlConnection(strConnectionString)) { sqlCon.Open(); //Master[SalesOrderAddOrEdit] SqlCommand sqlCmd = new SqlCommand(&#34;SalesOrderAddOrEdit&#34;, sqlCon); sqlCmd.CommandType = CommandType.StoredProcedure; sqlCmd.Parameters.AddWithValue(&#34;@OrderNo&#34;, inEmpID); // sqlCmd.Parameters.AddWithValue(&#34;@UserId&#34;, CType(Me.Session(&#34;UserDetails&#34;), User).UserId); sqlCmd.Parameters.AddWithValue(&#34;@Order_Ref_No&#34;, txtOrderRefNo.Text.Trim()); sqlCmd.Parameters.AddWithValue(&#34;@CustomerID&#34;, Convert.ToInt32(cmbCustomerName.SelectedValue.ToString())); sqlCmd.Parameters.AddWithValue(&#34;@Order_date&#34;, dateTimePicker1.Value); sqlCmd.Parameters.AddWithValue(&#34;@SOpirority&#34;, txtSO.Text.Trim()); sqlCmd.Parameters.AddWithValue(&#34;@Status&#34;, cmbStatus.Text); _EmpID = Convert.ToInt32(sqlCmd.ExecuteScalar()); } //Details using (SqlConnection sqlCon = new SqlConnection(strConnectionString)) { sqlCon.Open(); foreach (DataGridViewRow dgvRow in dgvOrderDetail.Rows) { if (dgvRow.IsNewRow) break; else { SqlCommand sqlCmd = new SqlCommand(&#34;OrderDetailAddOrEdit&#34;, sqlCon); sqlCmd.CommandType = CommandType.StoredProcedure; sqlCmd.Parameters.AddWithValue(&#34;@IDOD&#34;, Convert.ToInt32(dgvRow.Cells[&#34;dgvtxtIDOD&#34;].Value == DBNull.Value ? &#34;0&#34; : dgvRow.Cells[&#34;dgvtxtIDOD&#34;].Value)); sqlCmd.Parameters.AddWithValue(&#34;@OrderNo&#34;, _EmpID); sqlCmd.Parameters.AddWithValue(&#34;@CodeItem&#34;, dgvRow.Cells[&#34;dgvtxtCodeItem&#34;].Value == DBNull.Value ? &#34;&#34; : dgvRow.Cells[&#34;dgvtxtCodeItem&#34;].Value); sqlCmd.Parameters.AddWithValue(&#34;@orderqty&#34;, dgvRow.Cells[&#34;dgvorderqty&#34;].Value == DBNull.Value ? &#34;&#34; : dgvRow.Cells[&#34;dgvorderqty&#34;].Value); sqlCmd.ExecuteNonQuery(); } } } FillEmployeeDataGridView(); Clear(); MessageBox.Show(&#34;Submitted Successfully&#34;); } }</pre> <p>&nbsp;</p> <pre class="brush: sql">USE [SilverProduction] GO /***** Object: StoredProcedure [dbo].[SalesOrderAddOrEdit] Script Date: 06/27/2019 02:20:05 *****/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER Proc [dbo].[SalesOrderAddOrEdit] @OrderNo int, @Order_Ref_No varchar(50), @CustomerID int, @Order_date date, @SOpirority int, @Status varchar(50) AS --Insert IF @OrderNo=0 Begin insert into SalesOrder(Order_Ref_No,CustomerID,Order_date,SOpirority, Status) VALUES( @Order_Ref_No,@CustomerID,@Order_date,@SOpirority, @Status) end --Update Else Begin Update SalesOrder set Order_Ref_No=@OrderNo, CustomerID=@CustomerID, Order_date=@Order_date, SOpirority=@SOpirority, Status=@Status where OrderNo=@OrderNo select @OrderNo; End USE [SilverProduction] GO /***** Object: StoredProcedure [dbo].[OrderDetailAddOrEdit] Script Date: 06/27/2019 02:16:43 *****/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER Proc [dbo].[OrderDetailAddOrEdit] @IDOD int, @OrderNo int, @CodeItem int, @orderqty int As --Insert IF @OrderNo = 0 insert into OrderDetail(OrderNo,CodeItem,orderqty) VALUES( @OrderNo,@CodeItem,@orderqty) --UPDATE ELSE UPDATE OrderDetail SET OrderNo=@OrderNo, CodeItem=@CodeItem, orderqty=@orderqty WHERE IDOD = @IDOD </pre> <p>&nbsp;</p>https://www.aspforums.net:443/Threads/108212/Windows-Form-Error-The-INSERT-statement-conflicted-with-the-FOREIGN-KEY-constraint/https://www.aspforums.net:443/Threads/108212/Windows-Form-Error-The-INSERT-statement-conflicted-with-the-FOREIGN-KEY-constraint/Thu, 27 Jun 2019 12:57:26 GMTWindows Form Error: Could not load file or assembly ClosedXML or one of its dependencies<p>While running in local machine the exe is running properly but when the other system install the error occur. And I have installed closed xml also but occuring the same error.</p> <p><img src="https://i.imgur.com/qBsBq8I.jpg" alt="https://i.ibb.co/7QbxMQg/excel-error.jpg" width="386" height="179" /></p>https://www.aspforums.net:443/Threads/108040/Windows-Form-Error-Could-not-load-file-or-assembly-ClosedXML-or-one-of-its-dependencies/https://www.aspforums.net:443/Threads/108040/Windows-Form-Error-Could-not-load-file-or-assembly-ClosedXML-or-one-of-its-dependencies/Tue, 09 Jul 2019 02:57:18 GMTWindows Form DataGridView ComboBoxColumn does not open DropDown on Click<p>I have datagridview which has comboboxcolumn.But it won't dropping down. My code is:</p> <pre class="brush: vb"> Private Sub returndetailsDGV_CellContentClick(sender As Object, e As DataGridViewCellEventArgs) Handles returndetailsDGV.CellContentClick If e.RowIndex &gt;= 0 Then Dim index As Integer index = e.RowIndex Dim row As DataGridViewRow row = returndetailsDGV.Rows(index) Try returnBillDetailsDGV.DataSource = Nothing dbConnection() sql = &#34;SELECT Product_ID_Barcode,Product_Name,Quantity,Unit_Price,Subtotal,Tax_Amount,ReturnType FROM purchasereturn_transaction_database WHERE Bill_ref_No=&#39;&#34; &amp; row.Cells(0).Value &amp; &#34;&#39;;&#34; cmd = New MySqlCommand(sql, conn) dt = New DataTable da = New MySqlDataAdapter Dim bsource As New BindingSource da.SelectCommand = cmd da.Fill(dt) returnBillDetailsDGV.AutoGenerateColumns = False &#39;Set Columns Count returnBillDetailsDGV.ColumnCount = 7 &#39;Add Columns returnBillDetailsDGV.Columns(0).Name = &#34;Product_ID_Barcode&#34; returnBillDetailsDGV.Columns(0).HeaderText = &#34;Product ID&#34; returnBillDetailsDGV.Columns(0).DataPropertyName = &#34;Product_ID_Barcode&#34; returnBillDetailsDGV.Columns(1).Name = &#34;Product_Name&#34; returnBillDetailsDGV.Columns(1).HeaderText = &#34;Product&#34; returnBillDetailsDGV.Columns(1).DataPropertyName = &#34;Product_Name&#34; returnBillDetailsDGV.Columns(2).Name = &#34;Quantity&#34; returnBillDetailsDGV.Columns(2).HeaderText = &#34;Quantity&#34; returnBillDetailsDGV.Columns(2).DataPropertyName = &#34;Quantity&#34; returnBillDetailsDGV.Columns(3).Name = &#34;Unit_Price&#34; returnBillDetailsDGV.Columns(3).HeaderText = &#34;Unit Price&#34; returnBillDetailsDGV.Columns(3).DataPropertyName = &#34;Unit_Price&#34; returnBillDetailsDGV.Columns(4).Name = &#34;Subtotal&#34; returnBillDetailsDGV.Columns(4).HeaderText = &#34;SubTotal&#34; returnBillDetailsDGV.Columns(4).DataPropertyName = &#34;Subtotal&#34; returnBillDetailsDGV.Columns(5).Name = &#34;Tax_Amount&#34; returnBillDetailsDGV.Columns(5).HeaderText = &#34;Tax_Amount&#34; returnBillDetailsDGV.Columns(5).DataPropertyName = &#34;Tax_Amount&#34; returnBillDetailsDGV.Columns(6).Name = &#34;ReturnType&#34; returnBillDetailsDGV.Columns(6).HeaderText = &#34;ReturnType&#34; returnBillDetailsDGV.Columns(6).DataPropertyName = &#34;ReturnType&#34; Dim Status As New DataGridViewComboBoxColumn Status.Name = &#34;ReturnType&#34; Status.Items.Add(&#34;Yes&#34;) Status.Items.Add(&#34;No&#34;) returnBillDetailsDGV.Columns.Insert(7, Status) bsource.DataSource = dt returnBillDetailsDGV.DataSource = dt Catch ex As MySqlException Dim path1 As String = IO.Path.Combine(My.Application.Info.DirectoryPath, &#34;Errorlogs&#34;) Dim path As String = IO.Path.Combine(My.Application.Info.DirectoryPath, &#34;Errorlogs\Error.txt&#34;) path = getfileName(path) If (Not System.IO.Directory.Exists(path1)) Then System.IO.Directory.CreateDirectory(path1) Using sw = New StreamWriter(path, False) sw.Write(String.Format(&#34;Message:{0}{1}\n Date:{2}{1}------------------------------------------------------------------------&#34;, ex.Message, Environment.NewLine, DateTime.Now.ToString(), Environment.NewLine)) End Using EncryptFile(path, path) MessageBox.Show(&#34;Error is occured! Please get error file at : &#34; + path) Application.Exit() Else Using sw = New StreamWriter(path, False) sw.Write(String.Format(&#34;Message:{0}{1}\n Date:{2}{1}------------------------------------------------------------------------&#34;, ex.Message, Environment.NewLine, DateTime.Now.ToString(), Environment.NewLine)) End Using EncryptFile(path, path) MessageBox.Show(&#34;Error is occured! Please get error file at : &#34; + path) Application.Exit() End If Finally conn.Close() cmd.Dispose() End Try End If End Sub</pre> <p>&nbsp;</p> <p>&nbsp;</p>https://www.aspforums.net:443/Threads/286913/Windows-Form-DataGridView-ComboBoxColumn-does-not-open-DropDown-on-Click/https://www.aspforums.net:443/Threads/286913/Windows-Form-DataGridView-ComboBoxColumn-does-not-open-DropDown-on-Click/Tue, 30 Apr 2019 04:21:16 GMTWindows Form Error: System.IO.FileNotFoundException: Could not find file <p>I create new files in each run manually by giving names of the files to save Ex: filename= "XYZ", file is saved as "XYZ.txt".</p> <p>I combined the root path, and new filename to create. It gives me this error;</p> <pre class="lang-cs prettyprint prettyprinted"><code><span class="typ">System</span><span class="pun">.</span><span class="pln">IO</span><span class="pun">.</span><span class="typ">FileNotFoundException</span><span class="pun">:</span> <span class="str">'Could not find file '</span><span class="pln">C</span><span class="pun">:</span><span class="pln">\Users\Dell\source\repos\SaveReloadDeneme\SaveReloadDeneme\b</span><span class="kwd">in</span><span class="pln">\Debug\Default</span><span class="str">'.'</span></code></pre> <p>at this line</p> <pre class="lang-cs prettyprint prettyprinted"><code><span class="kwd">string</span><span class="pln"> json2 </span><span class="pun">=</span> <span class="typ">File</span><span class="pun">.</span><span class="typ">ReadAllText</span><span class="pun">(</span><span class="pln">path_combined</span><span class="pun">); </span></code></pre> <pre class="brush: csharp"> public partial class Form1 : Form { //FILENAME string input = Interaction.InputBox(&#34;Enter a serial number&#34;, &#34;TEST&#34;, &#34;Default&#34;, -1, -1); //DEFAULT PATH ROOT String root = @&#34;C:\\Users\\Dell\\source\\repos\\SaveReloadDeneme\\SaveReloadDeneme\\bin\\Debug&#34;; Class1 c1 = new Class1();//holds method&#39;s attribute flags Class1 c2 = new Class1(); //holds method flags whether the used or not string path_combined; public Form1() { InitializeComponent(); //default path + new filename path_combined = Path.Combine(root, input); //flag situation string json2 = File.ReadAllText(path_combined); FormatJson(json2); c1 = JsonConvert.DeserializeObject&lt;Class1&gt;(json2); //Method used or not string json = File.ReadAllText(path_combined); FormatJson(json); c2 = JsonConvert.DeserializeObject&lt;Class1&gt;(json); } private static string FormatJson(string json) { dynamic parsedJson = JsonConvert.DeserializeObject(json); return JsonConvert.SerializeObject(parsedJson, Formatting.Indented); }</pre> <p>I don't understand why, can you help me please?</p>https://www.aspforums.net:443/Threads/173968/Windows-Form-Error-SystemIOFileNotFoundException-Could-not-find-file/https://www.aspforums.net:443/Threads/173968/Windows-Form-Error-SystemIOFileNotFoundException-Could-not-find-file/Tue, 23 Jul 2019 02:20:50 GMTWindows Form Error: Invalid Cloumn Name Date in C#<p>&nbsp;Error&nbsp;iNVALID COLUMN NAME DATE</p> <pre class="brush: csharp"> public PrintBillsAll() { InitializeComponent(); } private void btnLoad_Click(object sender, EventArgs e) { using (IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings[&#34;cn&#34;].ConnectionString)) { if (db.State == ConnectionState.Closed) db.Open(); string query = &#34; Select Bill_No , Name, Address, MobileNo,Sl_No,ItemName,Size,Quantity,Rate,Amount,Total_Amount,Payment,Balance,Date&#34; + &#34;from SALES&#34; + $&#34; where Date between &#39;{dtFromDate.Value}&#39; and &#39;{ dtToDate.Value}&#39;&#34;; billinginfoBindingSource.DataSource = db.Query&lt;Billinginfo&gt;(query, commandType: CommandType.Text); } }</pre> <p>&nbsp;</p>https://www.aspforums.net:443/Threads/200102/Windows-Form-Error-Invalid-Cloumn-Name-Date-in-C/https://www.aspforums.net:443/Threads/200102/Windows-Form-Error-Invalid-Cloumn-Name-Date-in-C/Fri, 27 Apr 2018 06:38:00 GMTWindows Form DataGridView CheckBox checked Error: Object cannot be cast from DBNull to other types<p>I have checkbox in datagridview view.</p> <p>It is databound using procedure</p> <p>I want to add items on selection.</p> <p>It works well on first selection and adding.</p> <p>But again when I add error of this type&nbsp;</p> <p>Object cannot cast from dbnull null to other types occur.</p> <p>I use bool isselected</p> <pre class="brush: csharp">foreach (DataGridViewRow row in dgvProductdiscount.Rows) { decimal disc = 0; decimal discper = 0; bool isSelected = false; isSelected = Convert.ToBoolean(row.Cells[&#34;chkbox&#34;].Value); if (isSelected) if ((Convert.ToBoolean(row.Cells[&#34;chkbox&#34;].Value) == true))-----here i get errror { }</pre> <p>&nbsp;</p>https://www.aspforums.net:443/Threads/211401/Windows-Form-DataGridView-CheckBox-checked-Error-Object-cannot-be-cast-from-DBNull-to-other-types/https://www.aspforums.net:443/Threads/211401/Windows-Form-DataGridView-CheckBox-checked-Error-Object-cannot-be-cast-from-DBNull-to-other-types/Tue, 09 Apr 2019 12:04:16 GMTWindows form controlscontainer in asp.Net c#<p>Im new in Windows form application.</p> <p>I want to know that how i can <strong>control the position, size, orientation of the controls/containers</strong> used in windows form, asp.net c#.</p> <p>i.e., 1) On <strong>increasing the form size</strong>, <strong>container/control size also increase</strong> (as per defined)</p> <p>2) On <strong>decreasing the form size</strong>, container/control size <strong>retain in its same orientation</strong> (as per defined)</p> <p>please help me in understanding.</p> <p>please reply.</p>https://www.aspforums.net:443/Threads/784417/Windows-form-controlscontainer-in-aspNet-c/https://www.aspforums.net:443/Threads/784417/Windows-form-controlscontainer-in-aspNet-c/Fri, 27 Dec 2013 02:27:05 GMT