1
Answer

Fix this error

Manuel Joseph

Manuel Joseph

12y
1.3k
1

  Hi,

   How to fix this Error.
Error 2 It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS. E:\TASK\ExpertChart\WebChartDemo\Backup\WebChartDemo\web.config 
Answers (1)
0
Ramesh  Maruthi

Ramesh Maruthi

NA 6.1k 406.1k 9y
total = decimal.TryParse(d1 + d2 + d3 + d4);
 
lblTotal.Text = total.ToString("F");
 
See the below link, it might helps you :
 
https://msdn.microsoft.com/en-us/library/fzeeb5cd%28v=vs.110%29.aspx 
Accepted
0
Israel

Israel

NA 847 111.8k 9y
@Rakesh
0
Rakesh

Rakesh

NA 7.2k 1.5m 9y
aspx:
<asp:TextBox runat="server" ID='txtvalue'></asp:TextBox>
<asp:Button runat="server" ID='btnconvert' Text='Convert'
onclick="btnconvert_Click" /><br />
<asp:Label runat="server" ID='lblResult'></asp:Label>
C#: ---> code on button event
decimal dec = decimal.Parse(txtvalue.Text);
lblResult.Text = dec.ToString();
0
Ramesh  Maruthi

Ramesh Maruthi

NA 6.1k 406.1k 9y
No problem Buddy :)
0
Israel

Israel

NA 847 111.8k 9y
Easy code and quick respond. Thanx!
0
Ramesh  Maruthi

Ramesh Maruthi

NA 6.1k 406.1k 9y
oops remove that line just use the below line
0
Israel

Israel

NA 847 111.8k 9y
@Ramesh,
 
 Your code work very well. But there is something happen.
When I put this line I receive one message error in red color. But the last result its converted in decimal:
totale = decimal.TryParse (d1 + d2 + d3 + d4); 
Error 1 No overload for method 'TryParse' takes 1 arguments