Browse by Tags

All Tags » .NET (RSS)

Adventures in .Net 2.0 and webservices

I recently had problems when trying to access a webservice installed on a web site in IIS 6.0. When browsing to the web service at http://server/webservice.asmx I recieved: "Server Application Unavailable The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request." The application event log returned two errors: Event Type: Error Event Source: ASP.NET 2.0.50727.0 Event Category: None Event ID: 1088 Description: Failed to execute request because the App-Domain could not be created. Error: 0x80070005 Access is denied. Event Type: Error Event Source: ASP.NET 2.0.50727.0 Event Category: None Event ID: 1334 Description: Failed to initialize the AppDomain:/LM/W3SVC/2079486950/Root Exception: System.IO.FileLoadException Message: Could not load file or assembly 'System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Access is denied. StackTrace: at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark&...
Posted by SharePoint Blogs
Filed under: ,

SharePoint Errors: 6482, 7888, 6398 and 7076

Problem I was receiving multiple complaints from clients with the above errors in the machine's Event Log: Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory Read More......( read more ) Del.icio.us | Digg It | Technorati | Blinklist | Furl | reddit | DotNetKicks
Posted by SharePoint Blogs
Filed under: , ,

SPTreeView: Selected node CSS bug

I may have found a bug in the SPTreeView control. When you select a node the CSS class declared in the SelectedNodeStyle isn't applied to the node. Other than that it seems to behave correctly. Sample markup (in a LAYOUTS page) < wssuc : InputFormControl Read More......( read more ) Del.icio.us | Digg It | Technorati | Blinklist | Furl | reddit | DotNetKicks
Posted by SharePoint Blogs
Filed under: ,

Programmatically start workflow

Programmatically starting a workflow requires the following code: Guid wfBaseId = new Guid ( "{6BE0ED92-BB12-4F8F-9687-E12DC927E4AD}" ); SPSite site = ...; SPWeb web = site.OpenWeb(); SPList list = web.Lists[ "listname" ]; SPListItem Read More......( read more ) Del.icio.us | Digg It | Technorati | Blinklist | Furl | reddit | DotNetKicks
Posted by SharePoint Blogs
Filed under: ,

F10 (Debug) inside the .NET Framework

This is really a lovely thing the Scott Gu announced .NET framework sourcecode has been released for the community now you can debug inside the framework itself cool press F10 and you might be inside System.Data.SQL. Read more here Posted on SharePoint Blogs Del.icio.us | Digg It | Technorati | Blinklist | Furl | reddit | DotNetKicks
Posted by SharePoint Blogs
Filed under:

Search: FullTextQuery RowLimit

When you query the SharePoint Search Service the number of rows returned defaults to 100 but can be increased as required. Note that when you specify a value above the maximum RowLimit the query will only return the default value of 100 items ! ServerContext Read More......( read more ) Del.icio.us | Digg It | Technorati | Blinklist | Furl | reddit | DotNetKicks
Posted by SharePoint Blogs
Filed under: , ,

FREE EBOOK

A friend told me that Microsoft Press has a special offer for an e-book to download it for FREE! Just sign up and download the book. from here Posted on SharePoint Blogs Del.icio.us | Digg It | Technorati | Blinklist | Furl | reddit | DotNetKicks
Posted by SharePoint Blogs
Filed under:

Blog updated with CKS:EBE

In case you noticed my RSS feed acting weird; I was updating the CKS:EBE version (currently version 2.0 Beta 2) on my blog. One of the downsides when running alfa/beta software I guess. But it's never been an issue so far. I have so far really enjoyed Read More......( read more ) Del.icio.us | Digg It | Technorati | Blinklist | Furl | reddit | DotNetKicks
Posted by SharePoint Blogs

BuilderTextBox: Text Property Builder in a custom ToolPane/EditorPart

