I think have the issue narrowed down to the global.asax file, but not being a programmer I have no idea how to fix it. If I use the default global.asax file my entire site is not accessible and the following error is produced.
Server Error in '/' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0619: 'Telligent.Components.DataProvider' is obsolete: 'This class should no longer be used. Please change the namespace to Telligent.Common.Components for access to this code.'
Source Error:
|
Line 22: public override string GetConnectionString()
Line 23: {
Line 24: string connectionstring = Telligent.Components.DataProvider.GetConnectionString();
Line 25: if(connectionstring==null||connectionstring.Trim()=="")
Line 26: throw(new Exception("Missing appSetting : SiteSqlServer"));
|
Source File: c:\Web Sites\Annex\Global.asax Line: 24
Show Detailed Compiler Output:
c:\windows\system32\inetsrv> "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\csc.exe" /t:library /utf8output /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\8d13435c\d00c1ac0_e109c901\CommunityServer.Blogs.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\App_Code.iuo0npjf.dll" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\97704d77\a0c492c0_e109c901\Telligent.DynamicConfiguration.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\2b9af5b5\f0193219_0701c801\CommunityServer.Reporting.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\b88a112a\10632cc0_e109c901\CommunityServer.Controls.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\9e0db0b5\900b2f19_0701c801\CommunityServer.Points.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\b40f29c3\c0923019_0701c801\CommunityServer.Reader.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\c85e33aa\407715c0_e109c901\CommunityServer.ASPNet20MemberRole.DLL" /R:"C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\6423aa88\f0118afa_665bc801\CuteChat.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\e4d885ed\d0ee2819_0701c801\CommunityServer.Galleries.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\fe022f86\00d382ce_957cc701\Websoft.Notifications.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\e68b1ebe\50c97183_ca09c901\Telligent.Registration.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\57363ed0\001581bd_4462c701\CommunityServer.Mail.Data.SqlDataProvider.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\87f3878c\10004783_ca09c901\Janrain.OpenId.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\f5288e87\a0f830c0_e109c901\CommunityServer.Data.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\eaf6c52b\a0672719_0701c801\CommunityServer.Files.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\c0a02eff\a0223383_ca09c901\CommunityServer.Urls.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\5e84bb99\20a555c0_e109c901\CommunityServer.RegexLibrary.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\051c8cef\606e80c0_e109c901\CommunityServer.Wss.WebServices.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\9e4c06fa\00ed64c0_e109c901\CommunityServer.WebServices.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\e071d74f\20323dc0_e109c901\CommunityServer.MailGateway.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\741964d1\b093a3c0_e109c901\Telligent.Glow.MultipleFileUpload.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\ca488a96\40d05ec0_e109c901\CommunityServer.Web.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\a5d5bce0\60f74519_0701c801\CookComputing.XmlRpcV2.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\51c1c4a6\20a13319_0701c801\CommunityServer.RollerBlogs.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\5c3b4083\f0aa3bc0_e109c901\CommunityServer.Ldap.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\95dfa3bb\708762f6_665bc801\CuteChat.AppCode.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\15924589\601537c0_e109c901\CommunityServer.Discussions.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\8763df2f\10a45d61_190ac901\GetBen.DynamicNavigation.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\a0812e2d\30014ec0_e109c901\CommunityServer.Messages.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\e0292989\90e00983_ca09c901\CommunityServer.IPBanning.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\b89ff919\c0054919_0701c801\RSS.NET.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\e2e6fcf4\00eb5f1b_3abec701\CookComputing.XmlRpc.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\8a686326\700e4a83_ca09c901\Telligent.AmazonS3.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\5d2ee7c0\20bf24c0_e109c901\CommunityServer.Components.SearchBarrel.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\e1209620\10d644c0_e109c901\CommunityServer.MailGateway.MailRoom.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\66825032\b07e2b83_ca09c901\CommunityServer.SqlDataProvider.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\99a5ebe4\30e77ec0_e109c901\CommunityServer.Wikis.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\bb8f8ade\f0612583_ca09c901\CommunityServer.OpenId.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\e997f814\00a74702_146ec701\nbdc.communityserver.themes.aero.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\240f67f6\c0096bc0_e109c901\CommunityServer.WebServices.Services.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\d6d8b1e6\00686ab5_27bec701\CuteSoft.Chat.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\ec12d881\001581bd_4462c701\CommunityServer.Mail.Common.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\71f41b9a\a06b49c0_e109c901\CommunityServer.MediaGalleries.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\62ed2f83\f08c4a19_0701c801\SgmlReaderDll.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\80be94e9\d0beacc0_e109c901\Telligent.TinyMCEWrapper.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\98db0920\001581bd_4462c701\Telligent.Web.UI.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\7e7410a8\502c57c0_e109c901\CommunityServer.Spam.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\d85b9823\30704419_0701c801\ComponentArt.Web.UI.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\6ef6e8ba\70b0a9c0_e109c901\Telligent.MailGateway.Common.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\c29a2412\501288c0_e109c901\Telligent.Components.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\3bbac0fc\c0b021c0_e109c901\CommunityServer.Components.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\d2a8fad3\907e4719_0701c801\MetaBuilders.WebControls.MasterPages.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\bb2d2907\c0ef9bc0_e109c901\Telligent.Glow.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\9c095043\509b4d19_0701c801\Telligent.CommunityServer.Metadata.Extractor.DLL" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\assembly\dl3\da3ab439\a07b7c83_ca09c901\Telligent.Tasks.DLL" /out:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\App_global.asax.ydl29gus.dll" /D:DEBUG /debug+ /optimize- /w:4 /nowarn:1659;1699;1701 "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\App_global.asax.ydl29gus.0.cs" "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\c86e9063\233c7f1c\App_global.asax.ydl29gus.1.cs"
Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.1433
for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.
c:\Web Sites\Annex\Global.asax(24,60): error CS0619: 'Telligent.Components.DataProvider' is obsolete: 'This class should no longer be used. Please change the namespace to Telligent.Common.Components for access to this code.'
c:\Web Sites\Annex\Global.asax(24,39): error CS0619: 'Telligent.Components.DataProvider' is obsolete: 'This class should no longer be used. Please change the namespace to Telligent.Common.Components for access to this code.'
|
Show Complete Compilation Source:
Line 1: #pragma checksum "C:\Web Sites\Annex\global.asax" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "95A1B7DDF87D5E96CEAB6B4F9541FF35"
Line 2: //------------------------------------------------------------------------------
Line 3: // <auto-generated>
Line 4: // This code was generated by a tool.
Line 5: // Runtime Version:2.0.50727.1433
Line 6: //
Line 7: // Changes to this file may cause incorrect behavior and will be lost if
Line 8: // the code is regenerated.
Line 9: // </auto-generated>
Line 10: //------------------------------------------------------------------------------
Line 11:
Line 12: namespace ASP {
Line 13:
Line 14: #line 319 "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 15: using System.Web.Profile;
Line 16:
Line 17: #line default
Line 18: #line hidden
Line 19:
Line 20: #line 314 "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 21: using System.Text.RegularExpressions;
Line 22:
Line 23: #line default
Line 24: #line hidden
Line 25:
Line 26: #line 316 "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 27: using System.Web.Caching;
Line 28:
Line 29: #line default
Line 30: #line hidden
Line 31:
Line 32: #line 312 "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 33: using System.Configuration;
Line 34:
Line 35: #line default
Line 36: #line hidden
Line 37:
Line 38: #line 318 "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 39: using System.Web.Security;
Line 40:
Line 41: #line default
Line 42: #line hidden
Line 43:
Line 44: #line 323 "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 45: using System.Web.UI.HtmlControls;
Line 46:
Line 47: #line default
Line 48: #line hidden
Line 49:
Line 50: #line 315 "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 51: using System.Web;
Line 52:
Line 53: #line default
Line 54: #line hidden
Line 55:
Line 56: #line 321 "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 57: using System.Web.UI.WebControls;
Line 58:
Line 59: #line default
Line 60: #line hidden
Line 61:
Line 62: #line 320 "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 63: using System.Web.UI;
Line 64:
Line 65: #line default
Line 66: #line hidden
Line 67:
Line 68: #line 310 "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 69: using System.Collections;
Line 70:
Line 71: #line default
Line 72: #line hidden
Line 73:
Line 74: #line 309 "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 75: using System;
Line 76:
Line 77: #line default
Line 78: #line hidden
Line 79:
Line 80: #line 311 "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 81: using System.Collections.Specialized;
Line 82:
Line 83: #line default
Line 84: #line hidden
Line 85:
Line 86: #line 322 "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 87: using System.Web.UI.WebControls.WebParts;
Line 88:
Line 89: #line default
Line 90: #line hidden
Line 91:
Line 92: #line 317 "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 93: using System.Web.SessionState;
Line 94:
Line 95: #line default
Line 96: #line hidden
Line 97:
Line 98: #line 313 "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
Line 99: using System.Text;
Line 100:
Line 101: #line default
Line 102: #line hidden
Line 103:
Line 104: #line 2 "C:\Web Sites\Annex\global.asax"
Line 105: using CuteChat;
Line 106:
Line 107: #line default
Line 108: #line hidden
Line 109:
Line 110:
Line 111: [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
Line 112: public class global_asax : global::CommunityServer.Global {
Line 113:
Line 114: private static bool @__initialized;
Line 115:
Line 116:
Line 117: #line 4 "C:\Web Sites\Annex\global.asax"
Line 118:
Line 119:
Line 120: public override void Init()
Line 121: {
Line 122: base.Init();
Line 123:
Line 124: lock(typeof(CuteChat.ChatSystem))
Line 125: {
Line 126: if(!CuteChat.ChatSystem.HasStarted)
Line 127: {
Line 128: CuteChat.ChatProvider.Instance=new CSChatProvider();
Line 129: CuteChat.ChatSystem.Start(new CuteChat.AppSystem());
Line 130: }
Line 131: }
Line 132: }
Line 133:
Line 134: public class CSChatProvider : ChatProvider
Line 135: {
Line 136: public override string GetConnectionString()
Line 137: {
Line 138: string connectionstring = Telligent.Components.DataProvider.GetConnectionString();
Line 139: if(connectionstring==null||connectionstring.Trim()=="")
Line 140: throw(new Exception("Missing appSetting : SiteSqlServer"));
Line 141: return connectionstring.Trim();
Line 142: }
Line 143:
Line 144: public override AppChatIdentity GetLogonIdentity()
Line 145: {
Line 146: CommunityServer.Components.User user = CommunityServer.Users.GetUser();
Line 147: if (user == null || user.IsAnonymous)
Line 148: return null;
Line 149: return new AppChatIdentity(user.DisplayName, false, ToUserId(user.Username), HttpContext.Current.Request.UserHostAddress);
Line 150: }
Line 151:
Line 152:
Line 153: private CommunityServer.Components.User SafeFindUser(string username)
Line 154: {
Line 155: HttpContext context = HttpContext.Current;
Line 156: if (context != null)
Line 157: return CommunityServer.Users.FindUserByUsername(username);
Line 158:
Line 159: try
Line 160: {
Line 161: CommunityServer.Components.CSContext csc = CommunityServer.Components.CSContext.Create(1);
Line 162:
Line 163: return CommunityServer.Users.FindUserByUsername(username);
Line 164: }
Line 165: catch
Line 166: {
Line 167: return null;
Line 168: }
Line 169: }
Line 170:
Line 171: public override string FindUserLoginName(string nickName)
Line 172: {
Line 173: CommunityServer.Components.User user = SafeFindUser(nickName);
Line 174: if (user == null || user.IsAnonymous)
Line 175: return null;
Line 176: return user.DisplayName;
Line 177: }
Line 178: public override bool GetUserInfo(string loginName, ref string nickName, ref bool isAdmin)
Line 179: {
Line 180: CommunityServer.Components.User user = SafeFindUser(loginName);
Line 181: if (user == null || user.IsAnonymous)
Line 182: return false;
Line 183: nickName = user.DisplayName;
Line 184: isAdmin = user.IsAdministrator;
Line 185: return true;
Line 186: }
Line 187: public override bool ValidateUser(string loginName, string password)
Line 188: {
Line 189: if (!Membership.ValidateUser(loginName, password)) return false;
Line 190: System.Web.Security.FormsAuthentication.SetAuthCookie(loginName, false, "/");
Line 191: return true;
Line 192: }
Line 193: }
Line 194:
Line 195:
Line 196: #line default
Line 197: #line hidden
Line 198:
Line 199:
Line 200: [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 201: public global_asax() {
Line 202: if ((global::ASP.global_asax.@__initialized == false)) {
Line 203: global::ASP.global_asax.@__initialized = true;
Line 204: }
Line 205: }
Line 206:
Line 207: protected ProfileCommon Profile {
Line 208: get {
Line 209: return ((ProfileCommon)(this.Context.Profile));
Line 210: }
Line 211: }
Line 212: }
Line 213: }
Line 214:
|
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433