This page has moved. You will be automatically redirected to its new location in 10 seconds. If you aren't forwarded to the new page, click here.

Search This Blog

Monday, March 30, 2009

'Service Unavailable' Resolution

http://support.microsoft.com/kb/823552

http://guru-web.blogspot.com/2007/10/central-administration-site-service.html

http://articles.icscentral.com/Kb%20Articles/271/823552.aspx

http://www.digwin.com/view/sharepoint-service-unavailable-application-pool-crashes

http://njbblog.blogspot.com/2007/05/sharepoint-error-service-unavailable.html


 

In my case, this issue was fixed by

  • Right click on the application pool
  • Click Identity Tab
  • Choose "Configurable"
  • Set to a domain account & enter password / or any user with administrator rights (you can even use the same user with which you are currently logged in)
  • Restart IIS


 

Usually this error occurs when my domain account password has expired and I don't change it and keep on using the virtual machine (i.e. if my account password expires on 14th November, and I do not shut down my virtual machine or save its state on 12th November, then I run the virtual machine from the saved state on 15th November, so it creates a conflict between the logged in password and the actual password which has been changed on the active directory)

Wednesday, March 18, 2009

Read Write Lookup Fields in SharePoint lists

http://sridharu.blogspot.com/2008/03/how-to-readupdate-lookup-fields-in.html

SharePoint Lookup Column – Get Multiple Values

http://fuchangmiao.blogspot.com/2008/09/sharepoint-lookup-column-get-multiple.html

Simplify reading and writing field values of type SPFieldUser, SPFieldUrl and SPFieldLookup using extension methods

http://www.alexbruett.net/?tag=sharepoint

Get SharePoint list items programmatically

http://www.sharepointace.com/Blog/post/2007/12/Another-way-to-retrieve-SharePoint-List-Data---Use-built-in-functionality!.aspx

http://weblogs.asp.net/gunnarpeipman/archive/2008/09/27/sharepoint-for-developers-3-2-hands-on-getting-list-items.aspx

http://aidangarnish.net/blog/post/2007/08/Using-SharePoint-web-services-to-get-list-items.aspx

http://tomblog.insomniacminds.com/2008/01/28/sharepoint-internals-splistgetitems/

IIF Not Working

http://www.velocityreviews.com/forums/t103946-iif-not-working.html

Value does not fall within the expected range

http://blogs.msdn.com/johnlee/archive/2007/08/15/value-does-not-fall-within-the-expected-range-error.aspx

http://rehmangul.wordpress.com/2009/01/21/value-does-not-fall-within-the-expected-range-errors/

The Controls collection cannot be modified because the control contains code blocks.

The Controls collection cannot be modified because the control contains code blocks.

Change <%=xyz%> to <%#xyz%>

Programmatically load User control

http://blogs.vbcity.com/mcintyre/archive/2006/10/13/6389.aspx

Monday, March 16, 2009

SQL Server 2005 Express Error 3417

The file "C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\master.mdf" is compressed but does not reside in a read-only database or filegroup. The file must be decompressed.

http://www.tomrafteryit.net/sql-server-2005-express-error-3417/

Tuesday, March 10, 2009

The entry 'ConnectionStringName' has already been added.

http://dev.communityserver.com/forums/t/478332.aspx

Try this:

    <connectionStrings>
        <remove name="ConnectionStringName" />
        <add name="ConnectionStringName" connectionString="server=(local);uid=;pwd=;Trusted_Connection=yes;database=communityserver" />
    </connectionStrings>

Raise Event from user control to main page

http://chiragrdarji.blogspot.com/2007/08/raise-event-from-user-control-to-main.html

Modifying Connection String dynamically for a strongly typed dataset in a different assembly

http://jagchat.spaces.live.com/blog/cns!41050F68F010A662!1223.entry

Private Sub MySettings_SettingsLoaded(ByVal sender As Object, ByVal e As System.Configuration.SettingsLoadedEventArgs) Handles Me.SettingsLoaded
            Dim s As MySettings = TryCast(sender, MySettings)
            s.Item("SampleConnectionString") = System.Configuration.ConfigurationManager.ConnectionStrings("cnDev").ConnectionString 
        End Sub

SampleConnectionString is local in the DAL class library project

cnDev is in the web.config of the actual project

Both should have same names.

Thursday, March 5, 2009

Vista Slow Internet

I resolved mine by reinstalling drivers which were for XP (2006 version) instead of using those which were installed by Vista


Updated on 28th June 2009... My culprit turned out to be Avast antivirus..jst disable the network and web shields and net was flying again :)

Vista Startup Issues

These two links saved my life today:

“The compiler failed with error code 128”

I received the same error  last week which was resolved after running a disk cleanup on the server, and logging off and logging in.


 

However, today this error would not go with the above mentioned steps, so I performed another search over how to resolve the issue and following are the main findings which I concluded and tried:


 

  • run the the aspnet_regiis.exe and it solved my problem. 
    C:\(your windows directory)\Microsoft.NET\Framework\(your version of .net framework)\aspnet_regiis.exe -i 
  • Go to C:\(your windows directory)\Microsoft.NET\Framework\(your version of .net framework)\Temporary ASP.NET Files and remove your virtual directory from here
  • Repair .NET framework


 

The above two solutions did not work; but finally I was able to resolve the error by:

  • Changing the IDENTITY of the Application Pool in which our virtual directory resides from "Network Service" to "Local System"


 

I have explained all the possible solutions of removing the error from the system just for your information. In our case the solution was changing identity of the application pool.


 

Here is a link from where I found out this solution:


 

http://social.msdn.microsoft.com/Forums/en-US/asmxandxml/thread/7878c90d-814d-48b6-9694-112cc4a39d12/


 

Access an ASP Label in Javascript

http://forums.asp.net/p/1099725/1669392.aspx