Tag Archives for ASP .Net

Storing Credentials in a SharePoint Property Bag

Written by: Johnny Bouder Subscribe to this Author's RSS feed

I recently posted about storing credentials in the Secure Store Service, and based on a few comments, I figured I should also post about storing credentials in the property bag. For this post I’m just going to keep it real simple and provide a few notes and the code (please don’t hesitate to ask for […]

Storing Connection String Information in the Secure Store Service

Written by: Johnny Bouder Subscribe to this Author's RSS feed

As a SharePoint developer, i’ve been tasked a few times with pulling data from an external database into SharePoint. More often than not, that data is secured SQL data and needs to be accessed using a SQL account, which means I’m going to have to access that data using a connection string. Generally that’s a […]

AJAX Control Toolkit OnUploadedComplete – Running client side JS

Written by: Lee Kohn Subscribe to this Author's RSS feed

If you’ve ever used the AJAX Controll Toolkit’s asyncFileUpload control you will undoubtedly have run into some screwiness dealing with how this event does not act like normal update panel async-postbacks. The thing to keep in mind with this control is that it is posting to a hidden iFrame on the page to get around […]

Open XML in the Sandbox

Written by: Johnny Bouder Subscribe to this Author's RSS feed

Sometime back I was given the task of taking information in an email and automating it into a specifically formatted word document (kind of a strange request I know). With me being a complete OpenXML noob, I have to admit it turned out to be much more difficult than I originally thought. Also, I had […]

Connection errors with application pages

Written by: Charles Stumpf Subscribe to this Author's RSS feed

Periodically, I have overzealous users who refresh the page even when the load time is < 1 second. Within my application pages, I’d receive errors similar to “internal connection fatal error”. The problem wouldn’t end after the refresh, though. It would cause errors on all database connections, for all users, and it would last for […]

Updated GAC DLLs not showing updates in ASP.Net Applications

Written by: Lee Kohn Subscribe to this Author's RSS feed

I recently ran into an issue on one of my development ASP.Net servers where I would deploy an updated DLL (Dynamic-link library) to the GAC (global assembly cache) but the ASP.Net applications which referenced the DLL would throw compilation errors at run-time saying that newly added fields/methods were not present in the assembly. I tried uninstalling and re-installing the assembly, adding the new DLL to the bin, and referencing it from there and so on, but nothing seemed to work.

As it turns out, ASP.Net keeps a cached version of the JIT compiled DLL in the C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files directory that was being used instead of the new DLL which was in the GAC. To fix it, I simply deleted the contents of this folder and everything was right as rain!

-Lee

SharePoint 2010 Forms Based Authentication

Written by: Lee Kohn Subscribe to this Author's RSS feed

For the past couple of days I’ve been tasked with testing out and learning about SharePoint’s FBA (Forms Based Authentication).  Traditionally SharePoint makes use of Windows Authentication for authenticating users which uses mechanisms built into browers and IIS but limits the UI/UX for logging in to whatever the browser prompts when it receives a 401 from the server. […]

ASP .Net MVC Localization

Written by: Lee Kohn Subscribe to this Author's RSS feed

Ever needed to localize/internationalize an MVC web application but didn’t know how to? Well it’s actually pretty simple with ASP .Net. The first step is to set the page’s UICulture to the language requested by the browser which can be accomplished by adding the following code to the controller. After the thread’s UICulture has been […]

Adding a Silverlight Control to an existing ASP.NET Website

Written by: Johnny Bouder Subscribe to this Author's RSS feed

I’ve only been working with Silverlight for a few months now and I’ve came to the conclusion that either my Google-fu is lacking or there isn’t a great deal of lower level information out there on how to get started. Personally I’m going with the latter because in my experience if you follow some of these posts online you’ll find yourself creating a sample Silverlight project, which is hosted within its own development application. But how do you actually add the control to your existing site?

Hopefully this will shed some light on the subject.

SharePoint Best Practices: Form Digest in ASP .Net Pages within SharePoint

Written by: Lee Kohn Subscribe to this Author's RSS feed

If you ever find yourself modifying data within SharePoint using custom ASP .Net pages, you will undoubtedly have run into errors regarding the pages security validation being invalid.  Rather than disabling security validation, which can leave your pages open to XSS attacks, follow the recommendations in the following blog post regarding using the FormDigest tag […]