Skip Ribbon Commands
Skip to main content

Ben There, Done That

:

SharePoint Ben > Ben There, Done That > Posts > Custom SharePoint .ASPX form–“Could Not Load Type”
July 08
Custom SharePoint .ASPX form–“Could Not Load Type”

This is starting to get dangerous…I’m blogging about SharePoint development twice in a row.  Again, this may be something very basic to most SharePoint developers, but as I learn, I enjoy blogging about issues I’ve discovered and things I’ve learned as I continue to develop more.

My next venture into SharePoint development is to create some custom .ASPX forms for use within our SharePoint environment.  For our situation, InfoPath Forms Services would make much more sense, unfortunately, we only have SharePoint 2007 Standard with no plans to go to Enterprise.

So, I created a very basic .ASPX file with an equally as simple .cs (code behind file), packaged it all up as solution and deployed it.  However, when I went to access the site, I encounter a “Could Not Load Type…” error.  After a quick search on Google, I found - http://blogs.catapultsystems.com/matthew/archive/2007/12/07/could-not-load-type-error.aspx between that post and the post by Andrew Connell that was referenced there I was able to solve my problem.

When I had created my .aspx file I had failed to use the “5 part name” to reference the assembly file.  I had put Inherits=”NewForm.NewForm” rather than Inherits=”NewForm.NewForm, NewForm, Version=1.0.0.0, Culture=neutral, PublicKeyToken=*********”

As soon as I changed my .aspx file to use the 5 part name and redeployed my solution everything worked perfectly!

 

 Comments

 
 
 
 
 
 
 
 
 
 
 

Glad you liked it. Would you like to share?

Sharing this page …

Thanks! Close

Add New Comment

 

Showing 0 comments

    Trackback URL
     
    blog comments powered by Disqus
     

     Pre-Disqus Integration Comments

     

    Comments

    Nike Air Max Shoes

    Your website is of great good quality. Brain my aksing whther I can get some advertisements from you? If you concur, please communicate with me by way of electronic mail and tel me the advert kind. On top of that, you've got other best excellent related weblogs, I am happy you would sell the advertisements to me. <a Href="http://www.bestextraordinarysales.com/"> Nike Air Max Shoes</a>
     on 5/29/2011 9:32 PM

    nike air ofrce ones

    Right here is the <a href="http://www.zhouer.net/">nike air force ones</a> that can undoubtedly steal everyone’s interest with its burning varsity red and white colorway. The specially textured mudguard and heel imply vigor and strength whilst the plain leather toe box, midsection, and lace panel represent a redefined appeal. As an element of purity, the white Swoosh teams up using the heel tab and midsole together with the tongue. The red Air stamp is an obvious hot rendition that complements both the upper and outsole.
     on 5/30/2011 11:41 PM