Feeds:
Posts
Comments

Posts Tagged ‘ASP.NET’

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 [...]

Read Full Post »

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 [...]

Read Full Post »

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 [...]

Read Full Post »

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”/>     [...]

Read Full Post »

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 [...]

Read Full Post »

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 [...]

Read Full Post »

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 [...]

Read Full Post »

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 [...]

Read Full Post »

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 [...]

Read Full Post »

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 [...]

Read Full Post »

Older Posts »

Follow

Get every new post delivered to your Inbox.