by Oscar
24. May 2009 21:17
by Oscar
21. May 2009 19:42
It was only a matter of time :) As of now, I am fully dedicated to making SharePointAce.com grow. We have some projects in the pipeline, but if you know of project I can assist on, please contact me.
Here is to a new start!
-O
by Oscar
17. May 2009 20:10
You probably have experienced these symptoms when attempting to upload files larger than 30MB on SharePoint. In addition to standard SharePoint settings via the Central Administration for your Web Application, you have to set the allowed on the web.config file. What would be nice, is that when you change those settings, the web.config file also adds the section below if it does not exist.
Single File Upload via Document Library
You get a 404 page.
Single or Multiple File Upload/Copy/Paste using open with Windows Explorer
The file begins uploading but then towards the end you get the following error:
Could not find this item
This is no longer located in C:\filepath. Verify the item’s location and try again.
Multiple File Upload via Document Library
You don’t get error messages, but the file is not showing up on your doc lib
SOLUTION
Add the following code to the <configuration> section of the Web.config file:
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="52428800"/>
</requestFiltering>
</security>
</system.webServer>
Now go crazy uploading large files into SharePoint! Your DBAs may not like you after that :)
Cheers,
Oscar
by Oscar
17. May 2009 07:22
While working on an extranet for a client, we ran into a requirement that proved to be simple to implement. The client wanted to just show a login form on the home page. As you probably already know, when configuring a SharePoint site to use FBA you get an ugly login page by default (see FIGURE 1) not ideal since it is also difficult to spot the login link on top right corner to get to this form.
FIGURE 1 – Default login.aspx for Forms Based Authentication site
FIGURE 2 – Login link on top right corner of portal home page
Solution
Since MOSS is written on top of the .NET 2.0 framework, it made sense to quickly drag the Login Control to a page using SharePoint Designer 2007. By simply configuring the MemberShipProvider, we are able to log the user in. Of course, while I was at it, I decided it would be nice to make the login control look nicer, so I reused the login button image that comes with SharePoint :)
In addition, I made sure to configure the VisibleWhenLoggedIn and set it to FALSE, so that it does not show up when the user is logged in.
FIGURE 3 – Custom login page with .NET 2.0 Login Control
FIGURE 4 – Configure MembershipProvider
There are plethora of properties that can be configured for this control. As you can see, I also decided to redirect my users to the home.aspx page after a successful login.
Hope this helps,
Oscar