My colleague, Carlos Fernandez, sent me this CSCRIPT command for recycling the an IIS application pool:
%windir%\system32\cscript.exe c:\windows\system32\iisapp.vbs /a "SharePoint – 80" /r
Tired of manually recycling the app pool each time you make a code change to your SharePoint web part? No problem, add the following command to the post build events in Visual Studio.
Posts Tagged ‘ASP.NET’
Recycle IIS App Pool from Script
Posted in Everything, Software Development, tagged ASP.NET, Microsoft SharePoint on November 7, 2008 | 1 Comment »
"Submit" ASP.NET and SharePoint
Posted in Everything, Software Development, tagged ASP.NET, Microsoft SharePoint on January 2, 2008 | 2 Comments »
One of my developers and I ran into an interesting problem today – we’d migrated a web site over to SharePoint 2007 (using a popular content migration tool) and found that all page postback calls in SharePoint were giving JavaScript errors, specifically:
Object doesn’t support property or method.
Turns out that our master page and page layouts contained [...]
Invocation of SOAP Web Service gives 500 Internal Server Error
Posted in Everything, Software Development, tagged ASP.NET on June 29, 2007 | 3 Comments »
Picture this situation: It’s now 3am, start of business is deadline day for development of your project, and you’ve been working for the last 7 hours on a web service client bug; where dynamic invocation of the service, via SOAP 1.2, causes the server to return an HTTP 500 Internal Server error. The air conditioning kicked off [...]
ASP.NET Web Services, HTTP GET and POST
Posted in Everything, Software Development, tagged ASP.NET on June 14, 2007 | Leave a Comment »
Since the beginnings of ASP.NET 1.1, Microsoft disabled HTTP GET and POST actions on .NET Framework based web services (for security reasons). If you want to enable these protocols, add the following XML to the the system.web node in the web.config file:
<webServices> <protocols> <add name=”HttpGet”/> [...]
Deploying a WebPart in SharePoint 2007
Posted in Everything, Software Development, tagged ASP.NET, Microsoft SharePoint on June 6, 2007 | 1 Comment »
This is one of those topics, which I frequently look up, and so what better place to put the information than this blog? Scot Hillier has explicit instructions in his book (Microsoft SharePoint – Building Office 2007 Solutions in C#) on page 404 to deploy a webpart using a solution package. The following instructions are [...]
Encrypt/Decrypt Web.config Sections
Posted in Everything, Software Development, tagged ASP.NET on December 28, 2006 | 1 Comment »
Encryption of sections in my web.config file is a task I am constantly looking up on the Internet, so I thought I’d blog it here.
– Generic form for encrypting the Web.config file for a particular website…aspnet_regiis.exe -pef section physical_directory –prov provider – or –aspnet_regiis.exe -pe section -app virtual_directory –prov provider– Concrete example of encrypting the Web.config [...]
Hosting Microsoft Live.com Gadgets in your ASP.NET Application
Posted in Everything, Software Development, tagged ASP.NET, Microsoft SharePoint on June 16, 2006 | 6 Comments »
OK, this has to be one of the most asked questions about Microsoft Live.com gadgets (except perhaps the question – “Are Vista Gadgets and Live.com Gadgets the same?”) –
How to host Microsoft Live.com gadgets in my own ASP.NET applications?
Sounds like there must be an easy answer for this one…. not exactly. Microsoft haven’t published [...]
Embedding Windows Media and Quicktime into ASP.NET pages
Posted in Everything, Software Development, tagged ASP.NET, Web Development, Windows Media on February 25, 2006 | 14 Comments »
I know there are numerous web sites and blogs about this subject. Since I had to write some code for “Fred” to render on-line video, and embedding video in web pages can be somewhat fiddly to get right, I figured I’d blog the C# code for my future reference. If hosting on-line video in your [...]
WebResource.axd
Posted in Everything, Software Development, tagged ASP.NET, Web Development on January 4, 2006 | Leave a Comment »
Winform applications have been using resources (embedded images etc) for some time. .NET allows developers to embed binary files into assemblies, which can later be retrieved by code at runtime. ASP.NET is no exception. How many times have you written a web control, which requires images, and you’ve had to rely on the client web [...]
Debugging ASP.NET as non-admin (LUA)
Posted in Everything, Software Development, tagged ASP.NET, Security on November 9, 2005 | Leave a Comment »
See my previous post about LUA, and why it is a good idea. Today
I managed to get ASP.NET 2.0 to debug correctly, using Visual Studio
.NET 2005 under LUA. Thanks to Andrew Duthie’s post. I needed to tweak my system a little, here are my steps in digest (II6 only):
1. Create a new user group (Control [...]