<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2828163964319393429</id><updated>2011-11-27T16:46:05.624-08:00</updated><category term='transparent window'/><category term='SecurityZone'/><category term='Appdomain'/><category term='javascript'/><category term='CreateInstanceAndUnwrap'/><category term='modal dialog'/><category term='div'/><category term='asp.net'/><category term='modal popup'/><category term='ModalPopup Extender'/><category term='.Net Framework 3.5 installation failure'/><category term='Microsoft .NET Framework 3.0a: [2] Error: Installation failed for component Microsoft .NET Framework 3.0a. MSI returned error code 1603'/><category term='AppdomainSetup'/><category term='How Do I: Create an Efficient and Standardized Approach for Implementing CSS Styles?'/><category term='impersonation'/><category term='delegation'/><category term='web.config'/><title type='text'>Microsoft .Net For All</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://loadingappdomainassebly.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2828163964319393429/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://loadingappdomainassebly.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>India</name><uri>http://www.blogger.com/profile/05704889564730063667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2828163964319393429.post-7939907933872912440</id><published>2010-02-23T01:06:00.001-08:00</published><updated>2010-02-23T01:06:52.450-08:00</updated><title type='text'>Web Compatibility and Performance Testing in a Multi-Browser World</title><content type='html'>Check out this SlideShare Presentation: &lt;div style="width:425px;text-align:left" id="__ss_2031831"&gt;&lt;a style="font:14px Helvetica,Arial,Sans-serif;display:block;margin:12px 0 3px 0;text-decoration:underline;" href="http://www.slideshare.net/Gomez_Inc/web-compatibility-and-performance-testing-in-a-multibrowser-world" title="Web Compatibility and Performance Testing in a Multi-Browser World"&gt;Web Compatibility and Performance Testing in a Multi-Browser World&lt;/a&gt;&lt;object style="margin:0px" width="425" height="355"&gt;&lt;param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=tae2009bbreweredits-090921103734-phpapp02&amp;stripped_title=web-compatibility-and-performance-testing-in-a-multibrowser-world" /&gt;&lt;param name="allowFullScreen" value="true"/&gt;&lt;param name="allowScriptAccess" value="always"/&gt;&lt;embed src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=tae2009bbreweredits-090921103734-phpapp02&amp;stripped_title=web-compatibility-and-performance-testing-in-a-multibrowser-world" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div style="font-size:11px;font-family:tahoma,arial;height:26px;padding-top:2px;"&gt;View more &lt;a style="text-decoration:underline;" href="http://www.slideshare.net/"&gt;presentations&lt;/a&gt; from &lt;a style="text-decoration:underline;" href="http://www.slideshare.net/Gomez_Inc"&gt;Samantha McGarry&lt;/a&gt;.&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2828163964319393429-7939907933872912440?l=loadingappdomainassebly.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://loadingappdomainassebly.blogspot.com/feeds/7939907933872912440/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2828163964319393429&amp;postID=7939907933872912440' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2828163964319393429/posts/default/7939907933872912440'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2828163964319393429/posts/default/7939907933872912440'/><link rel='alternate' type='text/html' href='http://loadingappdomainassebly.blogspot.com/2010/02/web-compatibility-and-performance.html' title='Web Compatibility and Performance Testing in a Multi-Browser World'/><author><name>India</name><uri>http://www.blogger.com/profile/05704889564730063667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2828163964319393429.post-5105636800016596690</id><published>2010-01-15T15:55:00.001-08:00</published><updated>2010-01-15T15:55:41.911-08:00</updated><title type='text'>ASP.NET 4 "Quick Hit" - Chart Control</title><content type='html'>&lt;object style="width:400px;height:338px;" autoupdate="true" data="data:application/x-silverlight-2," type="application/x-silverlight-2"&gt;&lt;param value="2.0.31005.0" name="MinRuntimeVersion"&gt;&lt;param name="source" value="http://www.asp.net/clientbin/mediaplayer/MSCommunities.MediaPlayer.xap"&gt;&lt;param value="videoid=8770" name="InitParams"&gt;&lt;a href="http://go2.microsoft.com/fwlink/?LinkID=114576&amp;amp;v=2.0"&gt;&lt;img style="border-width: 0px;" alt="Install Silverlight" src="http://static.asp.net/themes/silverlight/images/mediaplayer/slplayer_disabled.png" /&gt;&lt;/a&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2828163964319393429-5105636800016596690?l=loadingappdomainassebly.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://loadingappdomainassebly.blogspot.com/feeds/5105636800016596690/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2828163964319393429&amp;postID=5105636800016596690' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2828163964319393429/posts/default/5105636800016596690'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2828163964319393429/posts/default/5105636800016596690'/><link rel='alternate' type='text/html' href='http://loadingappdomainassebly.blogspot.com/2010/01/aspnet-4-quick-hit-chart-control.html' title='ASP.NET 4 &quot;Quick Hit&quot; - Chart Control'/><author><name>India</name><uri>http://www.blogger.com/profile/05704889564730063667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2828163964319393429.post-5507877819983358475</id><published>2010-01-15T15:53:00.000-08:00</published><updated>2010-01-15T15:54:06.788-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='How Do I: Create an Efficient and Standardized Approach for Implementing CSS Styles?'/><title type='text'>How Do I: Create an Efficient and Standardized Approach for Implementing CSS Styles?</title><content type='html'>&lt;object style="width:400px;height:338px;" autoupdate="true" data="data:application/x-silverlight-2," type="application/x-silverlight-2"&gt;&lt;param value="2.0.31005.0" name="MinRuntimeVersion"&gt;&lt;param name="source" value="http://www.asp.net/clientbin/mediaplayer/MSCommunities.MediaPlayer.xap"&gt;&lt;param value="videoid=9433" name="InitParams"&gt;&lt;a href="http://go2.microsoft.com/fwlink/?LinkID=114576&amp;amp;v=2.0"&gt;&lt;img style="border-width: 0px;" alt="Install Silverlight" src="http://static.asp.net/themes/silverlight/images/mediaplayer/slplayer_disabled.png" /&gt;&lt;/a&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2828163964319393429-5507877819983358475?l=loadingappdomainassebly.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://loadingappdomainassebly.blogspot.com/feeds/5507877819983358475/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2828163964319393429&amp;postID=5507877819983358475' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2828163964319393429/posts/default/5507877819983358475'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2828163964319393429/posts/default/5507877819983358475'/><link rel='alternate' type='text/html' href='http://loadingappdomainassebly.blogspot.com/2010/01/how-do-i-create-efficient-and.html' title='How Do I: Create an Efficient and Standardized Approach for Implementing CSS Styles?'/><author><name>India</name><uri>http://www.blogger.com/profile/05704889564730063667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2828163964319393429.post-3930041647376360711</id><published>2008-11-10T10:42:00.000-08:00</published><updated>2008-11-10T10:45:01.303-08:00</updated><title type='text'>Visual Studio 2010 and the .NET Framework 4.0 Week!</title><content type='html'>&lt;iframe src="http://channel9.msdn.com/posts/VisualStudio/442085/player/" frameborder="0" height="325" scrolling="no" width="320"&gt;&lt;/iframe&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2828163964319393429-3930041647376360711?l=loadingappdomainassebly.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://loadingappdomainassebly.blogspot.com/feeds/3930041647376360711/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2828163964319393429&amp;postID=3930041647376360711' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2828163964319393429/posts/default/3930041647376360711'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2828163964319393429/posts/default/3930041647376360711'/><link rel='alternate' type='text/html' href='http://loadingappdomainassebly.blogspot.com/2008/11/visual-studio-2010-and-net-framework-40.html' title='Visual Studio 2010 and the .NET Framework 4.0 Week!'/><author><name>India</name><uri>http://www.blogger.com/profile/05704889564730063667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2828163964319393429.post-2094478188441143041</id><published>2008-09-01T09:15:00.000-07:00</published><updated>2008-09-05T15:08:03.558-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='web.config'/><category scheme='http://www.blogger.com/atom/ns#' term='asp.net'/><category scheme='http://www.blogger.com/atom/ns#' term='SecurityZone'/><category scheme='http://www.blogger.com/atom/ns#' term='impersonation'/><category scheme='http://www.blogger.com/atom/ns#' term='delegation'/><title type='text'>How To: Use Impersonation and Delegation in ASP.NET 2.0</title><content type='html'>For my project I had a typical requirement wherein we were supposed to save PDF file generated on a separate server location which was outside the context of our web-directory. After searching through internet and asking some non-related questions [&lt;a href="http://forums.asp.net/p/1311374/2593394.aspx#2593394"&gt;Please Read&lt;/a&gt;], it clicked me about impersonation and I came across this site. &lt;a href="http://msdn.microsoft.com/en-us/library/ms998351.aspx#paght000023_impersonationdelegation"&gt;Click Here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Its not rocket science to achieve this especially when entire science is encapsulated for you by MS Guy.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Note: &lt;/span&gt;Never impersonate a powerful login id for entire web-site, use it as and when required and remove it. If you do not follow this there's always possibility of malicious code running against that powerful.&lt;br /&gt;&lt;br /&gt;So, what you have to do for impersonation to work is create a less powerful login id and assign it access to shared folder where file needs to be saved and give everyone Read access.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2828163964319393429-2094478188441143041?l=loadingappdomainassebly.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://loadingappdomainassebly.blogspot.com/feeds/2094478188441143041/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2828163964319393429&amp;postID=2094478188441143041' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2828163964319393429/posts/default/2094478188441143041'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2828163964319393429/posts/default/2094478188441143041'/><link rel='alternate' type='text/html' href='http://loadingappdomainassebly.blogspot.com/2008/09/httpmsdnmicrosoftcomen.html' title='How To: Use Impersonation and Delegation in ASP.NET 2.0'/><author><name>India</name><uri>http://www.blogger.com/profile/05704889564730063667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2828163964319393429.post-7412426447660661315</id><published>2008-06-29T03:59:00.000-07:00</published><updated>2008-06-29T04:14:50.456-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.Net Framework 3.5 installation failure'/><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft .NET Framework 3.0a: [2] Error: Installation failed for component Microsoft .NET Framework 3.0a. MSI returned error code 1603'/><title type='text'>.Net Framework 3.5 installation failure</title><content type='html'>I was trying to install VS 2008 and suddenly i stumbled on issue with installation of .Net Framework 3.5. After doing lots of googling, here is my short list of possiblitis that may cause its failure:&lt;br /&gt;&lt;br /&gt;1. Problem might be with installation of 3.0, and you have to install it by running windows in diagnostic mode with Plug and Play, windows installer service and System restore services running.&lt;br /&gt;&lt;br /&gt;2. Then after checking i also found that IIS also had some role to play in installation failure and uninstalled the IIS also.&lt;br /&gt;3. the in stumled upon error 1603. Well, to my rescue came below mentioned forum and vila now things are working fine.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://forums.msdn.microsoft.com/en-US/netfxsetup/thread/5096affe-640a-47a4-a65c-d416bc7f266a/"&gt;http://forums.msdn.microsoft.com/en-US/netfxsetup/thread/5096affe-640a-47a4-a65c-d416bc7f266a/"&gt;&lt;br /&gt;.NET Framework 3.5 installation fails&lt;br /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2828163964319393429-7412426447660661315?l=loadingappdomainassebly.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://loadingappdomainassebly.blogspot.com/feeds/7412426447660661315/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2828163964319393429&amp;postID=7412426447660661315' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2828163964319393429/posts/default/7412426447660661315'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2828163964319393429/posts/default/7412426447660661315'/><link rel='alternate' type='text/html' href='http://loadingappdomainassebly.blogspot.com/2008/06/net-framework-35-installation-failure.html' title='.Net Framework 3.5 installation failure'/><author><name>India</name><uri>http://www.blogger.com/profile/05704889564730063667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2828163964319393429.post-4637876025823021446</id><published>2008-05-09T10:47:00.000-07:00</published><updated>2008-06-29T04:06:35.856-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='modal popup'/><category scheme='http://www.blogger.com/atom/ns#' term='transparent window'/><category scheme='http://www.blogger.com/atom/ns#' term='div'/><category scheme='http://www.blogger.com/atom/ns#' term='ModalPopup Extender'/><category scheme='http://www.blogger.com/atom/ns#' term='modal dialog'/><title type='text'>ModalPopup Extender redefined or not used</title><content type='html'>Hi All,&lt;br /&gt;    There was a project requirement for which I was working and we were required to show the alert message to users based on the entries in database, which means a trip to server and then showing the alert box. For my R&amp;amp;D purpose I decided to create my own modal popup control logic which will not use either AJAX scripts or modal popup extender.&lt;br /&gt;&lt;br /&gt;Most of the things that I've done are already avaiable on web site:&lt;br /&gt;http://weblogs.asp.net/jeff/archive/2006/10/25/Modal_2D00_style-pops-in-Javascript-and-CSS.aspx&lt;br /&gt;&lt;br /&gt;I've not modified the CSS and has been used as it is from above website for this example.&lt;br /&gt;&lt;br /&gt;But my html contents part have been modified so that it can hide the drop-down controls. See Below:&lt;br /&gt;&lt;br /&gt;&amp;lt;asp:panel runat="server" id="pnlMessage"&amp;gt;&lt;br /&gt;    &amp;lt;div id="modalPage"&amp;gt;   &lt;br /&gt;            &amp;lt;div class="modalBackground"&amp;gt;&lt;br /&gt;            &amp;lt;/div&amp;gt;&lt;br /&gt;            &amp;lt;div class="modalContainer"&amp;gt;&lt;br /&gt;                &amp;lt;div class="modal"&amp;gt;&lt;br /&gt;                        &amp;lt;div class="modalTop"&amp;gt;&lt;br /&gt;                            &amp;lt;table&amp;gt;&lt;br /&gt;                                &amp;lt;tr&amp;gt;&lt;br /&gt;                                    &amp;lt;td style="width:80%"&amp;gt;&lt;br /&gt;                                        Warning Message&lt;br /&gt;                                    &amp;lt;/td&amp;gt;&lt;br /&gt;                                    &amp;lt;td style="width:20%"&amp;gt;&lt;br /&gt;                                        &amp;lt;img alt="" src="Images/close.gif" onclick="hideModal('modalPage');" style="cursor:inherit" /&amp;gt;&lt;br /&gt;                                    &amp;lt;/td&amp;gt;&lt;br /&gt;                                &amp;lt;/tr&amp;gt;&lt;br /&gt;                            &amp;lt;/table&amp;gt;&lt;br /&gt;                        &amp;lt;/div&amp;gt;&lt;br /&gt;                        &amp;lt;div class="modalBody" id="modalBody"&amp;gt;                           &lt;br /&gt;                        &amp;lt;/div&amp;gt;&lt;br /&gt;                &amp;lt;/div&amp;gt;&lt;br /&gt;            &amp;lt;/div&amp;gt;&lt;br /&gt;      &amp;lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&amp;gt; &amp;lt;iframe&amp;lt;/span&amp;gt;&lt;br /&gt;&amp;lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&amp;gt;         id="iTestFrame"&amp;lt;/span&amp;gt;&lt;br /&gt;&amp;lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&amp;gt;         class="modalBackground"&amp;lt;/span&amp;gt;&lt;br /&gt;&amp;lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&amp;gt;         &amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;&amp;lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&amp;gt;        &amp;lt;/iframe&amp;gt;&amp;lt;/span&amp;gt;               &lt;br /&gt;    &amp;lt;/div&amp;gt;&lt;br /&gt;    &amp;lt;/asp:Panel&amp;gt;&lt;br /&gt;&lt;br /&gt;I've added on extra Iframe between panel and div tag, so that when my div tag is over drop-down (in IE), it hides them.&lt;br /&gt;&lt;br /&gt;Once this part was done logic needed to be developed to show this div after validating information on postback against database and show appropriate message attached to modalBody div.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt; If ValidateDatabaseInformation Then&lt;br /&gt;                Dim sbScriptBuilder As New System.Text.StringBuilder&lt;br /&gt;                sbScriptBuilder.Append("&lt;script language="'javascript'"&gt;")              &lt;br /&gt;                sbScriptBuilder.Append("document.getElementById('modalPage').style.display = 'block';")&lt;br /&gt;                sbScriptBuilder.Append("document.getElementById('modalPage').style.top = document.body.scrollTop;")&lt;br /&gt;                sbScriptBuilder.Append("document.getElementById('modalBody').innerHTML = '" + ConfigurationManager.AppSettings("WarningMessage").ToString() + "';")&lt;br /&gt;                sbScriptBuilder.Append("&lt;/script&gt;")&lt;br /&gt;&lt;br /&gt;                'register with ClientScript               &lt;br /&gt;                Dim t As Type&lt;br /&gt;                t = Me.GetType()&lt;br /&gt;                If Not ClientScript.IsClientScriptBlockRegistered(t, "PopupScript") Then&lt;br /&gt;                    ScriptManager.RegisterClientScriptBlock(Me, t, "PopupScript", sbScriptBuilder.ToString(), False)&lt;br /&gt;                End If&lt;br /&gt;            End If&lt;br /&gt;        End If&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Once all the codes are in place, you can use it without modal popup extender&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2828163964319393429-4637876025823021446?l=loadingappdomainassebly.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://loadingappdomainassebly.blogspot.com/feeds/4637876025823021446/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2828163964319393429&amp;postID=4637876025823021446' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2828163964319393429/posts/default/4637876025823021446'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2828163964319393429/posts/default/4637876025823021446'/><link rel='alternate' type='text/html' href='http://loadingappdomainassebly.blogspot.com/2008/05/modalpopup-extender-redefined-or-not.html' title='ModalPopup Extender redefined or not used'/><author><name>India</name><uri>http://www.blogger.com/profile/05704889564730063667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2828163964319393429.post-2152394764891903710</id><published>2008-02-02T11:32:00.000-08:00</published><updated>2008-02-02T12:04:00.771-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CreateInstanceAndUnwrap'/><category scheme='http://www.blogger.com/atom/ns#' term='AppdomainSetup'/><category scheme='http://www.blogger.com/atom/ns#' term='SecurityZone'/><category scheme='http://www.blogger.com/atom/ns#' term='Appdomain'/><title type='text'>Loading DLL assembly with AppDomain</title><content type='html'>&lt;span style=";font-family:trebuchet ms;font-size:85%;"  &gt;Loads of time we come across third party components (free or paid subscription) and we use that component and deploy it at client-side (alright i know you would test it, but what if..) and a spammer or hacker identifies the vulnerability in third party component and starts the attack. Wow, client is now catching your throat since its your application that let hacker in and not 3rd party (as your client understands).&lt;br /&gt;&lt;br /&gt;To overcome this risks, MS in .net came with AppDomain (read SDK for more info). Here, I'll show you how you can run a third party component with limited privileges. Before that you need to understand below mentioned classes:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(255, 0, 0);"&gt;I'll not get into explaining all the class, constructors or enums, since there are loads of documents already available, but, explanation will be given whereever required.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;System.Security.policy.Evidence: &lt;/span&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;Evidence is the information that  runtime gathers to identify the group that assembly belongs to. Please refer the constructor of &lt;span style="font-weight: bold;"&gt;Evidence&lt;/span&gt; class. More can be found at &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;/span&gt;&lt;a href="http://msdn2.microsoft.com/en-us/library/system.security.policy.evidence.aspx"&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt; http://msdn2.microsoft.com/en-us/library/system.security.policy.evidence.aspx &lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 153);"&gt;AppDomainSetup: &lt;/span&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;Used to provide configuration information to AppDomain&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;System.Security.SecurityZone: &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;Define the Zone in which asembly will run. Below, are the zones and their explanantions:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;Internet&lt;/span&gt;: Runs with minimal rights&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;Intranet&lt;/span&gt;: runs under local intranet security zone&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;MyComputer&lt;/span&gt;: maximum privileges in this zone&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;NoZone&lt;/span&gt;: you know it&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;Trusted&lt;/span&gt;: Assembly is from trusted zone&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;Untrusted&lt;/span&gt;: assembly is from untrusted zone means location/site&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;I guess enough of blah..blah.., lets get coding&lt;br /&gt;&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(0, 0, 153);font-family:courier new;" &gt;AppDomainSetup &lt;/span&gt;&lt;span style="font-family:courier new;"&gt;setup = new &lt;/span&gt;&lt;span style="color: rgb(0, 0, 153);font-family:courier new;" &gt;AppDomainSetup&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;            setup.ApplicationBase = "file://" + Environment.CurrentDirectory;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;            object [] evidence = { new Zone(SecurityZone.Internet)};&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;            Evidence evidence1 = new Evidence(evidence, null);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;            &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;            AppDomain domain = AppDomain.CreateDomain("Test Domain", evidence1, setup);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;            &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;            ClassLibrary1.LocalAccess la = (ClassLibrary1.LocalAccess)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                    domain.CreateInstanceAndUnwrap(typeof(ClassLibrary1.LocalAccess).Assembly.FullName,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                typeof(ClassLibrary1.LocalAccess).FullName);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;            Console.Write(la.ReadFile());&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;            Console.WriteLine(domain.Id.ToString());&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;            Console.WriteLine(AppDomain.CurrentDomain.Id.ToString());&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;            Console.ReadLine();&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:trebuchet ms;font-size:85%;"  &gt;&lt;span style="color: rgb(0, 0, 153);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="font-style: italic;"&gt;ClassLibrary1.LocalAccess- class just reads some information from a file located on C: drive.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2828163964319393429-2152394764891903710?l=loadingappdomainassebly.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://loadingappdomainassebly.blogspot.com/feeds/2152394764891903710/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2828163964319393429&amp;postID=2152394764891903710' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2828163964319393429/posts/default/2152394764891903710'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2828163964319393429/posts/default/2152394764891903710'/><link rel='alternate' type='text/html' href='http://loadingappdomainassebly.blogspot.com/2008/02/loading-dll-assembly-with-appdomain.html' title='Loading DLL assembly with AppDomain'/><author><name>India</name><uri>http://www.blogger.com/profile/05704889564730063667</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