Introduction By default text properties in the Web Part Property pane can be filled in using a Property Builder as shown below: This only applies to the default SharePoint ToolPanes (or EditorParts as they're called in the new terminology). If you Read More......( read more ) Del.icio.us | Digg It | Technorati | Blinklist | Furl | reddit | DotNetKicks
Posted by SharePoint Blogs
Filed under: ,

Enable Session State in SharePoint 2007

Here’s a quick and dirty on how to enable Session State within your MOSS 2007 farm. I’ve been stuck on this many times before, so for my sake and hopefully a few others’, I decided to write a quick note on the process. First, the biggest difference to realize is that our session state will be stored in our SQL Server database. This is required over the traditional memory-based session because of multiple application servers in a web farm architecture. Secondly, in order for our web applications to...( read more ) Del.icio.us | Digg It | Technorati | Blinklist | Furl | reddit | DotNetKicks

Rock My Website: download winners' code

A while ago John, Martijn and myself have won the Rock My Website competition . John has mentioned this earlier in one of his posts . We have chosen to develop our project using ASP.NET 2.0. Quite challenging we thought - especially if you consider the automation level of ASP.NET and the amount of code generated by the framework. To reach the desired accessibility and compliancy level we have used various techniques like custom Page class, JavaScript classes and alternative style sheets. After the competition we have received quite a few questions regarding our approach and the techniques we have used. To make it more transparent for all of you interested in accessibility and compliance of ASP.NET 2.0 based websites we have decided to share the code of our project. As you the competition has been organized and hosted by Microsoft Netherlands. That is why we have chosen to make our code available as a Starter Kit. Unfortunately Microsoft didn't seem to be interested in our solution and didn't really see the added value of the whole idea. Quite a pity in my opinion considering Microsoft's web products are not really known as top-compliant. Anyway we didn't get discouraged. We have decided to put the project on our CodePlex Project site so you can download it and use our techniques in your projects. The site content and our accessibility statement are both in Dutch. Don't get discouraged by any of these though: feel free to comment our code and ask any questions...
Posted by SharePoint Blogs
Filed under: ,

ASP.NET events can cause troubles

...if you are developing a Webrichtlijnen compliant website in ASP.NET or let's say in... SharePoint 2007! Recently a new version of the Webrichtlijnen on-line quick scan tool has been released. Not that long ago I have reported that my concept on making SharePoint 2007 sites 100% Webrichtlijnen compliant did work . As soon as I have checked the same code using the newer version of the quick scan tool I have found there were still some errors present in the website. These errors are JavaScript events related and these are attached to the ASP.NET controls. Let me explain it to you by using an ASP.NET button as an example. So let's say you're making a custom search Web Part: a text field to enter the search query and a button to run the search. Using the ASP.NET events concept you create a new OnClick event for the button and you attach it to your button. What ASP.NET does is it creates a JavaScript onclick event and attaches it to the output. What you see in the source code of the rendered page is something like <input type="button" onclick=".... Why is this a problem? Conform the Webrichtlijnen you are supposed to be using non-obtrusive JavaScript. Any in-line events are therefore forbidden. An onclick attached to a button or any other control is a no-go. But does it mean you cannot use these events at all? Well, it depends. If you're building a quite simple Web Part like the one above you could use one of the Web Part's methods triggered...

Symantec Endpoint 11 blocks and crashes .NET v2 on a Windows XP Laptop

I have a Windows XP SP2 user who just got EndPoint loaded on his laptop and it kills/blocks .NET from running and therefor keeps other programs that use .NET v2 from running. Namly a program call Bill Quick. It's not nice about it. This isn't of we are sorry we blocked this program. It's a real .NET crashed and has failed. I uninstalled EndPoint and everything works fine. I can put this in as an exception just tell me what .dll or .service or filename to program in. Posted on SharePoint Blogs Del.icio.us | Digg It | Technorati | Blinklist | Furl | reddit | DotNetKicks
Posted by SharePoint Blogs

DLL GacUtil and Reflector Shortcuts

Here’s a little trick to help all of us SharePoint developers working with DLLs. It adds the gacutil.exe -i and Reflector.exe command to the right-click context menu. Get Reflector.exe at: http://www.aisto.com/roeder/dotnet/ Now, all you have to do is right click on a dll and presto! (make sure reflector.exe path maps correctly) DLLShortcuts.reg (create in notepad and double click) Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\dllfile\Shell] @="c:\\reflector\\reflector.exe %1"...( read more ) Del.icio.us | Digg It | Technorati | Blinklist | Furl | reddit | DotNetKicks
Posted by SharePoint Blogs
Filed under: , ,

Using .NET Custom Attributes for release documentation

During the last Dev Days in the Netherlands I’ve attended to Francesco Balena's presentation on .NET Reflection . It was definitely interesting and it has inspired me to take a closer look at it. After a while I came on the idea of using .NET Reflection for generating release documentation for .NET applications and assemblies. It would once and for all solve the problem of updating the release notes stored in a separate file and getting sure all the changes have been put there. I would like to show you the way I’ve put my idea into practice and how you could take it even further. My demo CustomAttributes solution consists of three projects: CustomAttributes – definition of the custom attributes CustomAttributesClient – a Windows Forms Application generating the release notes using the .NET reflection MyAssembly – a dummy assembly that makes use of the custom attributes should resemble your assemblies First of all I’ve created the CustomAttributes project. I’ve started with creating two custom attributes: Change (for keeping changes) and Features (for marking extra functionality added to the assembly in the given release). Then I thought that it would be nice to store the bug fixes as well. As a bug fix is nothing more than a change I’ve decided to create a ChangeBase abstract class and make the Change and BugFix classes derive from it. For clarity I’ve stored each custom attribute in a separate class file. After defining the attributes I moved to setting the attributes. I...
Posted by SharePoint Blogs
Filed under: ,
More Posts Next page »