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

Tuesday, April 28, 2009

HTTP 405 - Resource not allowed

Resolved the issue by setting .NET Framework in IIS > Default Web site > Properties > .NET Framework

It wasn't set to any value earlier.

http://www.somacon.com/p126.php

Monday, April 27, 2009

Cannot register assembly "" - access denied. Please make sure you're running the application as administrator. Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/ba9d67b3-9d14-4a2a-ac5a-91441032ded4

Server object, ASP 0177 (0x80131509)

http://weblogs.asp.net/dneimke/archive/2004/01/31/65330.aspx

http://www.developmentnow.com/g/21_2006_8_0_0_807392/Error-when-calling-net-dll-com-in-ASP-page-by-setting-SoapDocumentMethodAttribute.htm

ASP PCase

http://psacake.com/web/func/pcase_function.htm

Unable to emit assembly: Referenced assembly '' does not have a strong name

Solution of the assigning the strong name to the third part DLL by using following command on visual studio command prompt.

E.g. Lets say the name of the third party DLL is myTest.dll. 
Step 1: Dis-assemble the assembly 
        ildasm myTest.dll /out:myTest.il


Step 2: Re-Assemble using your strong-name key 
        ilasm myTest.il /res:myTest.res /dll /key:myTest.snk /out:myTestSN.dll

This code work perfectly to assign strong name.

for verification you can use following command,
sn -vf myTestSN.dll

http://social.msdn.microsoft.com/forums/en-US/clr/thread/35930958-9775-4e56-bd38-0362d124ffc4/

Sunday, April 19, 2009

Apply minimum length validation using ASP.NET Validation Controls

Validation expression should be : /{numberOfCharacters}/

Comma indicates at least number of characters, no comma indicates exactly as much characters

<asp:RegularExpressionValidator
ID="revNewPW0"
runat="server"


ControlToValidate="textNewPassword"


ErrorMessage="Password should have at least 7 characters"


ValidationExpression="/{7,}/"></asp:RegularExpressionValidator>

Even better solution is here:

http://forums.asp.net/t/1130081.aspx

Monday, April 13, 2009

Central Administration > You are not authorized to view this page

The SSP Timer Job Distribution List Import Job was not run.
Reason: Logon failure: unknown user name or bad password

Go to Inetmgr > Application Pools > SharePoint Central Administration v3 > Properties > Identity > Predefined > Network Service.

Then restart IIS once :) n u r done