|
In Solution Explorer, Check inside Properties folder , there is a files
Assemblyinfo.cs . Open it, check there is a statement
[assembly: AssemblyVersion("1.0.0.0")]
You can change it from here.
Or,
Right Click on Project in Solution Explorer -> Properties -> Select Application Tab ( By Default Selected ) -> Click on Assembly Information Button.
From here you can configure the version.
cheers,
Abhijit
|
|
|
|
|
1) Make sure you've built a "release build"
2) Make sure the target PC has the necessary runtimes. This probably means the .net framework, which isn't installed by default on XP, so you'll need to make sure the user downloads and installs it first.
|
|
|
|
|
Copy pasting the release folder (as I think you are doing) is not the way to deploy a program.
Since you need .net framework (that could be causing the errors)
You might need several dll's that aren't in the release folder (that could also could be causing the errors)
You should add a new project to your solution of the type setup project.
Add your project output to the application folder, maybe add a few shortcuts as you see fit, build that and use the .exe and .msi that it creates to install your program.
Other that this I can't give you more help with the information you provided
|
|
|
|
|
My wild guess would be that the target machine doesn't have .Net Framework installed. But again the error message would be of a great value.
Regards,
Lev
|
|
|
|
|
|
Assuming it's a C# program that sounds like the .net framework isn't installed on the target PC.
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots.
-- Robert Royall
|
|
|
|
|
Hi,
0xc0000135 used to be the magical error code one got when trying to run a .NET app on a machine without (the right version of) .NET
I believe MS finally found a way to produce a more appropriate message; IIRC it is part of some system update.
Anyway, check for .NET presence, it typically can be seen in C:\Windows\Microsoft.NET\Framework
|
|
|
|
|
Can anyone help please!
I am trying to create a list of labels poulated from one textbox, so when i click the button it passes the code to label 1, then label 2, then label 3 etc. I have included the code for a real simple way of doing it, but i dont want a massive list of "if, else if statements", there must be an easier way. Hopefully this makes sense!
namespace WindowsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
label1.Text = "";
label2.Text = "";
}
private void button1_Click(object sender, EventArgs e)
{
if (label1.Text == "")
{
label2.Text = "";
string a = textBox1.Text;
label1.Text = a;
}
else if (label1.Text != "")
{
string a = textBox1.Text;
label2.Text = a;
}
}
}
}
|
|
|
|
|
So basically you want to type some text into a TextBox, and when you click a button it starts at label1 and sets its text, then goes to the next label the next time the button is clicked?
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
yes, but if i only add or click five times, then i only get five labels with populated text.
|
|
|
|
|
Just new up a new label, add it to your forms Controls container, and set its properties as you like them (e.g. get the position and size of the previous label, and use that to set the position of the new one)
|
|
|
|
|
Dave Fitter wrote: I am trying to create a list of labels poulated from one textbox, so when i click the button it passes the code to label 1, then label 2, then label 3 etc. I have included the code for a real simple way of doing it
I didn't get the meeaning of above.
Are you talking abut having a list of Label controls?
Cheers!!
Brij
|
|
|
|
|
I am using the following code to validate date in entered in ASP.NET Textbox using Regular Expression;
<asp:textbox id="TextBox1" runat="server" xmlns:asp="#unknown">
<asp:regularexpressionvalidator id="RegularExpressionValidator1" runat="server" controltovalidate="TextBox1" errormessage="Incorrect format" validationexpression="^(d{0}|(31(?!(Feb|feb|Apr|apr|Jun|jun|Sep|<br mode=" hold=" />sep|Nov|nov)))|((30|29)(?!Feb|feb))|(29(?=Feb|feb(((1[6-9]|[2-9]\<br mode=" xmlns:asp="#unknown">
But its not giving the required output
Guide me pls
|
|
|
|
|
Validate Expression that i used is:
ValidationExpression="^(d{0}|(31(?!(Feb|feb|Apr|apr|Jun|jun|Sep|
sep|Nov|nov)))|((30|29)(?!Feb|feb))|(29(?=Feb|feb(((1[6-9]|[2-9]\
d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00
)))))|(29(?=Feb|feb(((0[48]|[2468][048]|[13579]
[26])|((16|[2468][048]|[3579][26])00)))))|(0?[1-9])|1\d|2[0-8])[/](Jan|jan|feb|Feb|mar|Mar|may|May|apr|Apr|jul|Jul|Jun|jun|Aug|aug|
Oct|oct|Sep|sep|Nov|nov|dec|Dec)[/]((1[6-9]|[2-9]\d)\d{2}|\d{2}|d{0})$"
Date format is dd/mm/yyyy
|
|
|
|
|
Remove the line breaks in the pattern before you paste it in the property in the validation tag.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
I dont have any break tag in validation expression.
I am try bit different logic for validate expression. Hope to resolve the problem soon
|
|
|
|
|
There are line breaks in the code that you posted in the forum. If your code doesn't look like that, what does it look like?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi Guffa,
Thanks for your support.
I have almost done with that issue.
I resolved that problem, testing the solution.
Get back to you soon.
Dinker
|
|
|
|
|
Just some quick things I noticed without attempting to completely comprehend the whole thing.
Assuming the expression works for the conditions you expect, it will not work if someone types in FeB or FEb or FEB, etc. You should consider making the expression case-insensitive. That will also let you make the expression smaller since you only need jan|feb|mar|... instead of two expressions per month.
Also, I don't know what you expect d{0} to do, but my understanding is that it would try to match 0 d characters (which doesn't make any sense)
|
|
|
|
|
May I suggest you use an ISO 8601-compliant format?
And a DateTimePicker (or WebForms equivalent).
|
|
|
|
|
I am using the following command in the post-build event for copying the dll from the target dir to the destination
copy $(TargetDir)\*.exe $(SolutionDir)\Bin\$(ConfigurationName)
copy $(TargetDir)\*.exe.config $(SolutionDir)\Bin\$(ConfigurationName)
when i try to compile the project i am getting the following error
"Error 5 The command "copy D:\src_comp\C1\bin\Debug\\*.exe D:\src_comp\\Bin\Debug
copy D:\src_comp\C2\bin\Debug\\*.exe.config D:\src_comp\\Bin\Debug" exited with code 1. CDC"
Can any one tell me what is going wrong here?
|
|
|
|
|
might be the double slash causing a problem
try changing it to
copy $(TargetDir)*.exe ...
|
|
|
|
|
$(TargetDir) is the directory of the primary output file for the build (defined with drive and path). It should includes the trailing backslash '\'.
|
|
|
|
|
I've just checked one of my projects - $(TargetDir) is "c:\projects\project1\" so the trailing backslash is included. You're trying to resolve the address something like "c:\projects\project1\\*.exe" which isn't valid path.
Make the change the OP stated - it should work.
It definitely isn't definatley
|
|
|
|
|
there's a double slash in the error you reported:
Reddy Prakash wrote: "Error 5 The command "copy D:\src_comp\C1\bin\Debug\\*.exe D:\src_comp\\Bin\Debug
|
|
|
|