If I say you to cut a paper of dimension 5m by 5m then surely you would do that. But then I ask you to cut 1000 paper of the same dimension. Then you won't do the measuring for 1000 times, obviously you would make a frame of 5m by 5m and then with the help of it you would be able to cut 1000 papers in less time. So, what you did is you made a framewok which would do that type of task. So, instead of performing same type of task again and again for same type of applications, what you do is you create a framework having all those facilities together in one nice packet and hence providing the abstraction for your application and more importantly many applications.
Can anyone please provide a same way example about library.
“That which does not kill us makes us stronger.” ― Friedrich Nietzsche
Dim FileName AsString = System.IO.Path.GetFileName(FileUploadBenGrid.PostedFile.FileName)
Dim FilePath AsString = System.IO.Path.GetFullPath((FileUploadBenGrid.PostedFile.FileName))
'Read file into a stream
Dim fs As FileStream = New FileStream(FilePath, FileMode.Open, FileAccess.Read)
Dim br As BinaryReader = New BinaryReader(fs)
Dim bytes AsByte() = br.ReadBytes(Convert.ToInt32(fs.Length))
Select a file to upload
I'm hoping someone here can help me. I have been asked by a business unit in my company to find the cause of why a dotNet program cannot run on a certain Dell model laptop. It runs fine on a newly image laptop of all different Dell model of laptops and desktop, but for some reason on a Dell M8600 it fails to open. The M8600 has the same .Net 4.5.2 install. Could there be a missing driver that is needed to load a dotNet executable?
I'm sorry if any of my statements don't make sense. I'm not a programmer or scripter. So I am way out of my comfort zone here. I am completely loss as what could be the reason why the program is failing on a particular model of laptop.
I was told that the program was written in dotNet 4.0. I'll get the error message and application event logs tomorrow when I go back into the office.
This is from the detail error message when the application is opened:
Problem Event Name: CLR20r3
Problem Signature 01: SPAAR.exe
Problem Signature 02: 220.127.116.11
Problem Signature 03: 54216f68
Problem Signature 04: SPAAR
Problem Signature 05: 18.104.22.168
Problem Signature 06: 54216f68
Problem Signature 07: df
Problem Signature 08: 71
Problem Signature 09: System.NullReferenceException
OS Version: 6.1.7601.2.1.0.256.4
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.NullReferenceException
at SPAAR.Form1.Form1_SizeChanged(System.Object, System.EventArgs)
at System.Windows.Forms.Control.UpdateBounds(Int32, Int32, Int32, Int32, Int32, Int32)
at System.Windows.Forms.Control.UpdateBounds(Int32, Int32, Int32, Int32)
at System.Windows.Forms.Control.SetBoundsCore(Int32, Int32, Int32, Int32, System.Windows.Forms.BoundsSpecified)
at System.Windows.Forms.Form.SetBoundsCore(Int32, Int32, Int32, Int32, System.Windows.Forms.BoundsSpecified)
at System.Windows.Forms.Control.ScaleControl(System.Drawing.SizeF, System.Windows.Forms.BoundsSpecified)
at System.Windows.Forms.ScrollableControl.ScaleControl(System.Drawing.SizeF, System.Windows.Forms.BoundsSpecified)
at System.Windows.Forms.Form.ScaleControl(System.Drawing.SizeF, System.Windows.Forms.BoundsSpecified)
at System.Windows.Forms.Control.ScaleControl(System.Drawing.SizeF, System.Drawing.SizeF, System.Windows.Forms.Control)
at System.Windows.Forms.ContainerControl.Scale(System.Drawing.SizeF, System.Drawing.SizeF, System.Windows.Forms.Control)
at System.Windows.Forms.ContainerControl.PerformAutoScale(Boolean, Boolean)
The exception, "System.NullReferenceException", says that you're trying to get/set a property of call a method on an object that your code is ASSUMING exists, but doesn't. You're not checking for the existence of the object you're trying to do something with before you try and use it.
Somewhere in the method "Form1_SizeChanged", you goofed.
Thank you. The client in question has 4.5 installed. Would it fix the issue if I uninstall 4.5.2 and installed 4.0? I tried that and it didn't work so don't know if I correctly uninstall 4.5.2 completely.
It should never be necessary to "uninstall" a particular version because they can all co-exist.
You just need to insure that the app you are trying to run has a compatible framework installed.
Leave 4.5 alone and install the 4.0 frameworks from the Microsoft sites. Try the "full" 4.0 framework; if that doesn't work, try the "client profile" (though that probably won't make a difference if the "full" 4.0 doesn't work).
Though the log doesn't seem to reflect it, the app could be trying to use something else that is missing if the app install you were given was incomplete; e.g. SQL Server CE dll's; 3rd party libraries).
The person who created the app should really be involved.
I have a VB.NET winforms application which I distribute from my website and recently I am getting some issues reported which may be a build problem. The computer I use to create the application and installer (I use Inno Setup) is windows 7 with a .NET 4.5 framework and built with VS 2013. My application only targets the .NET 3.5 framework. The computer I used to build the application with used VS2008 but since I migrated to vs2013 there are some weird graphical problems, such as GDI not working properly (some lines are not being drawn properly), some file location issues and problems with My.Settings.
Incidentally, I have vs2010 installed where I work and that doesn't have any problems.
Any help would be greatly appreciated. I don't really want to go back to vs2008 but I will if it's the only option.
i am working on windows based application need help can anyone tell how to generate Licence key for my application to specific machine(means if install my application setup on one system then user can not install this application setup to another machine).
This is my code but this code is not working,that means it
not displaying data from tables in Grid view.
public partial class _Default : System.Web.UI.Page
String a, b;
I have came across a requirement, where converting a traditional excel application (with 7-8 diff sheets and each sheet with 50k cells and lots of macros / tables in it) into a web application.
Can any one suggest me which is the best way of doing this in .net, where I have to resemble the application just like the excel sheet. Here the challenging part is importing all the data, formulea and the macros into the web application, and have the luxury of SQL server as well for data. The JSON data of each sheet along with formulas and values is coming around 4mb.
Your suggestion are valuable and very much appreciated.