Monday, February 16, 2009

EVENT ID 1309 Source ASP.NET 2.0.50727.0

Today i shifted one dotnet 2.0 site from One server to another

but when i tried to browse it generated following Event ID in Event viewer

IE gave following error


Unhandled Exception: System.IO.FileNotFoundException: Could not load file or ass
embly 'missing, Version=2.0.50727.0, Culture=neutral, PublicKeyToken=null' or one
of its dependencies. The system cannot find the file specified.
File name: 'missing, Version=2.0.50727.0, Culture=neutral, PublicKeyToken=)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\M
icrosoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure lo
gging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fus
ion!EnableLog]



Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 2/16/2009 4:11:59 PM
Event time (UTC): 2/16/2009 10:41:59 AM
Event ID: cd8e4c1378c14f2b82d6f2dace73e80b
Event sequence: 86
Event occurrence: 3
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/74883201/Root-1-128792511674537357
Trust level: Full
Application Virtual Path: /
Application Path: D:\Sites\HDMS\
Machine name: SAIINTRANET

Process information:
Process ID: 3632
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE

Exception information:
Exception type: HttpException
Exception message: Response is not available in this context.

Request information:
Request URL:
Request path:
User host address:
User:
Is authenticated: False
Authentication Type:
Thread account name: NT AUTHORITY\NETWORK SERVICE

Thread information:
Thread ID: 1
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at System.Web.HttpApplication.get_Response()
at ASP.global_asax.Session_End(Object sender, EventArgs e) in d:\Sites\HDMS\Global.asax:line 42


Custom event details:

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.


I was stumped......


so I tried searching for the cause but couldnt, I even reinstalled dotnet 2.0 and then applied SP1 to it, but nothing came to rescue

I tried searching Net but got very few results but using those i was able to solve the issue, here is what i did...


1) First use regedit.exe and navigate to this location HKEY_LOCAL_MACHINE\Software\Microsoft\Fusion

a) on left side pane right click and select NEW >> DWORD
b) name it exactly "EnableLog" without the quotes
d) right click on EnableLog and select Modify, input value "1" without quotes base as Hexadecimal.

2) now browse the page again... Nope the error in not rectified but a new error will be generated informing you about the real reason why the site is not functioning properly. you will see similar to the following error

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or ass
embly 'missing, Version=
2.0.50727.0, Culture=neutral, PublicKeyToken= ' or one
of its dependencies. The system cannot find the file specified.
File name: 'missing, Version=
2.0.50727.0, Culture=neutral, PublicKeyToken=
at STS.Mystery.Main(String[] args)

=== Pre-bind state information ===
LOG: User = DOMAIN\domainname
LOG: DisplayName = missing, Version=
2.0.50727.0, Culture=neutral, PublicKeyToken=
(Fully-specified)
LOG: Appbase = \\01srbackup\c$\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\fc4e1f33\42e0ac72\notfound.dll
LOG: Initial PrivatePath =
Calling assembly : Mystery, Version=0.0.0.0, Culture=neutral, PublicKeyToken=
===
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2
.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partia
l, or location-based assembly bind).
LOG: Attempting download of new URL filec:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\fc4e1f33\42e0ac72\
notfound.dll
LOG: Attempting download of new URL filec:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\fc4e1f33\42e0ac72\notfound.dll.

LOG: Attempting download of new URL file:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\fc4e1f33\42e0ac72\
notfound.EXE.
LOG: Attempting download of new URL file:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\fc4e1f33\42e0ac72\
notfound.EXE.

(PS: the above error is not the exact error what IE displayed,
as I forgot to copy the error or take a screen shot but I have tried to punch in what i remmembered )

The notfound.dll is the file which is missing and after you provide this dll you application will function properly,

in my case Ajax extention dll was missing and in just installed AJAX for Dotnet and everythibng worked fine.

I am not a developer, I am System Admin.
The developers didnt informed me that Ajax extensions is required to make this site work.

and now my Site is working fine
.

Outlook SSL Security Alert Certificate Name is Invalid

Our Exchange Certificate expired and we had to renew the SSL. after deploying the new SSL, some users started getting SSL security Alert on...