{"id":1773,"date":"2007-11-14T10:49:00","date_gmt":"2007-11-14T10:49:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/cesardelatorre\/2007\/11\/14\/how-to-deploy-your-own-asp-net-application-within-the-same-dynamics-crm-4-0-iis-website\/"},"modified":"2007-11-14T10:49:00","modified_gmt":"2007-11-14T10:49:00","slug":"how-to-deploy-your-own-asp-net-application-within-the-same-dynamics-crm-4-0-iis-website","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/how-to-deploy-your-own-asp-net-application-within-the-same-dynamics-crm-4-0-iis-website\/","title":{"rendered":"How to deploy your own ASP.NET application within the same Dynamics CRM 4.0 IIS WebSite"},"content":{"rendered":"<p><P>There is a common issue when trying to deploy your own ASP.NET application within the same CRM 4.0 IIS WebSite. I mean, If you just go to IIS Manager and create a new ASP.NET app (kind of a virtual directory) for your custom application, you\u2019ll see that you cannot access to your custom application from IE because Titan is running a .NET <B>HttpModule<\/B> (similar to the older <I>ISAPI Filters<\/I> built with C++ :-)). So that .NET <B>HttpModule<\/B> is re-writing the URL depending of the organization (default organization normally.). This is a normal execution because of the multi-tenancy capability of Titan and that is why you are not able to execute your ASP.NET pages from IE. IE is not finding that changed URL. <\/P>\n<P>In fact, that HttpModule is declared within CRM web.config as the following: \n<P><B>&lt;httpModules&gt;<\/B> \n<BLOCKQUOTE>\n<P><B>&lt;add name=&#8221;MapOrg&#8221; type=&#8221;Microsoft.Crm.MapOrgEngine, Microsoft.Crm, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&#8243; \/&gt;<\/B><\/P><\/BLOCKQUOTE>\n<P>So, if you want to deploy and run your custom ASP.NET application within the same IIS WebSite where Titan is running, what you gotta do is to specify within your custom app\u2019s web.config that you want to get rid of that kind of filter (HttpModule). Please, <U>note that I am talking about changing your own custom app&#8217;s web.config. Do not touch CRM 4.0 Web.config, ok?<\/U>. \ud83d\ude09 \n<P>So, if you go to your custom ASP.NET application folder, for instance, it could be the folder called \u201cMyApplication\u201d which I already copied into CRM Titan WebSite, and then you open your own Web.config, if you add the following directives, your clean that CRM filter, so you\u2019ll be able to run your custom app from IE. \n<P>This is what you have to add to your own web.con file: \n<P>&lt;system.web&gt; \n<P><B>&lt;httpModules&gt;<\/B> \n<BLOCKQUOTE>\n<P><B>&lt;clear\/&gt; <\/B><\/P><\/BLOCKQUOTE>\n<P><B>&lt;\/httpModules&gt;<\/B> \n<P>Also, if you are not using any CRM 4.0 Titan assembly within your app, you can also get rid of all the references, adding also the following: \n<P>&lt;assemblies&gt; \n<BLOCKQUOTE>\n<P><B>&lt;clear\/&gt;<\/B><\/P><\/BLOCKQUOTE>\n<BLOCKQUOTE>\n<P><B>&lt;add assembly=&#8221;*&#8221;\/&gt;<\/B><\/P><\/BLOCKQUOTE>\n<P>So!, it wasn\u2019t that complicated, right?. It is&nbsp;nice because&nbsp;what you are changing is just your own custom application files. You are not touching anything internal from CRM 4.0 Titan. \ud83d\ude42<\/P><\/p>\n","protected":false},"excerpt":{"rendered":"<p>There is a common issue when trying to deploy your own ASP.NET application within the same CRM 4.0 IIS WebSite. I mean, If you just go to IIS Manager and create a new ASP.NET app (kind of a virtual directory) for your custom application, you\u2019ll see that you cannot access to your custom application from [&hellip;]<\/p>\n","protected":false},"author":362,"featured_media":12806,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[97],"class_list":["post-1773","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cesardelatorre","tag-titan"],"acf":[],"blog_post_summary":"<p>There is a common issue when trying to deploy your own ASP.NET application within the same CRM 4.0 IIS WebSite. I mean, If you just go to IIS Manager and create a new ASP.NET app (kind of a virtual directory) for your custom application, you\u2019ll see that you cannot access to your custom application from [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/wp-json\/wp\/v2\/posts\/1773","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/wp-json\/wp\/v2\/users\/362"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/wp-json\/wp\/v2\/comments?post=1773"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/wp-json\/wp\/v2\/posts\/1773\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/wp-json\/wp\/v2\/media\/12806"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/wp-json\/wp\/v2\/media?parent=1773"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/wp-json\/wp\/v2\/categories?post=1773"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/wp-json\/wp\/v2\/tags?post=1773"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}