<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Rajakedar Ganta</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/rajakedar_ganta/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/rajakedar_ganta/feed.xml</link>
    <description />
    <lastBuildDate>Sat, 11 Apr 2015 13:29:51 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Unable to find appropriate service endpoint information in the configuration object - Install Reporting Service extension Dynamics AX</title>
      <link>https://docs.microsoft.com/archive/blogs/rajakedar_ganta/unable-to-find-appropriate-service-endpoint-information-in-the-configuration-object-install-reporting-service-extension-dynamics-ax</link>
      <pubDate>Mon, 03 Mar 2014 14:34:00 GMT</pubDate>
      <dc:creator><![CDATA[RajaKedar]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/rajakedar_ganta/2014/03/03/unable-to-find-appropriate-service-endpoint-information-in-the-configuration-object-install-reporting-service-extension-dynamics-ax/</guid>
      <description><![CDATA[When you try to install Reporting Service Extension on Dynamics AX, you might&nbsp;get the following...]]></description>
      <content:encoded><![CDATA[<p>When you try to install Reporting Service Extension on Dynamics AX, you might&nbsp;get the following error.</p>
<p>&nbsp;<strong>"An &nbsp;occurred during setup of Reporting Services extensions. Reason: Unable to find appropriate service endpoint information in the configuration object"</strong></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/5123.report.JPG" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/5123.report.JPG"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/5123.report.JPG" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/5123.report.JPG" alt="" width="629" height="157" border="0" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div style="text-align: justify;">
<p>Why&nbsp;: Because the&nbsp;BI service is not deployed.</p>
<p>Solutions: try the following.</p>
<p>&nbsp; 1. Open AX &gt; System Adminstration &gt; Setup <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Services and AIF &gt; Inbound ports.<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Click on Activate button (select BI Services)&nbsp;</p>
<p>&nbsp;</p>
<p>2. you might want to delete the config file from registry.<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; type regedit in the run command (Ctrl+R)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Go to HKEY_CURRENT_USER\Software\Microsoft\Dynamics\6.0\Configuration\Original<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; select WCFConfig and delete it</p>
<p>&nbsp;</p>
<p>Try to install reporting extension now.</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp; the above registry key will be generated again.</p>
</div>
<div>
<p>Note: missing end point means&nbsp;a port is not opened for reporting services extension. so activating&nbsp;a port BIServices.(AOT &gt; ServiceGroups &gt; Right Click BIServices&gt; deploy) will help</p>
</div>]]></content:encoded>
    </item>
    <item>
      <title>extension pattern in .NET - Decorate the class with attributes</title>
      <link>https://docs.microsoft.com/archive/blogs/rajakedar_ganta/extension-pattern-in-net-decorate-the-class-with-attributes</link>
      <pubDate>Wed, 16 Oct 2013 17:31:00 GMT</pubDate>
      <dc:creator><![CDATA[RajaKedar]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/rajakedar_ganta/2013/10/16/extension-pattern-in-net-decorate-the-class-with-attributes/</guid>
      <description><![CDATA[&nbsp;Consider a simple class hierarchy with an abstract base class and 3 derived classes. A typical...]]></description>
      <content:encoded><![CDATA[<p>&nbsp;Consider a simple class hierarchy with an abstract base class and 3 derived classes. A typical implementation of a factory would be a static method on the base class, like this</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/6786.base.JPG" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/6786.base.JPG"><img style="border: 0px currentColor;" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/6786.base.JPG" original-url="https://blogs.msdn.com/resized-image.ashx/__size/350x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/6786.base.JPG" alt="" width="350" height="161" /></a></p>
<p>&nbsp;</p>
<p><strong>Problem</strong>: The above pattern is bad in different ways</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1. Base classes must have references to the sub classes and that makes it tightly coupled.</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2. Following the Open-Closed principle&nbsp; (open for extension and closed for modification), we do not want to open the code&nbsp;for changes when in future a new class is introduced that derive from the base class.</p>
<p><strong></strong>&nbsp;</p>
<p>I am using the <a href="https://en.wikipedia.org/wiki/Factory_pattern">https://en.wikipedia.org/wiki/Factory_pattern</a></p>
<p><em><span style="font-size: x-small;">The <strong>factory method pattern</strong> is an <a class="mw-redirect" title="Object-oriented" href="https://blogs.msdn.com/wiki/Object-oriented">object-oriented</a> <a title="Creational pattern" href="https://blogs.msdn.com/wiki/Creational_pattern">creational</a> <a class="mw-redirect" title="Design pattern (computer science)" href="https://blogs.msdn.com/wiki/Design_pattern_(computer_science)">design pattern</a> to implement the concept of <a title="Factory (software concept)" href="https://blogs.msdn.com/wiki/Factory_(software_concept)">factories</a> and deals with the problem of creating <a title="Object (computer science)" href="https://blogs.msdn.com/wiki/Object_(computer_science)">objects</a> (products) without specifying the exact <a class="mw-redirect" title="Class (computer science)" href="https://blogs.msdn.com/wiki/Class_(computer_science)">class</a> of object that will be created. The essence of this pattern is to "Define an interface for creating an object, but let the classes that implement the interface decide which class to instantiate. The Factory method lets a class defer instantiation to subclasses."<sup id="cite_ref-1" class="reference"><a href="#cite_note-1">[1]</a></sup>&nbsp;</span></em></p>
<p><strong>Solutions</strong>: to make our pattern loosly coupled and Open-Closed, I prototyped a quick example in .Net using reflection.&nbsp;</p>
<p>we want some like this.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/3324.abstractClass.JPG" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/3324.abstractClass.JPG"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/3324.abstractClass.JPG" original-url="https://blogs.msdn.com/resized-image.ashx/__size/150x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/3324.abstractClass.JPG" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p><strong>Prototype: </strong>I created the following classes</p>
<p>&nbsp;&nbsp;&nbsp; 1. ExtensionClassFactory.cs ----&gt; Implements the Factory</p>
<p>&nbsp;&nbsp; 2. ConnectionAttribute.cs&nbsp;&nbsp;&nbsp;&nbsp; ------&gt; Processes the Attributes that decorate the classes.</p>
<p>&nbsp;&nbsp; 3. Interface with 2 derived classes&nbsp; (IConnection.cs is the interface, Connection1.cs, Connection2.cs are the derived classes)</p>
<p>&nbsp;</p>
<p>Here if you see we are just passing an input to the IConnection interface. Based on the input the corresponding derived class is instantiated.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/2287.test.JPG" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/2287.test.JPG"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/2287.test.JPG" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/2287.test.JPG" alt="" border="0" /></a></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong>RESULT ----&nbsp; "Hi! I am in Connection1" </strong>is read from Connection1.cs</p>
<p>&nbsp;</p>
<p><strong>How is it done: </strong>Implement the following classes.</p>
<p>&nbsp;</p>
<p>1. INTERFACE CLASS - that defined the method implemented by derived classes</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/4846.IConnection.JPG" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/4846.IConnection.JPG"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/4846.IConnection.JPG" original-url="https://blogs.msdn.com/resized-image.ashx/__size/250x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/4846.IConnection.JPG" alt="" border="0" /></a></p>
<p>2. Sample Connection1.cs class that implements derived class1</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/7752.Connection1.JPG" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/7752.Connection1.JPG"><img style="border: 0px currentColor;" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/7752.Connection1.JPG" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/7752.Connection1.JPG" alt="" width="550" height="209" /></a></p>
<p>&nbsp;</p>
<p>3. Sample Connection2.cs classs that implements the derived class 2.</p>
<p>&nbsp;</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/6443.Connection2.JPG" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/6443.Connection2.JPG"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/6443.Connection2.JPG" original-url="https://blogs.msdn.com/resized-image.ashx/__size/350x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/6443.Connection2.JPG" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;4. EXTENSIONFACOTRY - is implemented using REFLECTION to read the attribute that decorates the CLASSES (DERIVED CLASSES</p>
<p>&nbsp; The factory will be given the base class and the attribute value, it will looking for the derived classes and or this attribute type value combination.</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/0247.ExtensionFactory.JPG" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/0247.ExtensionFactory.JPG"><img style="border: 0px currentColor;" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/0247.ExtensionFactory.JPG" original-url="https://blogs.msdn.com/resized-image.ashx/__size/850x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/0247.ExtensionFactory.JPG" alt="" width="850" height="672" /></a></p>
<p>&nbsp;</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/4846.ConnectionAttribute.JPG" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/4846.ConnectionAttribute.JPG"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/4846.ConnectionAttribute.JPG" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/4846.ConnectionAttribute.JPG" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>AX- create Forms using classes</title>
      <link>https://docs.microsoft.com/archive/blogs/rajakedar_ganta/ax-create-forms-using-classes</link>
      <pubDate>Tue, 23 Apr 2013 21:03:00 GMT</pubDate>
      <dc:creator><![CDATA[RajaKedar]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/rajakedar_ganta/2013/04/23/ax-create-forms-using-classes/</guid>
      <description><![CDATA[Design AX Forms:
1. Using AOT. (right click AOT&gt;Forms nodes and add a new form. You add controls...]]></description>
      <content:encoded><![CDATA[<p><span style="font-size: medium;">Design AX Forms:</span></p>
<p style="padding-left: 90px;"><span style="font-size: medium;">1. Using <span style="background-color: #ffff00;">AOT</span>. (right click AOT&gt;Forms nodes and add a new form. You add controls under 'Design' sub node and tables under 'Data Source' subnode)</span></p>
<p style="padding-left: 300px;"><span style="font-size: medium;">OR</span></p>
<p style="padding-left: 90px;"><span style="font-size: medium;">2. Using X++ code to <span style="background-color: #ffff00;">dynamically</span> create and display a form.</span></p>
<p style="padding-left: 90px;">&nbsp;</p>
<p><span style="font-size: medium;"><strong><span style="background-color: #ffff00;">X++ Dynamic Forms:</span></strong>&nbsp;</span></p>
<p style="padding-left: 60px;"><span style="font-size: medium;">1. FORM and FORMRUN classes can be used to create forms using code.</span></p>
<p style="padding-left: 60px;"><span style="font-size: medium;">2.&nbsp; <strong>AOT &gt; System Documentation &gt; Classes</strong> <strong>&gt; &nbsp;Form**</strong> classes - Look here for the list of&nbsp;all the Form Classes.</span></p>
<p style="padding-left: 60px;"><span style="font-size: medium;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>&nbsp;Form Classes categories:</strong></span></p>
<p style="padding-left: 180px;">[1] <span style="font-size: small;"><em>FormBuild</em> Classes are used to design a form in the code.</span></p>
<p style="padding-left: 270px;">ex: <em>FormBuildDataSource, FormBuildDesign, FormBuildGridControl, FormBuildButtonControl, FormBuildStringControl</em></p>
<p style="padding-left: 180px;">[2] <span style="font-size: small;"><em>FormRun</em> Classes are used to control the form elements during the run time.</span></p>
<p style="padding-left: 270px;">ex: <em>FormDataSource, FormDesign, FormTabControl, FormGridControl, FormButtonControl, FormStringControl&nbsp;etc.</em></p>
<p style="padding-left: 240px;">&nbsp;</p>
<p><span style="font-size: medium;"><em><span style="font-size: large;">FormBUILD</span> classes to design a form</em></span></p>
<p style="padding-left: 30px;"><span style="font-size: medium;"><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1. Create a class with Main method.</em></span><em><span style="font-size: medium;">&nbsp;see the example below</span></em></p>
<p style="padding-left: 120px;"><span style="font-size: small;"><em>-Create Form Header, </em></span></p>
<p style="padding-left: 120px;"><span style="font-size: small;"><em>-Add Data Source, </em></span></p>
<p style="padding-left: 120px;"><span style="font-size: small;"><em>-Add elements to Design node. (Add TabControl &gt; Add TabPageControls &gt; Add Grid Button &amp; String Control to the TabPage controls)</em></span></p>
<p style="padding-left: 150px;"><em><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/1884.Form.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/1884.Form.png"><img style="border: 0px currentColor; float: left;" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/1884.Form.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/1050x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/1884.Form.png" alt="" /></a></em></p>
<p>&nbsp; <strong></strong></p>
<p style="padding-left: 30px;"><strong><span style="font-size: medium;">&nbsp;&nbsp;Output before click</span>:</strong></p>
<p style="padding-left: 30px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/4101.Form2.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/4101.Form2.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/4101.Form2.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/4101.Form2.png" alt="" border="0" /></a></p>
<p style="padding-left: 30px;">&nbsp;</p>
<p><span style="font-size: large;"><em>FormRUN</em></span> <span style="font-size: medium;">class: to modify the forms on the fly. </span></p>
<p><span style="font-size: medium;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1. In above example this piece of code will override the&nbsp;Form button control&nbsp;clicked method with a method (method1)&nbsp;defined in our example&nbsp;&nbsp;class (AAClass1).</span></p>
<p style="padding-left: 30px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/8623.form3.JPG" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/8623.form3.JPG"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/8623.form3.JPG" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/8623.form3.JPG" alt="" border="0" /></a></p>
<p style="padding-left: 30px;">&nbsp;</p>
<p style="padding-left: 30px;"><span style="font-size: small;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2. <span style="font-size: medium;">Create a new&nbsp;method in Class '<em><span style="font-size: small;">AAClass1\method1</span></em>'. - when button is clicked 'registerOverrideMethod' will redirect the call to <em>method1</em>. </span></span></p>
<p style="padding-left: 180px;"><span style="font-size: medium;">- Get the handle of the button and find the parent of parent of the button (i.e. TabPage and then Tab control), </span></p>
<p style="padding-left: 180px;"><span style="font-size: medium;">- Add&nbsp;new TabPage control, Add String Control to the new TabPage</span></p>
<p>&nbsp;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/3073.Form4.JPG" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/3073.Form4.JPG"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/3073.Form4.JPG" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/3073.Form4.JPG" alt="" border="0" /></a></p>
<p style="padding-left: 30px;">&nbsp;</p>
<p style="padding-left: 30px;"><span style="font-size: medium;"><strong>Output&nbsp;after click&nbsp;-</strong> when the button 'a' in the above example is clicked. A new Tab Page is created and new String control is added to this TabPage control displaying the first column of the data source.</span></p>
<p style="padding-left: 120px;"><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/5722.Form5.JPG" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/5722.Form5.JPG"><img style="border: 0px currentColor;" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/5722.Form5.JPG" original-url="https://blogs.msdn.com/resized-image.ashx/__size/450x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/5722.Form5.JPG" alt="" width="450" height="532" /></a></strong></p>]]></content:encoded>
    </item>
    <item>
      <title>AX - Views - using AOT morphx</title>
      <link>https://docs.microsoft.com/archive/blogs/rajakedar_ganta/ax-views-using-aot-morphx</link>
      <pubDate>Fri, 29 Mar 2013 19:23:00 GMT</pubDate>
      <dc:creator><![CDATA[RajaKedar]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/rajakedar_ganta/2013/03/29/ax-views-using-aot-morphx/</guid>
      <description><![CDATA[Views in Ax : are used to get data from database that is stored in the memory on the layer in which...]]></description>
      <content:encoded><![CDATA[<p><strong>Views in Ax</strong> : <strong><em>are used to get data from database that is stored in the memory on the layer in which view is instantiated.</em></strong></p>
<p style="padding-left: 90px;">- are like virtual tables that use fields and rows to represent the data record.</p>
<p style="padding-left: 90px;">- data in a View&nbsp;is not stored as data base object but is dynamically created when view is accessed.</p>
<p style="padding-left: 90px;">&nbsp;</p>
<p><strong>Where? </strong>all the places where tables are used.</p>
<p style="padding-left: 30px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <em>&nbsp;Forms&nbsp;; Queries&nbsp;; Reports ; x++ code</em>&nbsp;</p>
<p><strong>Why Views?</strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - Focussed Data (only relevant data by picking the relevant fields)</p>
<p style="padding-left: 90px;">- Customized Data (a single table view from multiple data sources can be created)</p>
<p style="padding-left: 90px;">- Performance (becaused view definition is created&nbsp;compiled; and is better than complex query)</p>
<p style="padding-left: 90px;">&nbsp;</p>
<p><strong>Create a View:</strong></p>
<p style="padding-left: 30px;"><em><strong>AOT &gt; Data Dictionary &gt; Views </strong><em>&lt;right click - new View&gt;</em></em></p>
<p style="padding-left: 210px;"><em>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/7357.View.JPG" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/7357.View.JPG"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/7357.View.JPG" original-url="https://blogs.msdn.com/resized-image.ashx/__size/250x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/7357.View.JPG" alt="" width="144" height="137" border="0" /></a></em></p>
<p style="padding-left: 210px;"><strong>Metadata -</strong>&nbsp; query or data source to get the data. Also called View Query</p>
<p style="padding-left: 210px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong>** </strong>only single table / view / query / map&nbsp;is added&nbsp;to metadata</p>
<p style="padding-left: 270px;">- right click Data Source &gt; New Data Source : select the [properties]&nbsp;tables from the list</p>
<p style="padding-left: 270px;">-&nbsp;or drag and drop the data source (table/view/query/maps)</p>
<p style="padding-left: 270px;">- or in the property on View node [ Query=queryName ] to add a query</p>
<p style="padding-left: 210px;"><strong>Fields -</strong>&nbsp; has data fields of view Small subset of fields</p>
<p style="padding-left: 270px;">[properties]: Dynamic=Yes [all fields in&nbsp;data source&nbsp;are visible]</p>
<p style="padding-left: 270px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = No [can pick selected fields]</p>
<p style="padding-left: 210px;"><strong>Field Groups - </strong>logically group the fields.</p>
<p style="padding-left: 210px;"><strong>Methods - </strong>add new or override method on xRecord class</p>
<p style="padding-left: 210px;">&nbsp;</p>
<p style="padding-left: 60px;">Note: unlike SQL view, AX views are read only.</p>
<p style="padding-left: 60px;">Note2: View created above will generate view definition and store in database. In the SQL management studio you can the view created in AX View.</p>
<p style="padding-left: 60px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/6518.SQL.JPG" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/6518.SQL.JPG"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/6518.SQL.JPG" original-url="https://blogs.msdn.com/resized-image.ashx/__size/250x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/6518.SQL.JPG" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;<strong>Views vs Queries?</strong></p>
<p>&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;View can be created for single data source (table/view/query/map), but if you want to work with multiple data source then use Query.</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;to take performance&nbsp;advantage of view you can add Query to the metadata so that data can be retreived from multiple data sources&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
<p>&nbsp;</p>
<p>How to view: Browse like how you browse a table. <em>Right click</em> <em>ViewName &gt;Add-Ins &gt;Table browser</em></p>
<p>&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>Ax - Create Dynamic Query - using X++</title>
      <link>https://docs.microsoft.com/archive/blogs/rajakedar_ganta/ax-create-dynamic-query-using-x</link>
      <pubDate>Fri, 29 Mar 2013 12:22:00 GMT</pubDate>
      <dc:creator><![CDATA[RajaKedar]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/rajakedar_ganta/2013/03/29/ax-create-dynamic-query-using-x/</guid>
      <description><![CDATA[&nbsp;X++ Dynamic Queries: use Query classes to create dynamic queries.
How? you need the following...]]></description>
      <content:encoded><![CDATA[<p>&nbsp;<strong>X++ Dynamic Queries: </strong>use Query classes to create dynamic queries.</p>
<p style="padding-left: 120px;"><strong>How?</strong> you need the following classes Query; QueryRun; QueryBuildDataSource; QueryBuildRange; QueryBuildLink</p>
<p><strong>CodeSample1: </strong>x++ code to dynamically create a query. verify the results in the Infolog.</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/5633.static2.JPG" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/5633.static2.JPG"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/5633.static2.JPG" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/5633.static2.JPG" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p><strong>CodeSample2:&nbsp;</strong>will show how to create a node on AOT. In the query example I am showing how to generate dynamic query object and use it to construct a node on&nbsp; AOT\Query node.</p>
<p>(also showing how to use macros like #AOT, #QueriesPath)</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/6303.dynamicQuery2.JPG" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/6303.dynamicQuery2.JPG"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/6303.dynamicQuery2.JPG" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/6303.dynamicQuery2.JPG" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>Ax - Create Static Query - using AOT Morphx</title>
      <link>https://docs.microsoft.com/archive/blogs/rajakedar_ganta/ax-create-static-query-using-aot-morphx</link>
      <pubDate>Fri, 29 Mar 2013 12:03:42 GMT</pubDate>
      <dc:creator><![CDATA[RajaKedar]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/rajakedar_ganta/2013/03/29/ax-create-static-query-using-aot-morphx/</guid>
      <description><![CDATA[&nbsp;Queries -&nbsp;a (one)&nbsp;way of retreiving data from the data base.
How to get data in AX:...]]></description>
      <content:encoded><![CDATA[<p style="text-align: center;"><span style="font-size: large; text-decoration: underline;"><em>&nbsp;Queries -&nbsp;a (one)&nbsp;way of retreiving data from the data base.</em></span></p>
<p>How to get data in AX: 1. Views, 2.Queries&nbsp; 3.Select statement.</p>
<p><strong>Why Queries? </strong></p>
<p style="text-align: left; padding-left: 60px;">&nbsp; helps when ranges or values are not known until run time.</p>
<p><strong>Where used? </strong></p>
<p style="padding-left: 60px;"><strong>&nbsp; </strong>in forms + reports + places where data is retreived&nbsp;from multiple data sources.</p>
<p><strong>How to create?</strong></p>
<p><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1. AOT &gt; Queries : </strong>(aka static queries) this node has predefined static queries, and you can add queries (Right Click on AOT\Queries node &gt;Add Query)</p>
<p style="padding-left: 120px;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/7206.staticQuery.JPG" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/7206.staticQuery.JPG"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/7206.staticQuery.JPG" original-url="https://blogs.msdn.com/resized-image.ashx/__size/250x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/7206.staticQuery.JPG" alt="" border="0" /></a></p>
<p style="padding-left: 210px;"><strong>Methods: </strong>customize or override methods of QueryRun class</p>
<p style="padding-left: 210px;"><strong>DataSources</strong>: can be table, map, view --- and each of them can be nested as parent and child</p>
<p style="padding-left: 300px;"><em><strong>Fields</strong></em>: check the Dynamics[property] : Yes mean all fields are displayed; No means you can pick fields</p>
<p style="padding-left: 300px;"><em><strong>Range</strong></em>: to limit records for a given Range expression. ex: "1000" "1000..3000" "&lt;2000" "&gt;=4000" etc</p>
<p style="padding-left: 300px;"><em><strong>GroupBy</strong></em>: only specific field combinations.</p>
<p style="padding-left: 300px;"><em><strong>OrderBy</strong></em>: sort order to sort results. ex: ascending descending.</p>
<p style="padding-left: 300px;"><strong>DataSources</strong>: can nest multiple data sources and link them using <em><strong>relations</strong></em>. (see pic below)</p>
<p style="padding-left: 300px;"><em><strong>Relations</strong></em>: to set the join mode between the tables like Inner, Outer etc.</p>
<p style="padding-left: 300px;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/8764.static1.JPG" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/8764.static1.JPG"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/8764.static1.JPG" original-url="https://blogs.msdn.com/resized-image.ashx/__size/250x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/8764.static1.JPG" alt="" border="0" /></a></p>
<p style="padding-left: 210px;"><strong>Dependent Object: </strong>All AOT nodes that refer the query are displayed here. ex: Forms, reports and other affected objects.</p>
<p style="padding-left: 210px;"><strong>Composite Query:</strong> query based on another query. It is like inheritance. Usually used to override or add further ranges.</p>
<p><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2. x++ dynamic Queries:</strong></p>
<p style="padding-left: 120px;"><strong>check the next blog post.</strong></p>
<p><strong></strong></p>]]></content:encoded>
    </item>
    <item>
      <title>The type initializer for '&lt;Module&gt;' threw an exception</title>
      <link>https://docs.microsoft.com/archive/blogs/rajakedar_ganta/the-type-initializer-for-module-threw-an-exception</link>
      <pubDate>Tue, 12 Jun 2012 18:24:09 GMT</pubDate>
      <dc:creator><![CDATA[RajaKedar]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/rajakedar_ganta/2012/06/12/the-type-initializer-for-module-threw-an-exception/</guid>
      <description><![CDATA[Issue: when you try to launch visual studio throw command prompt you might run into the following...]]></description>
      <content:encoded><![CDATA[<p><strong>Issue: </strong>when you try to launch visual studio throw command prompt you might run into the following error</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/4477.Error.JPG" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/4477.Error.JPG"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/4477.Error.JPG" original-url="https://blogs.msdn.com/resized-image.ashx/__size/350x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/4477.Error.JPG" /></a></p>
<p>&nbsp;</p>
<p><strong>Reason:</strong></p>
<p>Because of conflict with the .Net versions the error is thrown.</p>
<p><strong>Solution</strong>:</p>
<p>Clear the vairable complus_version or set the complus_Version to latest .NET version. In my case I changed from v.2.0.xxxx. to v4.0.30319. you can verify the latest .Net version from the folder&nbsp; C:\Windows\Microsoft.NET\Framework</p>
<p>&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>DllRegisterServer failed with the error code 0x80040201</title>
      <link>https://docs.microsoft.com/archive/blogs/rajakedar_ganta/dllregisterserver-failed-with-the-error-code-0x80040201</link>
      <pubDate>Wed, 06 Jun 2012 21:44:00 GMT</pubDate>
      <dc:creator><![CDATA[RajaKedar]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/rajakedar_ganta/2012/06/06/dllregisterserver-failed-with-the-error-code-0x80040201/</guid>
      <description><![CDATA[&nbsp;
Issue: Often when you try to register a DLL on Win7 or windows server 2008, you run into an...]]></description>
      <content:encoded><![CDATA[<p>&nbsp;</p>
<p><span style="font-size: medium;"><span style="text-decoration: underline;"><strong>Issue</strong></span>: Often when you try to register a DLL on Win7 or windows server 2008, you run into an error </span></p>
<p><span style="font-size: medium; background-color: #ffff99;">&nbsp;&nbsp;&nbsp;&nbsp; "The module scmt.dll was loaded but the call to DllRegisterServer failed with the error code 0x80040201"</span></p>
<p>&nbsp;</p>
<p><span style="font-size: medium;"><span style="text-decoration: underline;"><strong>Why</strong></span>:&nbsp; UAC (user account control) limits the ability to register the DLL. so you have to run the command on elevated command prompt using Admin role.</span></p>
<p>&nbsp;</p>
<p><span style="font-size: medium;"><span style="text-decoration: underline;"><strong>Fix</strong></span>: Run the command in an elevated mode</span></p>
<p><span style="font-size: medium;">&nbsp;&nbsp; 1. Click on Start button &gt;&nbsp;type <strong>Command Prompt &gt;</strong> (right click command prompt and click run as&nbsp;Administrator)</span></p>
<p><span style="font-size: medium;">&nbsp;&nbsp;&nbsp;2. Deregister the DLL using the following command&nbsp;</span></p>
<p><span style="font-size: medium;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cmd&gt; <span style="background-color: #00ff00;">"regsvr32 /u scmt.dll"</span></span></p>
<p><span style="font-size: medium;">&nbsp;&nbsp; 3. Reregister the DLL using the command </span></p>
<p><span style="font-size: medium;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cmd &gt; <span style="background-color: #00ff00;">"regsvr32 scmt.dll"</span></span></p>
<p>&nbsp;&nbsp; you will get the below dialog box.</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/0486.Untitled.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/0486.Untitled.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/0486.Untitled.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/0486.Untitled.png" alt="" border="0" /></a></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
<p>&nbsp;</p>
<p><br />&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>SQL Error: The operation cannot be performed on a database with database snapshots or active DBCC replicas</title>
      <link>https://docs.microsoft.com/archive/blogs/rajakedar_ganta/sql-error-the-operation-cannot-be-performed-on-a-database-with-database-snapshots-or-active-dbcc-replicas</link>
      <pubDate>Fri, 13 Jan 2012 08:21:40 GMT</pubDate>
      <dc:creator><![CDATA[RajaKedar]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/rajakedar_ganta/2012/01/13/sql-error-the-operation-cannot-be-performed-on-a-database-with-database-snapshots-or-active-dbcc-replicas/</guid>
      <description><![CDATA[&nbsp;
Usually Database snapshots provide static view of the source database, and are...]]></description>
      <content:encoded><![CDATA[<p>&nbsp;</p>
<p>Usually Database snapshots provide static view of the source database, and are mostly&nbsp;read only view of the database.&nbsp;&nbsp;</p>
<p>However sometime when you try to restore the database with snapshots&nbsp;we may get the following error SQL&nbsp;message:</p>
<p>Error: <br />"Msg 5094, Level 16, State 2, Line 2<br /><br />The operation cannot be performed on a database with database snapshots or active DBCC replicas.<br /><br />Msg 3013, Level 16, State 1, Line 2<br /><br />RESTORE DATABASE is terminating abnormally."</p>
<p>&nbsp;</p>
<p>Quick FIX:&nbsp;(solution)</p>
<p>&nbsp; 1. Create a new DataBase and then restore the snapshot against it.</p>
<p>&nbsp; 2. Try renaming the database before restoring,</p>
<p>&nbsp;</p>
<p><br />&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>Enable Multiple Desktop sessions for windows 2008 or Windows 7</title>
      <link>https://docs.microsoft.com/archive/blogs/rajakedar_ganta/enable-multiple-desktop-sessions-for-windows-2008-or-windows-7</link>
      <pubDate>Thu, 22 Dec 2011 13:17:00 GMT</pubDate>
      <dc:creator><![CDATA[RajaKedar]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/rajakedar_ganta/2011/12/22/enable-multiple-desktop-sessions-for-windows-2008-or-windows-7/</guid>
      <description><![CDATA[1. Open the Start &gt; All Programs &gt; Administrative tools &gt; Server Manager
&nbsp; You need...]]></description>
      <content:encoded><![CDATA[<p>1. Open the Start &gt; All Programs &gt; Administrative tools &gt; Server Manager</p>
<p>&nbsp; You need to install Terminal Services for multiple session to work. Complete the Wizard all the way till finish and it will prompt you to restart.</p>
<p><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/3157.TerminalServer.JPG" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/3157.TerminalServer.JPG"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/3157.TerminalServer.JPG" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/3157.TerminalServer.JPG" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>2. Click on Start &gt; Run</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Type&nbsp; "gpedit.msc" and click Enter</p>
<p>&nbsp;</p>
<p>3. Launch Local Policy Editor and browse to Computer Configuration &gt; Administrative Templates &gt; Windows Components &gt; Remote Desktop Services &gt; Remote Desktop Session Host &gt; Connection</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Edit the Policy Setting for "Allow users to connect remotely&nbsp;using Remote Desktop Service" and also Edit the "Limit the number of connections"</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/2703.AllowUsr.JPG" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/2703.AllowUsr.JPG"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/71/2703.AllowUsr.JPG" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-40-71/2703.AllowUsr.JPG" alt="" border="0" /></a></p>]]></content:encoded>
    </item>
  </channel>
</rss>