'unable to load content [webcontrol name]. Please contact your systems administrator'
Finding Out What The Actual Problem Is
In order to get to the bottom of what was actually going on, I learned that I needed to modify my main web.config file which is located at:
C:\Inetpub\wwwroot\wss\VirtualDirectories\80
to give me a more useful message.
1) First, I needed to modify the following line that begins with:
SafeMode MaxControls=”200” CallStack=”false” …
And change the CallStack property to “true”
2) Next, I needed to modify the following line:
customErrors mode=”On” /
And change the mode property to “Off”
3) Next, I needed to modify the following line:
compilation batch="false" debug="false"
And change the debug property to "true"
4) I then saved the the web.config file
5) Restarted IIS by executing the IISRESET command in the command prompt
6) Went through the steps of creating the web part page again.
7) I then received a far more useful error, with the first line of the error telling the story:
System.Web.HttpException: The file '/_layouts/ep/[webcontrol name].ascx' does not exist.
The Missing Step
Now knowing that the problem was that my control files didn’t actually exist where SharePoint expected them, I needed to locate the exact path where these files belonged. As it turns out, after searching, the “/_layouts/ep” path is not a physical path on the machine, so I had to find its physical location some other way. How I did this was searching the hard drive for another AX web part that was in the list of webparts that I verified was able to load (so I searched for “ActivitiesListAssociations”). This led me to the physical path of:
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\LAYOUTS\ep
As expected, my custom web control files were not there.
So I copied the .ascx and .ascx.cs files from my project to this path, went through the steps to create the web part page, and web part finally loaded!
Nice article,just a note here that you can get away with this manual workaround by changing code in SysEPdeployment class. refer to EP Devcookbook for details
ReplyDeleteHi..
ReplyDeleteMy requirement is to add new chart control in Dynamics AX web page.. But while adding it in EP web part page its showing the error as "Unable to load content. Please contact your system administrator"
I tried all the way you specified.. But it didn't worked out for me. Will you please tell me whether is there any alternative way to rectify this error?
Thanks
Greatly appreciated. It is great to be able to see what the error is!
ReplyDeleteThanks.
Very nice post. i found it very useful.
ReplyDeletethanks for spending time on it. it has better understanding.
i appreciate for you and very useful this your information
Web Development Dubai
Hi,There is a lot of debate when it concerns the best Web Design Cochin. There are those that think the best business web page design is one filled with all kinds of graphics and data while others will advocate a more sleek and streamlined web page.Thanks......
ReplyDeleteThis is very useful post. Greatly appreciated. It is great to be able to see what the error is! Web Design Manchester
ReplyDeleteGreat information, I really like all your post.
ReplyDeleteWeb and Enterprise Portals
ReplyDeleteIf its useful do not forget to subscribe to get future update on SSRS Reports tips and Ax ERP
if You dont want to subscribe please share with your friends or group to encourage me to post more
But if you will subscribe then you will get update throug email also.
https://www.youtube.com/watch?v=angepuP_ICc
Ax blog
daynamicsaxaptatutorials.blogspot.com
Thanks for share the quality content, Yasir jamal is a team of highly skilled professionals, dedicated to bring out the best designs for your brand. At Dubai web desinger Services page, creativity is taken to new levels as each and every mind here strives to craft your vision into reality.
ReplyDeleteThat's really a marvelous post. This post contains useful information which helps us a lot. I have never seen such a great post. Your wonderful post can inspire a lot and helps us. I visit your website often and share with my friend.
ReplyDeleteNadkaar - Dubai Website Design
I am amazed Thank you SO much for this
ReplyDeletedubai podiatrist
This comment has been removed by the author.
ReplyDeletehelpful content, i was looking for these tips since long, thank you so much for making it easy for me.
ReplyDeleteSEO Dubai
Really an interesting and amazing post. Thanks for sharing this wonderful informative article here. I appreciate your hard work.Website Designing Company Bangalore | Web Development Company Bangalore
ReplyDeleteYour posts are always source of new information for me. Thanks for sharing great posts with us.
ReplyDeleteSEO Dubai
Your post s really useful. Thanks for sharing it.
ReplyDeletePublic Relation company in Dubai
I want to appreciate the efforts you put in while writing this blog. Great posts.
ReplyDeleteAC repair Dubai
Mark Williams is a fully licensed recruitment firm currently focused on fulfilling clients’ needs in; Emiratisation, Financial Services and Information Technology related positions within the United Arab Emirates and the GCC.
ReplyDeleteInformative post. Visit:Web Design Company in Dubai,SEO Agency in Dubai
ReplyDeleteThis is exactly what I needed to read today. Your insights are spot on.
ReplyDeleteSEO, PPC, SMM, Web Design & Development Agency Dubai
Hire a Expert Advocate to Solve Your Family Suit in Pakistan. Our Main Family Services are Given Below:
ReplyDeleteKhula Case in Pakistan
Divorce Procedure
Talaq Procedure
Hire a Quick Process Server Onlinefor Attested and server your legal Papers. We are one of the Best and Top Lawyer for quick Process Server Services.
ReplyDelete