Even after extensive research, I have been unable to find any implementation of Firebase PhoneAuth for Xamarin Android and I have already tried the answers from other questions similar to mine but those are just C# port of the methods but don't really work. I have tried it but ended up with NullPointerException while calling VerifyPhoneNumber.
LoginActivity.cs
...
void VerifyNumber(string mobile_no)
{
PhoneAuthCallbacks phoneAuthCallbacks = new PhoneAuthCallbacks();
PhoneAuthProvider.Instance.VerifyPhoneNumber(mobile_no, 60, Java.Util.Concurrent.TimeUnit.Seconds, this, phoneAuthCallbacks);
}
public class PhoneAuthCallbacks : PhoneAuthProvider.OnVerificationStateChangedCallbacks
{
public override void OnVerificationCompleted(PhoneAuthCredential credential)
{
FirebaseAuth.Instance.SignInWithCredential(credential);
System.Diagnostics.Debug.WriteLine("onVerificationCompleted");
}
public override void OnVerificationFailed(FirebaseException exception)
{
// This callback is invoked in an invalid request for verification is made,
// for instance if the the phone number format is not valid.
System.Diagnostics.Debug.WriteLine("onVerificationFailed: " + exception);
}
public override void OnCodeSent(string verificationId, PhoneAuthProvider.ForceResendingToken forceResendingToken)
{
// The SMS verification code has been sent to the provided phone number, we
// now need to ask the user to enter the code and then construct a credential
// by combining the code with a verification ID.
base.OnCodeSent(verificationId, forceResendingToken);
System.Diagnostics.Debug.WriteLine("onCodeSent" + verificationId);
}
}
Debug Log
10-05 16:35:45.265 D/Mono (19093): Loading reference 8 of /storage/emulated/0/Android/data/com.companyname.App1/files/.__override__/Delivery_DemoApp.dll asmctx DEFAULT, looking for Xamarin.Firebase.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
10-05 16:35:45.265 D/Mono (19093): Assembly Ref addref Delivery_DemoApp[0xa7179160] -> Xamarin.Firebase.Common[0xa7177e40]: 2
10-05 16:35:45.265 D/Mono (19093): Loading reference 1 of /storage/emulated/0/Android/data/com.companyname.App1/files/.__override__/Xamarin.Firebase.Common.dll asmctx DEFAULT, looking for Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065
10-05 16:35:45.265 D/Mono (19093): Assembly Ref addref Xamarin.Firebase.Common[0xa7177e40] -> Mono.Android[0xa7178620]: 12
10-05 16:35:45.265 D/Mono (19093): Loading reference 9 of /storage/emulated/0/Android/data/com.companyname.App1/files/.__override__/Delivery_DemoApp.dll asmctx DEFAULT, looking for Xamarin.Firebase.Auth, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
10-05 16:35:45.265 D/Mono (19093): Assembly Ref addref Delivery_DemoApp[0xa7179160] -> Xamarin.Firebase.Auth[0xa7177d80]: 2
10-05 16:35:45.266 D/Mono (19093): Loading reference 1 of /storage/emulated/0/Android/data/com.companyname.App1/files/.__override__/Xamarin.Firebase.Auth.dll asmctx DEFAULT, looking for Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065
10-05 16:35:45.266 D/Mono (19093): Assembly Ref addref Xamarin.Firebase.Auth[0xa7177d80] -> Mono.Android[0xa7178620]: 13
10-05 16:35:45.266 D/Mono (19093): Loading reference 2 of /storage/emulated/0/Android/data/com.companyname.App1/files/.__override__/Xamarin.Firebase.Auth.dll asmctx DEFAULT, looking for Xamarin.Firebase.Auth.Interop, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
10-05 16:35:45.266 D/Mono (19093): Assembly Ref addref Xamarin.Firebase.Auth[0xa7177d80] -> Xamarin.Firebase.Auth.Interop[0xa7177de0]: 2
10-05 16:35:45.266 D/Mono (19093): Loading reference 2 of /storage/emulated/0/Android/data/com.companyname.App1/files/.__override__/Xamarin.Firebase.Auth.Interop.dll asmctx DEFAULT, looking for Xamarin.Firebase.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
10-05 16:35:45.266 D/Mono (19093): Assembly Ref addref Xamarin.Firebase.Auth.Interop[0xa7177de0] -> Xamarin.Firebase.Common[0xa7177e40]: 3
10-05 16:35:45.266 D/Mono (19093): Loading reference 0 of /storage/emulated/0/Android/data/com.companyname.App1/files/.__override__/Xamarin.Firebase.Common.dll asmctx DEFAULT, looking for mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
10-05 16:35:45.266 D/Mono (19093): Assembly Ref addref Xamarin.Firebase.Common[0xa7177e40] -> mscorlib[0xa83b5220]: 15
10-05 16:35:45.266 D/Mono (19093): Loading reference 1 of /storage/emulated/0/Android/data/com.companyname.App1/files/.__override__/Xamarin.Firebase.Auth.Interop.dll asmctx DEFAULT, looking for Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065
10-05 16:35:45.266 D/Mono (19093): Assembly Ref addref Xamarin.Firebase.Auth.Interop[0xa7177de0] -> Mono.Android[0xa7178620]: 14
10-05 16:35:45.266 D/Mono (19093): Loading reference 0 of /storage/emulated/0/Android/data/com.companyname.App1/files/.__override__/Xamarin.Firebase.Auth.Interop.dll asmctx DEFAULT, looking for mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
10-05 16:35:45.266 D/Mono (19093): Assembly Ref addref Xamarin.Firebase.Auth.Interop[0xa7177de0] -> mscorlib[0xa83b5220]: 16
10-05 16:35:45.266 D/Mono (19093): Loading reference 3 of /storage/emulated/0/Android/data/com.companyname.App1/files/.__override__/Xamarin.Firebase.Auth.dll asmctx DEFAULT, looking for Xamarin.Firebase.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
10-05 16:35:45.266 D/Mono (19093): Assembly Ref addref Xamarin.Firebase.Auth[0xa7177d80] -> Xamarin.Firebase.Common[0xa7177e40]: 4
10-05 16:35:45.266 D/Mono (19093): Loading reference 0 of /storage/emulated/0/Android/data/com.companyname.App1/files/.__override__/Xamarin.Firebase.Auth.dll asmctx DEFAULT, looking for mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
10-05 16:35:45.267 D/Mono (19093): Assembly Ref addref Xamarin.Firebase.Auth[0xa7177d80] -> mscorlib[0xa83b5220]: 17
10-05 16:35:45.271 D/Mono (19093): Loading reference 4 of /storage/emulated/0/Android/data/com.companyname.App1/files/.__override__/Xamarin.Firebase.Auth.dll asmctx DEFAULT, looking for Java.Interop, Version=0.1.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065
10-05 16:35:45.271 D/Mono (19093): Assembly Ref addref Xamarin.Firebase.Auth[0xa7177d80] -> Java.Interop[0xa7178680]: 6
10-05 16:35:45.271 D/Mono (19093): Loading reference 10 of /storage/emulated/0/Android/data/com.companyname.App1/files/.__override__/Delivery_DemoApp.dll asmctx DEFAULT, looking for Xamarin.GooglePlayServices.Basement, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
10-05 16:35:45.272 D/Mono (19093): Assembly Ref addref Delivery_DemoApp[0xa7179160] -> Xamarin.GooglePlayServices.Basement[0xa7178140]: 2
10-05 16:35:45.272 D/Mono (19093): Loading reference 1 of /storage/emulated/0/Android/data/com.companyname.App1/files/.__override__/Xamarin.GooglePlayServices.Basement.dll asmctx DEFAULT, looking for Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065
10-05 16:35:45.272 D/Mono (19093): Assembly Ref addref Xamarin.GooglePlayServices.Basement[0xa7178140] -> Mono.Android[0xa7178620]: 15
10-05 16:35:45.272 D/Mono (19093): Loading reference 6 of /storage/emulated/0/Android/data/com.companyname.App1/files/.__override__/Xamarin.Firebase.Auth.dll asmctx DEFAULT, looking for Xamarin.GooglePlayServices.Basement, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
10-05 16:35:45.272 D/Mono (19093): Assembly Ref addref Xamarin.Firebase.Auth[0xa7177d80] -> Xamarin.GooglePlayServices.Basement[0xa7178140]: 3
10-05 16:35:45.273 D/Mono (19093): Loading reference 0 of /storage/emulated/0/Android/data/com.companyname.App1/files/.__override__/Xamarin.GooglePlayServices.Basement.dll asmctx DEFAULT, looking for mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
10-05 16:35:45.273 D/Mono (19093): Assembly Ref addref Xamarin.GooglePlayServices.Basement[0xa7178140] -> mscorlib[0xa83b5220]: 18
10-05 16:35:45.330 D/Mono (19093): Loading reference 2 of /storage/emulated/0/Android/data/com.companyname.App1/files/.__override__/Xamarin.Firebase.Common.dll asmctx DEFAULT, looking for Java.Interop, Version=0.1.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065
10-05 16:35:45.330 D/Mono (19093): Assembly Ref addref Xamarin.Firebase.Common[0xa7177e40] -> Java.Interop[0xa7178680]: 7
10-05 16:35:45.383 D/FirebaseApp(19093): com.google.firebase.iid.FirebaseInstanceId is not linked. Skipping initialization.
10-05 16:35:45.384 D/FirebaseApp(19093): com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
10-05 16:35:45.385 D/FirebaseApp(19093): com.google.android.gms.measurement.AppMeasurement is not linked. Skipping initialization.
10-05 16:35:45.404 D/Mono (19093): Loading reference 5 of /storage/emulated/0/Android/data/com.companyname.App1/files/.__override__/Xamarin.Firebase.Auth.dll asmctx DEFAULT, looking for Xamarin.GooglePlayServices.Tasks, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
10-05 16:35:45.405 D/Mono (19093): Assembly Ref addref Xamarin.Firebase.Auth[0xa7177d80] -> Xamarin.GooglePlayServices.Tasks[0xa7178200]: 2
10-05 16:35:45.405 D/Mono (19093): Loading reference 1 of /storage/emulated/0/Android/data/com.companyname.App1/files/.__override__/Xamarin.GooglePlayServices.Tasks.dll asmctx DEFAULT, looking for Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065
10-05 16:35:45.405 D/Mono (19093): Assembly Ref addref Xamarin.GooglePlayServices.Tasks[0xa7178200] -> Mono.Android[0xa7178620]: 16
10-05 16:35:45.405 D/Mono (19093): Loading reference 4 of /storage/emulated/0/Android/data/com.companyname.App1/files/.__override__/Xamarin.Firebase.Auth.Interop.dll asmctx DEFAULT, looking for Xamarin.GooglePlayServices.Tasks, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
10-05 16:35:45.405 D/Mono (19093): Assembly Ref addref Xamarin.Firebase.Auth.Interop[0xa7177de0] -> Xamarin.GooglePlayServices.Tasks[0xa7178200]: 3
10-05 16:35:45.405 D/Mono (19093): Loading reference 3 of /storage/emulated/0/Android/data/com.companyname.App1/files/.__override__/Xamarin.Firebase.Common.dll asmctx DEFAULT, looking for Xamarin.GooglePlayServices.Tasks, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
10-05 16:35:45.405 D/Mono (19093): Assembly Ref addref Xamarin.Firebase.Common[0xa7177e40] -> Xamarin.GooglePlayServices.Tasks[0xa7178200]: 4
Unhandled Exception: Java.Lang.NullPointerException: <Timeout exceeded getting exception details>
Stack Trace
>Java.Lang.NullPointerException: Attempt to invoke virtual method 'void com.google.firebase.auth.FirebaseAuth.zza(java.lang.String, long, java.util.concurrent.TimeUnit, com.google.firebase.auth.PhoneAuthProvider$OnVerificationStateChangedCallbacks, android.app.Activity, java.util.concurrent.Executor, boolean)' on a null object reference
at Java.Interop.JniEnvironment+InstanceMethods.CallVoidMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args) [0x00069] in <3beddfcb1eb547cd8ce47c3097f6eaeb>:0
at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeVirtualVoidMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x0002a] in <3beddfcb1eb547cd8ce47c3097f6eaeb>:0
at Firebase.Auth.PhoneAuthProvider.VerifyPhoneNumber (System.String phoneNumber, System.Int64 timeout, Java.Util.Concurrent.TimeUnit unit, Android.App.Activity activity, Firebase.Auth.PhoneAuthProvider+OnVerificationStateChangedCallbacks callbacks) [0x000af] in <fd3fe568403d40c2b79ab43d84a24199>:0
at Delivery_DemoApp.Helpers.Firebase_Manager.SendCodeVerification (System.String mobile, Delivery_DemoApp.LoginActivity Instance) [0x00043] in C:\Users\bilka\source\repos\Delivery_DemoApp\Delivery_DemoApp\Helpers\Firebase_Manager.cs:76
--- End of managed Java.Lang.NullPointerException stack trace ---
java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.firebase.auth.FirebaseAuth.zza(java.lang.String, long, java.util.concurrent.TimeUnit, com.google.firebase.auth.PhoneAuthProvider$OnVerificationStateChangedCallbacks, android.app.Activity, java.util.concurrent.Executor, boolean)' on a null object reference
at com.google.firebase.auth.PhoneAuthProvider.zza(Unknown Source:30)
at com.google.firebase.auth.PhoneAuthProvider.verifyPhoneNumber(Unknown Source:10)
at mono.android.view.View_OnClickListenerImplementor.n_onClick(Native Method)
at mono.android.view.View_OnClickListenerImplementor.onClick(View_OnClickListenerImplementor.java:30)
at android.view.View.performClick(View.java:6297)
at android.view.View$PerformClick.run(View.java:24797)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6626)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:811)
Has anyone been able to implement it? If so, please provide assistance
As found earlier, this is a known issue with the new Xamarin Firebase Auth package where the Firebase Auth instance is null, details of which can be found at https://github.com/xamarin/GooglePlayServicesComponents/issues/223.
A temporary fix is also mentioned (which has indeed solved my issue, at least for sign up and login functions) as shown below
var instance = FirebaseAuth.GetInstance(app);
if (instance == null)
{
instance = new FirebaseAuth(app);
}
As it appears this is still an issue in the current Xamarin Firebase Auth package. Building on from Bilal's solution I have found a way to get Phone Auth working. You can use the FirebaseAuth instance to get a PhoneAuthProvider instance.
var instance = FirebaseAuth.GetInstance(FirebaseApp.GetInstance(FirebaseApp.DefaultAppName));
if (instance == null)
{
instance = new FirebaseAuth(FirebaseApp.GetInstance(FirebaseApp.DefaultAppName));
}
var providerInstance = PhoneAuthProvider.GetInstance(instance);
providerInstance.VerifyPhoneNumber(numberWithCode, 60, Java.Util.Concurrent.TimeUnit.Seconds, this, PhoneAuthCallbacks);
Hopefully this helps someone
Related
Context :
Windows 2019 Server
ASP.NET MVC using .NET Framework 4.5.2
log4net 2.0.12
In web.config (inside <configSections>) I have:
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/>
In the same file (inside <configuration>)
<log4net debug="true">
<root>
<level value="ALL" />
</root>
<logger name="inboundAPI">
<level value="ALL" />
<appender-ref ref="RollingFileAppender" />
</logger>
<appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender">
<file value="C:\temp\inboundAPI.log" />
<appendToFile value="true" />
<preserveLogFileNameExtension value="true"/>
<rollingStyle value="Date"/>
<datePattern value=".yyyyMMdd"/>
<staticLogFileName value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level - %message%newline" />
</layout>
</appender>
</log4net>
Finally inside Global.asax.vb I have:
Sub Application_Start()
...
log4net.Config.XmlConfigurator.Configure()
End Sub
The directory (C:\temp\) where the log is supposed to be is Full Access for Everyone.
C:\>cacls C:\temp
C:\temp Everyone:(OI)(CI)F
BUILTIN\IIS_IUSRS:(OI)(CI)F
NT AUTHORITY\SYSTEM:(OI)(CI)(ID)F
BUILTIN\Administrators:(OI)(CI)(ID)F
BUILTIN\Users:(OI)(CI)(ID)R
BUILTIN\Users:(CI)(ID)(special access:)
FILE_APPEND_DATA
BUILTIN\Users:(CI)(ID)(special access:)
FILE_WRITE_DATA
CREATOR OWNER:(OI)(CI)(IO)(ID)F
The file is created and inherits the proper rights but remain empty while it is not empty on my development PC, using IIS Express.
C:\temp>dir
Volume in drive C is Windows
Volume Serial Number is 3A59-32AE
Directory of C:\temp
06/23/2021 07:18 PM <DIR> .
06/23/2021 07:18 PM <DIR> ..
06/23/2021 07:18 PM 0 inboundAPI.log
06/23/2021 07:41 PM 5,382 log4net.txt
2 File(s) 5,382 bytes
2 Dir(s) 15,342,981,120 bytes free
C:\temp>cacls inboundAPI.log
C:\temp\inboundAPI.log Everyone:(ID)F
BUILTIN\IIS_IUSRS:(ID)F
NT AUTHORITY\SYSTEM:(ID)F
BUILTIN\Administrators:(ID)F
BUILTIN\Users:(ID)R
IIS APPPOOL\InboundAPI:(ID)F
I have a system.diagnotic section in the same web.config file:
<system.diagnostics>
<trace autoflush="true">
<listeners>
<add
name="textWriterTraceListener"
type="System.Diagnostics.TextWriterTraceListener"
initializeData="C:\temp\log4net.txt" />
</listeners>
</trace>
</system.diagnostics>
That is writing to the same directory successfully and here is the content as it might help
log4net: log4net assembly [log4net, Version=2.0.12.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a]. Loaded from [C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\inboundapi\7b262cab\40e772b2\assembly\dl3\b60f6c7c\739e9dfa_715cd701\log4net.dll]. (.NET Runtime [4.0.30319.42000] on Microsoft Windows NT 10.0.17763.0)
log4net: defaultRepositoryType [log4net.Repository.Hierarchy.Hierarchy]
log4net: Creating repository for assembly [InboundAPI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]
log4net: Assembly [InboundAPI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null] Loaded From [C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\inboundapi\7b262cab\40e772b2\assembly\dl3\df6af0be\ce6bcea0_5268d701\InboundAPI.dll]
log4net: Assembly [InboundAPI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null] does not have a RepositoryAttribute specified.
log4net: Assembly [InboundAPI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null] using repository [log4net-default-repository] and repository type [log4net.Repository.Hierarchy.Hierarchy]
log4net: Creating repository [log4net-default-repository] using type [log4net.Repository.Hierarchy.Hierarchy]
log4net: configuring repository [log4net-default-repository] using .config file section
log4net: Application config file is [C:\inetpub\wwwroot\InboundAPI\web.config]
log4net: Configuring Repository [log4net-default-repository]
log4net: Configuration update mode [Merge].
log4net: Logger [root] Level string is [ALL].
log4net: Logger [root] level set to [name="ALL",value=-2147483648].
log4net: Retrieving an instance of log4net.Repository.Logger for logger [inboundAPI].
log4net: Setting [inboundAPI] additivity to [True].
log4net: Logger [inboundAPI] Level string is [ALL].
log4net: Logger [inboundAPI] level set to [name="ALL",value=-2147483648].
log4net: Loading Appender [RollingFileAppender] type: [log4net.Appender.RollingFileAppender]
log4net: Setting Property [File] to String value [C:\temp\inboundAPI.log]
log4net: Setting Property [AppendToFile] to Boolean value [True]
log4net: Setting Property [PreserveLogFileNameExtension] to Boolean value [True]
log4net: Setting Property [RollingStyle] to RollingMode value [Date]
log4net: Setting Property [DatePattern] to String value [.yyyyMMdd]
log4net: Setting Property [StaticLogFileName] to Boolean value [True]
log4net: Converter [message] Option [] Format [min=-1,max=2147483647,leftAlign=False]
log4net: Converter [newline] Option [] Format [min=-1,max=2147483647,leftAlign=False]
log4net: Setting Property [ConversionPattern] to String value [%date [%thread] %-5level - %message%newline]
log4net: Converter [date] Option [] Format [min=-1,max=2147483647,leftAlign=False]
log4net: Converter [literal] Option [ [] Format [min=-1,max=2147483647,leftAlign=False]
log4net: Converter [thread] Option [] Format [min=-1,max=2147483647,leftAlign=False]
log4net: Converter [literal] Option [] ] Format [min=-1,max=2147483647,leftAlign=False]
log4net: Converter [level] Option [] Format [min=5,max=2147483647,leftAlign=True]
log4net: Converter [literal] Option [ - ] Format [min=-1,max=2147483647,leftAlign=False]
log4net: Converter [message] Option [] Format [min=-1,max=2147483647,leftAlign=False]
log4net: Converter [newline] Option [] Format [min=-1,max=2147483647,leftAlign=False]
log4net: Setting Property [Layout] to object [log4net.Layout.PatternLayout]
log4net: Type = [0], r0 = [.19700101], r1 = [.19700101]
log4net: Type = [1], r0 = [.19700101], r1 = [.19700101]
log4net: Type = [2], r0 = [.19700101], r1 = [.19700101]
log4net: Type = [3], r0 = [.19700101], r1 = [.19700102]
log4net: Searched for existing files in [C:\temp]
log4net: curSizeRollBackups starts at [0]
log4net: Opening file for writing [C:\temp\inboundAPI.log] append [True]
log4net: Created Appender [RollingFileAppender]
log4net: Adding appender named [RollingFileAppender] to logger [inboundAPI].
log4net: Hierarchy Threshold []
I think that I've read dozens of posts here and there and it might look like a duplicate but I swear that I tried all of what I read.
I still don't understand the following:
(1) Why is everything working on my PC with IIS Express?
(2) Why is the file created to suggest that rights are correct but remains empty?
(3) Why is the same IIS able to fill the log4net diagnostic in the same directory?
(4) Why is that diagnostic is not showing any error?
(5) Why is there nothing in the event log of Windows?
My brain is exploding!
I am using d8+r8+Multi-Dex to deploy my Xamarin Forms App. However, when enabling r8 I am getting some weired exception. I checked debug mode and I am getting this weired error. I have also configured proguard file to exempt some of the files, but it didn't help.
06-17 19:06:08.090 D/Mono (31705): Assembly Loader probing location: '//Facades/Xamarin.Forms.Platform.Android.AppLinks.exe'.
06-17 19:06:08.195 D/Mono (31705): DllImport searching in: '__Internal' ('(null)').
06-17 19:06:08.195 D/Mono (31705): Searching for 'java_interop_jnienv_call_static_int_method_a'.
06-17 19:06:08.195 D/Mono (31705): Probing 'java_interop_jnienv_call_static_int_method_a'.
06-17 19:06:08.196 D/Mono (31705): Found as 'java_interop_jnienv_call_static_int_method_a'.
06-17 19:06:08.322 D/Mono (31705): DllImport searching in: '__Internal' ('(null)').
06-17 19:06:08.322 D/Mono (31705): Searching for 'java_interop_jnienv_call_nonvirtual_int_method_a'.
06-17 19:06:08.322 D/Mono (31705): Probing 'java_interop_jnienv_call_nonvirtual_int_method_a'.
06-17 19:06:08.322 D/Mono (31705): Found as 'java_interop_jnienv_call_nonvirtual_int_method_a'.
06-17 19:06:08.389 I/FA (31705): Tag Manager is not found and thus will not be used
06-17 19:06:08.391 D/OpenGLRenderer(31705): HWUI GL Pipeline
06-17 19:06:08.398 E/FA (31705): Missing google_app_id. Firebase Analytics disabled. See
06-17 19:06:08.560 D/Mono (31705): Requesting loading reference 9 (of 13) of /storage/emulated/0/Android/data/com.AZEE.wquran/files/.__override__/Xamarin.AndroidX.Fragment.dll
06-17 19:06:08.560 D/Mono (31705): Loading reference 9 of /storage/emulated/0/Android/data/com.AZEE.wquran/files/.__override__/Xamarin.AndroidX.Fragment.dll asmctx DEFAULT, looking for Xamarin.AndroidX.Lifecycle.LiveData.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
06-17 19:06:08.560 D/Mono (31705): Assembly Ref addref Xamarin.AndroidX.Fragment[0xe9e72860] -> Xamarin.AndroidX.Lifecycle.LiveData.Core[0xe9e72aa0]: 2
06-17 19:06:08.652 D/Mono (31705): DllImport searching in: '__Internal' ('(null)').
06-17 19:06:08.652 D/Mono (31705): Searching for 'java_interop_jnienv_call_object_method'.
06-17 19:06:08.652 D/Mono (31705): Probing 'java_interop_jnienv_call_object_method'.
06-17 19:06:08.652 D/Mono (31705): Found as 'java_interop_jnienv_call_object_method'.
06-17 19:06:08.825 W/DynamiteModule(31705): Local module descriptor class for com.google.android.gms.ads.dynamite not found.
**Java.Lang.NoSuchMethodError:** 'no non-static method "Landroidx/fragment/app/FragmentTransaction;.add(ILandroidx/fragment/app/Fragment;)Landroidx/fragment/app/FragmentTransaction;"'
Thread started: <Thread Pool> #10
Thread started: <Thread Pool> #11
Thread finished: <Thread Pool> #7
The thread 0x7 has exited with code 0 (0x0).
"<threadpool thread>"
"<threadpool thread>"
"<unnamed thread>" at <unknown> <0xffffffff>
at (wrapper managed-to-native) System.Diagnostics.Debugger.Mono_UnhandledException_internal (System.Exception) <0x00012>
at System.Diagnostics.Debugger.Mono_UnhandledException (System.Exception) [0x00000] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/mcs/class/corlib/System.Diagnostics/Debugger.cs:125
at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.63 (intptr,intptr) [0x00020] in <eaa205f580954a64824b74a79fa87c62>:0
at (wrapper native-to-managed) Android.Runtime.DynamicMethodNameCounter.63 (intptr,intptr) [0x00030] in <eaa205f580954a64824b74a79fa87c62>:0
proguard file
-dontwarn java.lang.invoke.**
-keep public class * implements androidx.versionedparcelable.VersionedParcelable
-keep class com.google.android.gms.** { *; }
-dontwarn com.google.android.gms.**
-keep class android.support.V7.**
-keep class android.support.v7.widget.** { *; }
-dontwarn android.support.v7.widget.**
-keep class android.support.v4.widget.Space { *; }
-dontwarn android.support.v4.widget.Space
-keep class MediaManager.CrossMediaManager.**
-keep class android.support.v4.media.MediaBrowserCompat
-keep class android.support.v4.media.**
-keep class androidX.appCompat.widget.**
-keep class Plugin.InAppBilling.**
-keep class Plugin.InAppBilling.InAppBillingImplementation.**
I removed the last 6 lines from the proguard file and it worked.
-keep class MediaManager.CrossMediaManager.**
-keep class android.support.v4.media.MediaBrowserCompat
-keep class android.support.v4.media.**
-keep class androidX.appCompat.widget.**
-keep class Plugin.InAppBilling.**
-keep class Plugin.InAppBilling.InAppBillingImplementation.**
Xamarin Forms app throws following error during on click on Navigation Button.
If I comment the following method DisplaySoccerStatus(); in the SoccerDailyStatus class then the app will work. So I assume, few records in the database which are null is causing the issue ? Not sure, how can I resolve the problem ?
SQLite.SQLiteException: Could not open database file: /data/user/0/com.companyname.soccerapp/files/.config/soccerpep (CannotOpen
public partial class SoccerDailyStatus : ContentPage
{
private SQLiteConnection conn;
SoccerAvailability status;
public SoccerDailyStatus(SoccerAvailability soccerStatus)
{
InitializeComponent();
status = soccerStatus;
BindingContext = status;
//DisplaySoccerStatus();
}
protected override async void OnAppearing()
{
conn = DependencyService.Get<Isqlite>().GetConnection();
conn.CreateTable<SoccerAvailability>();
base.OnAppearing();
async Task DisplaySoccerStatus()
{
var datetoday = DateTime.Now.ToString("ddMMyyyy");
//List<SoccerAvailability> myList = (from x in conn.Table<SoccerAvailability>() select x).ToList();
List<SoccerAvailability> myList = (from x in conn.Table<SoccerAvailability>().Where(x => x.CurrentDate == datetoday) select x).ToList();
if (myList != null)
{
SoccerAvailability soccerAvailability = new SoccerAvailability();
soccerAvailability.SoccerStatus = myList[0].SoccerStatus;
soccerAvailability.CurrentDate = DateTime.Now.ToString("ddMMyyyy");
await Navigation.PushAsync(new SoccerDailyStatus(soccerAvailability) { });
}
else
{
await DisplayAlert("Notification", "Unable to proccess status", "Cancel");
}
}
await DisplaySoccerStatus();
}
}
}
Stack Trace:
05-04 13:51:12.462 D/Mono (23709): DllImport attempting to load: '__Internal'.
05-04 13:51:12.462 D/Mono (23709): DllImport loaded library '(null)'.
05-04 13:51:12.462 D/Mono (23709): DllImport searching in: '__Internal' ('(null)').
05-04 13:51:12.462 D/Mono (23709): Searching for 'monodroid_get_system_property'.
05-04 13:51:12.462 D/Mono (23709): Probing 'monodroid_get_system_property'.
05-04 13:51:12.462 D/Mono (23709): Found as 'monodroid_get_system_property'.
05-04 13:51:12.462 D/Mono (23709): DllImport searching in: '__Internal' ('(null)').
05-04 13:51:12.462 D/Mono (23709): Searching for 'monodroid_free'.
05-04 13:51:12.462 D/Mono (23709): Probing 'monodroid_free'.
05-04 13:51:12.462 D/Mono (23709): Found as 'monodroid_free'.
05-04 13:51:12.904 D/Mono (23709): DllImport searching in: 'e_sqlite3' ('libe_sqlite3.so').
05-04 13:51:12.904 D/Mono (23709): Searching for 'sqlite3_changes'.
05-04 13:51:13.123 I/art (23709): Starting a blocking GC Explicit
05-04 13:51:13.132 I/art (23709): Explicit concurrent mark sweep GC freed 206(21KB) AllocSpace objects, 0(0B) LOS objects, 39% free, 3MB/5MB, paused 651us total 8.285ms
05-04 13:51:13.134 D/Mono (23709): GC_TAR_BRIDGE bridges 87 objects 901 opaque 262 colors 87 colors-bridged 87 colors-visible 87 xref 0 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.03ms tarjan 0.19ms scc-setup 0.04ms gather-xref 0.02ms xref-setup 0.02ms cleanup 0.74ms
05-04 13:51:13.134 D/Mono (23709): GC_BRIDGE: Complete, was running for 11.21ms
05-04 13:51:13.135 D/Mono (23709): GC_MINOR: (Nursery full) time 7.23ms, stw 7.85ms promoted 1963K major size: 2848K in use: 2132K los size: 1024K in use: 55K
05-04 13:51:13.306 D/Mono (23709): GC_TAR_BRIDGE bridges 0 objects 0 opaque 0 colors 0 colors-bridged 0 colors-visible 87 xref 0 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.03ms tarjan 0.19ms scc-setup 0.04ms gather-xref 0.02ms xref-setup 0.02ms cleanup 0.02ms
05-04 13:51:13.306 D/Mono (23709): GC_BRIDGE: Complete, was running for 0.15ms
05-04 13:51:13.307 D/Mono (23709): GC_MINOR: (Nursery full) time 5.49ms, stw 5.88ms promoted 2025K major size: 4992K in use: 4209K los size: 1024K in use: 55K
05-04 13:51:13.468 D/Mono (23709): GC_TAR_BRIDGE bridges 0 objects 0 opaque 0 colors 0 colors-bridged 0 colors-visible 87 xref 0 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.03ms tarjan 0.19ms scc-setup 0.04ms gather-xref 0.02ms xref-setup 0.02ms cleanup 0.03ms
05-04 13:51:13.468 D/Mono (23709): GC_BRIDGE: Complete, was running for 0.26ms
05-04 13:51:13.468 D/Mono (23709): GC_MINOR: (Nursery full) time 6.25ms, stw 6.64ms promoted 1963K major size: 7024K in use: 6222K los size: 1024K in use: 55K
05-04 13:51:13.629 D/Mono (23709): GC_TAR_BRIDGE bridges 0 objects 0 opaque 0 colors 0 colors-bridged 0 colors-visible 87 xref 0 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.03ms tarjan 0.19ms scc-setup 0.04ms gather-xref 0.02ms xref-setup 0.02ms cleanup 0.03ms
05-04 13:51:13.629 D/Mono (23709): GC_BRIDGE: Complete, was running for 0.19ms
05-04 13:51:13.629 D/Mono (23709): GC_MINOR: (Nursery full) time 7.41ms, stw 7.90ms promoted 1886K major size: 9024K in use: 8157K los size: 1024K in use: 55K
05-04 13:51:13.817 D/Mono (23709): GC_TAR_BRIDGE bridges 0 objects 0 opaque 0 colors 0 colors-bridged 0 colors-visible 87 xref 0 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.03ms tarjan 0.19ms scc-setup 0.04ms gather-xref 0.02ms xref-setup 0.02ms cleanup 0.03ms
05-04 13:51:13.817 D/Mono (23709): GC_BRIDGE: Complete, was running for 0.19ms
05-04 13:51:13.817 D/Mono (23709): GC_MINOR: (Nursery full) time 9.31ms, stw 9.72ms promoted 1818K major size: 10896K in use: 10021K los size: 1024K in use: 55K
05-04 13:51:14.140 I/art (23709): Starting a blocking GC Explicit
05-04 13:51:14.147 I/art (23709): Explicit concurrent mark sweep GC freed 156(9KB) AllocSpace objects, 0(0B) LOS objects, 39% free, 3MB/5MB, paused 599us total 6.464ms
05-04 13:51:14.147 D/Mono (23709): GC_TAR_BRIDGE bridges 29 objects 29 opaque 0 colors 29 colors-bridged 29 colors-visible 29 xref 0 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.04ms tarjan 0.03ms scc-setup 0.03ms gather-xref 0.02ms xref-setup 0.02ms cleanup 0.27ms
05-04 13:51:14.147 D/Mono (23709): GC_BRIDGE: Complete, was running for 7.41ms
05-04 13:51:14.147 D/Mono (23709): GC_MINOR: (Nursery full) time 7.24ms, stw 7.62ms promoted 501K major size: 11472K in use: 10539K los size: 1024K in use: 55K
05-04 13:51:14.157 D/Mono (23709): DllImport searching in: 'e_sqlite3' ('libe_sqlite3.so').
05-04 13:51:14.158 D/Mono (23709): Searching for 'sqlite3_close_v2'.
05-04 13:51:14.651 I/Choreographer(23709): Skipped 167 frames! The application may be doing too much work on its main thread.
05-04 13:51:14.688 E/EGL_emulation(23709): tid 23733: swapBuffers(531): error 0x300d (EGL_BAD_SURFACE)
05-04 13:51:14.688 W/OpenGLRenderer(23709): swapBuffers encountered EGL_BAD_SURFACE on 0x9c46bd40, halting rendering...
05-04 13:51:14.690 D/EGL_emulation(23709): eglMakeCurrent: 0xb077de80: ver 3 1 (tinfo 0x9c459e20)
Unhandled Exception:
SQLite.SQLiteException: Could not open database file: /data/user/0/com.companyname.soccerapp/files/.config/soccerpep (CannotOpen)
I think the problem is due to the async method DisplaySoccerStatus called in ctor.
A single data connection cannot be used simultaneously in two or more threads.
I suggest two things:
Call your DisplaySoccerStatus in async onAppearing and use await DisplaySoccerStatus. Oh, and use async Task DisplaySoccerStatus and not async void so you can know when task is finished.
The async void case is a "fire and forget": You start the task chain, but you don't care about when it's finished. When the function returns, all you know is that everything up to the first await has executed. Everything after the first await will run at some unspecified point in the future that you have no access to.
Move your connection in a singleton declared on app.xaml.xs as suggested in the official documentation
i have a .net app that was in .net 3.0 and using crystal reports 10.5
we migrated to .net 4.5 and a new development/testing web server using .net 4.5
now the application will not load.
the errors that i receive are:
Server Error in '/' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
Source Error:
Line 16: <compilation debug="true" targetFramework="4.5">
Line 17: <assemblies>
Line 18: <add assembly="CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />
Line 19: <add assembly="CrystalDecisions.Shared, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />
Line 20: <add assembly="CrystalDecisions.ReportSource, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />
Source File: E:\IIS_Sites\NOSSA\WebSAR\3.8.1\web.config Line: 18
Assembly Load Trace: The following information can be helpful to determine why the assembly 'CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' could not be loaded.
Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable c:\windows\system32\inetsrv\w3wp.exe
--- A detailed error log follows.
=== Pre-bind state information ===
LOG: DisplayName = CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304
(Fully-specified)
LOG: Appbase = file:///C:/inetpub/wwwroot/
LOG: Initial PrivatePath = C:\inetpub\wwwroot\bin
Calling assembly : (Unknown).
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\inetpub\wwwroot\web.config
LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304
LOG: The same bind was seen before, and was failed with hr = 0x80070002.
i have installed the crystal runtime.
i'm not sure what else to try.
thanks
Are the following files in the bin directory of your website/application?
crystaldecisions.crystalreports.engine.dll, crystaldecisions.reportsource.dll, crystaldecisions.shared.dll, crystaldecisions.web.dll.
Also, I believe that version of CR is compiled under .NET 2.0 so you may need to enable the legacyV2 runtime. You can do so via the app.config file by adding useLegacyV2RuntimeActivationPolicy="true" to the startup element.
Or, you can do it in code by using the RuntimePolicyHelper class.
eg.
Imports System.Runtime.InteropServices
Imports System.Runtime.CompilerServices
'instantiate your class
Public Sub New()
Try
'runtime support for mixed mode assemblies
'this is used to load .NET 2.0 assemblies that crystal reports is built against.
If RuntimePolicyHelper.LegacyV2RuntimeEnabledSuccessfully = True Then
Else
If MsgBox("Legacy CLR could not be loaded. Continue?", _
vbYesNo + vbExclamation, _
"Failed to load legacy runtime.") = vbNo Then
Application.Exit()
End If
End If
Catch ex As Exception
ex = New Exception(ex.Message & vbCrLf & ex.StackTrace)
Throw ex
End Try
End Sub
Public NotInheritable Class RuntimePolicyHelper
Private Sub New()
End Sub
Public Shared Property LegacyV2RuntimeEnabledSuccessfully() As Boolean
Get
Return m_LegacyV2RuntimeEnabledSuccessfully
End Get
Private Set(value As Boolean)
m_LegacyV2RuntimeEnabledSuccessfully = value
End Set
End Property
Private Shared m_LegacyV2RuntimeEnabledSuccessfully As Boolean
Shared Sub New()
Try
Dim clrRuntimeInfo As ICLRRuntimeInfo = _
DirectCast(RuntimeEnvironment.GetRuntimeInterfaceAsObject(Guid.Empty, _
GetType(ICLRRuntimeInfo).GUID), ICLRRuntimeInfo)
Try
clrRuntimeInfo.BindAsLegacyV2Runtime()
LegacyV2RuntimeEnabledSuccessfully = True
Catch generatedExceptionName As COMException
LegacyV2RuntimeEnabledSuccessfully = False
End Try
Catch ex As Exception
ex = New Exception(ex.Message & vbCrLf & ex.StackTrace)
Throw ex
End Try
End Sub
<ComImport()> _
<InterfaceType(ComInterfaceType.InterfaceIsIUnknown)> _
<Guid("xxxxxxx-xxxxxxx-xxxxxxx-xxxxxxx")> _
Private Interface ICLRRuntimeInfo
Sub xGetVersionString()
Sub xGetRuntimeDirectory()
Sub xIsLoaded()
Sub xIsLoadable()
Sub xLoadErrorString()
Sub xLoadLibrary()
Sub xGetProcAddress()
Sub xGetInterface()
Sub xSetDefaultStartupFlags()
Sub xGetDefaultStartupFlags()
<MethodImpl(MethodImplOptions.InternalCall, _
MethodCodeType:=MethodCodeType.Runtime)> _
Sub BindAsLegacyV2Runtime()
End Interface
End Class
Please note that I didn't come up with this code - I may have even found it on this site - but I can't find the original contributor. However, it works for me so you may want to give it a try.
I recently installed the latest PowerTools on Tridion 2011 SP1. After installing my CM gives the following error.
Uncaught ReferenceError: Tridion is not defined
Attaching a screenshot of the error below
If now I remove the PowerTools, I get an following error.
System.IO.FileNotFoundException: Could not load file or assembly 'Interop.TDSI18NLib, Version=5.4.0.0, Culture=neutral, PublicKeyToken=ddfc895746e5ee6b' or one of its dependencies. The system cannot find the file specified. File name: 'Interop.TDSI18NLib, Version=5.4.0.0, Culture=neutral, PublicKeyToken=ddfc895746e5ee6b' at Tridion.Web.UI.Models.TCM54.LocalizationModule.InitializeCulture(Object sender, EventArgs args) at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll Running under executable C:\Windows\SysWOW64\inetsrv\w3wp.exe --- A detailed error log follows. === Pre-bind state information === LOG: User = NT AUTHORITY\NETWORK SERVICE LOG: DisplayName = Interop.TDSI18NLib, Version=5.4.0.0, Culture=neutral, PublicKeyToken=ddfc895746e5ee6b (Fully-specified) LOG: Appbase = file:///C:/Program Files (x86)/Tridion/web/WebUI/WebRoot/ LOG: Initial PrivatePath = C:\Program Files (x86)\Tridion\web\WebUI\WebRoot\bin Calling assembly : Tridion.Web.UI.Models.TCM54, Version=6.1.0.55920, Culture=neutral, PublicKeyToken=ddfc895746e5ee6b. === LOG: This bind starts in default load context. LOG: Using application configuration file: C:\Program Files (x86)\Tridion\web\WebUI\WebRoot\web.config LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet.config LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config. LOG: Post-policy reference: Interop.TDSI18NLib, Version=5.4.0.0, Culture=neutral, PublicKeyToken=ddfc895746e5ee6b LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/webui/f9209e65/566ab287/Interop.TDSI18NLib.DLL. LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/webui/f9209e65/566ab287/Interop.TDSI18NLib/Interop.TDSI18NLib.DLL. LOG: Attempting download of new URL file:///C:/Program Files (x86)/Tridion/web/WebUI/WebRoot/bin/Interop.TDSI18NLib.DLL. LOG: Attempting download of new URL file:///C:/Program Files (x86)/Tridion/web/WebUI/WebRoot/bin/Interop.TDSI18NLib/Interop.TDSI18NLib.DLL. LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/webui/f9209e65/566ab287/Interop.TDSI18NLib.EXE. LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/webui/f9209e65/566ab287/Interop.TDSI18NLib/Interop.TDSI18NLib.EXE. LOG: Attempting download of new URL file:///C:/Program Files (x86)/Tridion/web/WebUI/WebRoot/bin/Interop.TDSI18NLib.EXE. LOG: Attempting download of new URL file:///C:/Program Files (x86)/Tridion/web/WebUI/WebRoot/bin/Interop.TDSI18NLib/Interop.TDSI18NLib.EXE.
Updated - Screenshot of the Error
The error from HTML as suggested by Frank.
System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Tridion.ContentManager.CoreService.Client, Version=6.1.0.996, Culture=neutral, PublicKeyToken=ddfc895746e5ee6b' or one of its dependencies. The system cannot find the file specified.
File name: 'Tridion.ContentManager.CoreService.Client, Version=6.1.0.996, Culture=neutral, PublicKeyToken=ddfc895746e5ee6b'
at System.Signature.GetSignature(SignatureStruct& signature, Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType)
at System.Signature..ctor(IRuntimeMethodInfo methodHandle, RuntimeType declaringType)
at System.Reflection.RuntimeMethodInfo.FetchNonReturnParameters()
at System.Reflection.RuntimeMethodInfo.GetParameters()
at System.ServiceModel.Description.ServiceReflector.ValidateParameterMetadata(MethodInfo methodInfo)
at System.ServiceModel.Description.TypeLoader.CreateOperationDescriptions(ContractDescription contractDescription, ContractReflectionInfo reflectionInfo, Type contractToGetMethodsFrom, ContractDescription declaringContract, MessageDirection direction)
at System.ServiceModel.Description.TypeLoader.CreateContractDescription(ServiceContractAttribute contractAttr, Type contractType, Type serviceType, ContractReflectionInfo& reflectionInfo, Object serviceImplementation)
at System.ServiceModel.Description.TypeLoader.LoadContractDescriptionHelper(Type contractType, Type serviceType, Object serviceImplementation)
at System.ServiceModel.Description.ContractDescription.GetContract(Type contractType)
at System.Web.Script.Services.WCFServiceClientProxyGenerator.GetClientProxyScript(Type contractType, String path, Boolean debugMode, ServiceEndpoint serviceEndpoint)
at System.Web.Script.Services.ProxyGenerator.GetClientProxyScript(Type type, String path, Boolean debug, ServiceEndpoint serviceEndpoint)
at Tridion.Web.UI.Core.CachedJsService.get_Contents()
at Tridion.Web.UI.Core.CachedJsService.WriteContents(HttpResponse response, List`1 writtenResources)
at Tridion.Web.UI.Core.CachedJsGroup.WriteContents(HttpResponse response, List`1 writtenResources)
at Tridion.Web.UI.Core.CachedJsPageResources.WriteContents(HttpResponse response, List`1 writtenResources)
at Tridion.Web.UI.Core.CachedJsControlResources.WriteContents(HttpResponse response)
at Tridion.Web.UI.Core.Common.HttpUtilities.OutputWithHTTPCacheHeaders(ICachedResource resource, Nullable`1 cacheDuration)
at Tridion.Web.UI.Controls.TridionPage.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable C:\Windows\SysWOW64\inetsrv\w3wp.exe
--- A detailed error log follows.
=== Pre-bind state information ===
LOG: User = NT AUTHORITY\NETWORK SERVICE
LOG: DisplayName = Tridion.ContentManager.CoreService.Client, Version=6.1.0.996, Culture=neutral, PublicKeyToken=ddfc895746e5ee6b
(Fully-specified)
LOG: Appbase = file:///C:/Program Files (x86)/Tridion/web/WebUI/WebRoot/
LOG: Initial PrivatePath = C:\Program Files (x86)\Tridion\web\WebUI\WebRoot\bin
Calling assembly : Tridion.UGC.Model, Version=6.1.0.205, Culture=neutral, PublicKeyToken=null.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Program Files (x86)\Tridion\web\WebUI\WebRoot\web.config
LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Post-policy reference: Tridion.ContentManager.CoreService.Client, Version=6.1.0.996, Culture=neutral, PublicKeyToken=ddfc895746e5ee6b
LOG: The same bind was seen before, and was failed with hr = 0x80070002.
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.DashboardView.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
The power tools are an open source project, and the issue tracker is available at:
http://code.google.com/p/tridion-2011-power-tools/issues
If you believe you have discovered a bug (or perhaps two), you can help the project team by reporting the problems there. (For bonus points - download the sources and work on a fix!)