Fed up with editing svc details in App.config. Open the editor from the below path
C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin [ In Vista ]
For more details
http://msdn.microsoft.com/en-us/library/ms732009.aspx
HTH
Friday, July 17, 2009
Wednesday, July 15, 2009
The type or namespace name 'DataGrid' does not exist in the namespace 'System.Windows.Controls' (are you missing an assembly reference?)
You can get through this error easily by following the steps given in the below link:
http://www.microsoft.com/downloads/details.aspx?FamilyID=084a1bb2-0078-4009-94ee-e659c6409db0&displaylang=en
Microsoft has released a patch for the system.control.data and system.control.data.design dll's
After you do this the errors will go off.
Still you may not be able to drag and drop the datagrid to the page.
To get rid do the below :
Right click the toolbox and select reset toolbox.
HTH
MJ
http://www.microsoft.com/downloads/details.aspx?FamilyID=084a1bb2-0078-4009-94ee-e659c6409db0&displaylang=en
Microsoft has released a patch for the system.control.data and system.control.data.design dll's
After you do this the errors will go off.
Still you may not be able to drag and drop the datagrid to the page.
To get rid do the below :
Right click the toolbox and select reset toolbox.
HTH
MJ
Monday, July 13, 2009
B.NET Web Experts Meet!
Saturday 20th Jan 07 was so special to all our tech loving people as B.Net organized another mind blowing event [ I should say it as FUNCTION as it was FUN + ACTION ] for the .Net community. The event was scheduled by 2:30 pm at the Microsoft campus. We had three great sessions 1) Web Services by Pooran Prasad 2) Developer’s Overview of the Windows Live Platform. By Kevin D’Souza 3) Latest Infragistics Controls / Q&A by Jason beres, Infragistics, USA.
First session started off on exact time and Pooran gave a very good insight on Web services and he also talked about the job opportunities available in his company.
Lot of people where looking eagerly on Windows Live Platform. Kevin stood out for every one’s expectation. We had fun when he asked about “what people think when someone says Internet?” and when people there unanimously answered Google. A good round of laughter went around there when ever he used the G Word.
Everyone was simply blown when he explained the Windows Live Earth particularly the 3D part and showing the route info of any city. It was great to see how easy to code or bring a live earth feature into our application. Thanks Kevin for the demo.
Next came the session on Infragistics.Jason was simply amazing. He explained how better their tools are when compared with MS default controls. Infragistics Data grid control stands out with tool supporting export to excel, dragging the columns, Multi sorting and much more. We had a nice Q & A session where people gave lot of ideas to Jason by asking whether a particular feature is available with infragistics for e.g. exporting grid data’s to PDF format. I hope even Jason enjoyed the event. Of course none can forget the way he distributed the prize ball to every one in the hall.
Thanks to the B.Net Founders and Organizers for the Saturday event and Thanks to all the speakers on that day. Thanks to all the audience present there as they are very important to make any event live and enjoyable.
Looking forward for more functions like this.
First session started off on exact time and Pooran gave a very good insight on Web services and he also talked about the job opportunities available in his company.
Lot of people where looking eagerly on Windows Live Platform. Kevin stood out for every one’s expectation. We had fun when he asked about “what people think when someone says Internet?” and when people there unanimously answered Google. A good round of laughter went around there when ever he used the G Word.
Everyone was simply blown when he explained the Windows Live Earth particularly the 3D part and showing the route info of any city. It was great to see how easy to code or bring a live earth feature into our application. Thanks Kevin for the demo.
Next came the session on Infragistics.Jason was simply amazing. He explained how better their tools are when compared with MS default controls. Infragistics Data grid control stands out with tool supporting export to excel, dragging the columns, Multi sorting and much more. We had a nice Q & A session where people gave lot of ideas to Jason by asking whether a particular feature is available with infragistics for e.g. exporting grid data’s to PDF format. I hope even Jason enjoyed the event. Of course none can forget the way he distributed the prize ball to every one in the hall.
Thanks to the B.Net Founders and Organizers for the Saturday event and Thanks to all the speakers on that day. Thanks to all the audience present there as they are very important to make any event live and enjoyable.
Looking forward for more functions like this.
How to know a user has administrative rights are not:
Pass on the username, domain and password to check whether user has admin rights are not to the below code.
Open a C# Console Application and copy the below code.
[Code]
using System;
using System.Collections.Generic;
using System.Text;
using System.Net;
using System.Net.Sockets;
using System.Net.Security;
using System.Security.Principal;
namespace WindImperson
{
class Program
{
static void Main(string[] args)
{
WindowsPrincipal wndPrin = LogonUser("username", "domain", "pwd");
Console.WriteLine("Logged on {0}", wndPrin.Identity.Name);
Console.WriteLine(wndPrin.IsInRole(WindowsBuiltInRole.Administrator).ToString());
}
public static WindowsPrincipal LogonUser(string userName, string domain, string password)
{
TcpListener tcpListener = new TcpListener(IPAddress.Loopback, 0);
tcpListener.Start();
WindowsIdentity id = null;
tcpListener.BeginAcceptTcpClient(delegate(IAsyncResult asyncResult)
{
using (NegotiateStream serverSide = new NegotiateStream(
tcpListener.EndAcceptTcpClient(asyncResult).GetStream()))
{
serverSide.AuthenticateAsServer(CredentialCache.DefaultNetworkCredentials,
ProtectionLevel.None, TokenImpersonationLevel.Impersonation);
id = (WindowsIdentity)serverSide.RemoteIdentity;
}
}, null);
using (NegotiateStream clientSide = new NegotiateStream(new TcpClient("localhost",
((IPEndPoint)tcpListener.LocalEndpoint).Port).GetStream()))
{
clientSide.AuthenticateAsClient(new NetworkCredential(userName, password, domain),
"", ProtectionLevel.None, TokenImpersonationLevel.Impersonation);
}
return new WindowsPrincipal(id);
}
}
}
[/ Code]
Open a C# Console Application and copy the below code.
[Code]
using System;
using System.Collections.Generic;
using System.Text;
using System.Net;
using System.Net.Sockets;
using System.Net.Security;
using System.Security.Principal;
namespace WindImperson
{
class Program
{
static void Main(string[] args)
{
WindowsPrincipal wndPrin = LogonUser("username", "domain", "pwd");
Console.WriteLine("Logged on {0}", wndPrin.Identity.Name);
Console.WriteLine(wndPrin.IsInRole(WindowsBuiltInRole.Administrator).ToString());
}
public static WindowsPrincipal LogonUser(string userName, string domain, string password)
{
TcpListener tcpListener = new TcpListener(IPAddress.Loopback, 0);
tcpListener.Start();
WindowsIdentity id = null;
tcpListener.BeginAcceptTcpClient(delegate(IAsyncResult asyncResult)
{
using (NegotiateStream serverSide = new NegotiateStream(
tcpListener.EndAcceptTcpClient(asyncResult).GetStream()))
{
serverSide.AuthenticateAsServer(CredentialCache.DefaultNetworkCredentials,
ProtectionLevel.None, TokenImpersonationLevel.Impersonation);
id = (WindowsIdentity)serverSide.RemoteIdentity;
}
}, null);
using (NegotiateStream clientSide = new NegotiateStream(new TcpClient("localhost",
((IPEndPoint)tcpListener.LocalEndpoint).Port).GetStream()))
{
clientSide.AuthenticateAsClient(new NetworkCredential(userName, password, domain),
"", ProtectionLevel.None, TokenImpersonationLevel.Impersonation);
}
return new WindowsPrincipal(id);
}
}
}
[/ Code]
XAML PART I
XAML [eXtensible Application Markup Language] is used to write WPF applications. XAML files are xml files that generally have the .XAML extension. Developer can create UI stuffs using XAML markup which is separate from code behind files used for business logics.
e.g.
<Button Content = “ZAMMEL is XAML” />
In the above example Button element object directly relates to Button class of WPF.
When you specify an object element tag, you are instructing the XAML loader to create new instance of the named class when your XAML page is either compiled or interpreted.
Note:
If the user wants any class as an object element in XAML, the class must have a public parameterless constructor.
Property Setting Syntax:
Setting Properties in XAML can be done using a variety of syntaxes. Properties can be provided in the form of attributes also. In the Button example Content is a property which is represented as an xml attribute. All the properties cannot be expressed as attribute. We have another syntax called Property element syntax. Syntax is
e.g.
<Button Content="I am XAML" >
<Button.Background >
<SolidColorBrush Color="Aqua"/>
</Button.Background >
</Button>
Here content is represented as attribute syntax and Background is represented as Property element syntax.
Markup extensions are another property writing syntax which is useful when you want to return existing instance. {&} represents markup extensions.
E.g. Binding Markup extension; StaticResource Markup extension.
<Window.Resources>
<local:TestProp x:Key="tp1" />
</Window.Resources >
<TextBox Height="26" Margin="84,75,108,0" Name="textBox1" VerticalAlignment="Top"
Text="{Binding Path=MyColor,Source={StaticResource tp1}}" />
In this case it returns a reference to the MyColor Property that was previously instantiated as a keyed resource in resource dictionary.
Summary:
XAML files are xml files with .XAML extension we can specify the properties as Attribute Syntax, Property Object Element Syntax and Markup extensions.
e.g.
<Button Content = “ZAMMEL is XAML” />
In the above example Button element object directly relates to Button class of WPF.
When you specify an object element tag, you are instructing the XAML loader to create new instance of the named class when your XAML page is either compiled or interpreted.
Note:
If the user wants any class as an object element in XAML, the class must have a public parameterless constructor.
Property Setting Syntax:
Setting Properties in XAML can be done using a variety of syntaxes. Properties can be provided in the form of attributes also. In the Button example Content is a property which is represented as an xml attribute. All the properties cannot be expressed as attribute. We have another syntax called Property element syntax. Syntax is
e.g.
<Button Content="I am XAML" >
<Button.Background >
<SolidColorBrush Color="Aqua"/>
</Button.Background >
</Button>
Here content is represented as attribute syntax and Background is represented as Property element syntax.
Markup extensions are another property writing syntax which is useful when you want to return existing instance. {&} represents markup extensions.
E.g. Binding Markup extension; StaticResource Markup extension.
<Window.Resources>
<local:TestProp x:Key="tp1" />
</Window.Resources >
<TextBox Height="26" Margin="84,75,108,0" Name="textBox1" VerticalAlignment="Top"
Text="{Binding Path=MyColor,Source={StaticResource tp1}}" />
In this case it returns a reference to the MyColor Property that was previously instantiated as a keyed resource in resource dictionary.
Summary:
XAML files are xml files with .XAML extension we can specify the properties as Attribute Syntax, Property Object Element Syntax and Markup extensions.
XAML PART II Contd..
Do you know?
1.
XAML doesn’t allow us to split the content property. It should be continuous.
For example the following is illegal and will not compile.
<Button>
<Button.Content>Hello</Button.content> <Button.content>World<button.content>
</Button>
2.
XAML is case sensitive. All the Object elements, Property Elements and attribute names are case sensitive.
Values of the attributes are not always case sensitve. For example
<button content="HelloWorld" background="green"/>
It depends upon the type-converter behaviour associated with the property that takes the value. In the above example Background=”Green” or “green” is OK
3.
XAML ignores all nonsignificant whitespaces. Spaces will be considered if it’s in content property.
<button content=" HelloWorld" margin="26,59,0,0" background=" aqua " width="90" verticalalignment="Top" horizontalalignment="Left" height="21"/>
If you notice the above example the space surrounding “aqua” will be trimmed whereas space in front of “ Helloworld” will be considered.
4.
XAML files must have only one root element. It should be a well formed XML file and a valid XAML file
How to write inline coding in XAML:
We can write the code either in code behind page or inline. Code behind is recommended as definitely it’s advantageous.
To write an inline code in XAML we have to use x:Code directive along with. Following is the sample for inline coding.
<button content="Hello" click="SayHello">
</button>
<x:code>
<![CDATA[
void SayHello (object sender, RoutedEventArgs e)
{
MessageBox.Show("Hello");
SayMorning();
}
void SayMorning (){
MessageBox.Show("Good Morning");
}
]]>
</x:code>
1.
XAML doesn’t allow us to split the content property. It should be continuous.
For example the following is illegal and will not compile.
<Button>
<Button.Content>Hello</Button.content> <Button.content>World<button.content>
</Button>
2.
XAML is case sensitive. All the Object elements, Property Elements and attribute names are case sensitive.
Values of the attributes are not always case sensitve. For example
<button content="HelloWorld" background="green"/>
It depends upon the type-converter behaviour associated with the property that takes the value. In the above example Background=”Green” or “green” is OK
3.
XAML ignores all nonsignificant whitespaces. Spaces will be considered if it’s in content property.
<button content=" HelloWorld" margin="26,59,0,0" background=" aqua " width="90" verticalalignment="Top" horizontalalignment="Left" height="21"/>
If you notice the above example the space surrounding “aqua” will be trimmed whereas space in front of “ Helloworld” will be considered.
4.
XAML files must have only one root element. It should be a well formed XML file and a valid XAML file
How to write inline coding in XAML:
We can write the code either in code behind page or inline. Code behind is recommended as definitely it’s advantageous.
To write an inline code in XAML we have to use x:Code directive along with
<button content="Hello" click="SayHello">
</button>
<x:code>
<![CDATA[
void SayHello (object sender, RoutedEventArgs e)
{
MessageBox.Show("Hello");
SayMorning();
}
void SayMorning (){
MessageBox.Show("Good Morning");
}
]]>
</x:code>
BizTalk Interview Questions
BizTalk Interview Questions:
1. What is property promotion?
2. What is distinguished Field?
3. What are persistence points?
4. What are the adapters you have worked?
5. What are the challenges you have faced using Soap Adapter?
6. Can you use excel file in File Adapter?
7. Difference between Content Based Routing and Orchestration?
8. What are the communication patterns available in BizTalk?
9. What are the available message types?
10. What is debatching in BizTalk?
11. What is XPath? Benefits?
12. How will you specify delimiters for Flat File?
List of Interview Questions Sites:
http://groups.msn.com/bug-i/biztalkinterviewquestions.msnw
http://www.codeproject.com/useritems/BizTalkInterviewQuestions.asp
http://geekswithblogs.net/sthomas/archive/2005/12/29/64404.aspx
http://biztalkers.blogspot.com/2005/01/biztalk-interview-questions.html
http://www.topxml.com/forum/BizTalk_Interview_Questions/m_3153/tm.htm
http://www.topxml.com/rbnews/BizTalk%20Functoids/re-20587_Biztalk-Server-Interview-Questions.aspx
http://dotnetslackers.com/BizTalk/re-16764_Biztalk_Server_Interview_Questions.aspx
http://biztalkbits.blogspot.com/2005/03/biztalk-2004-interview-questions.html
1. What is property promotion?
2. What is distinguished Field?
3. What are persistence points?
4. What are the adapters you have worked?
5. What are the challenges you have faced using Soap Adapter?
6. Can you use excel file in File Adapter?
7. Difference between Content Based Routing and Orchestration?
8. What are the communication patterns available in BizTalk?
9. What are the available message types?
10. What is debatching in BizTalk?
11. What is XPath? Benefits?
12. How will you specify delimiters for Flat File?
List of Interview Questions Sites:
http://groups.msn.com/bug-i/biztalkinterviewquestions.msnw
http://www.codeproject.com/useritems/BizTalkInterviewQuestions.asp
http://geekswithblogs.net/sthomas/archive/2005/12/29/64404.aspx
http://biztalkers.blogspot.com/2005/01/biztalk-interview-questions.html
http://www.topxml.com/forum/BizTalk_Interview_Questions/m_3153/tm.htm
http://www.topxml.com/rbnews/BizTalk%20Functoids/re-20587_Biztalk-Server-Interview-Questions.aspx
http://dotnetslackers.com/BizTalk/re-16764_Biztalk_Server_Interview_Questions.aspx
http://biztalkbits.blogspot.com/2005/03/biztalk-2004-interview-questions.html
Subscribe to:
Comments (Atom)
