Error: Unexpected call to method or property access

If you are having a problem using Vault, post a message here.
Post Reply
AffinoChris
Posts: 8
Joined: Tue May 10, 2016 5:30 am

Error: Unexpected call to method or property access

Post by AffinoChris » Tue May 10, 2016 5:33 am

Hi Support,

I've recently tried to log on the web service of our Vault installation and we are now getting the error:

Code: Select all

Line: 8830
Error: Unexpected call to method or property access.
Is there anyway we can fix this?

Many thanks!

jclausius
Posts: 3706
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Re: Error: Unexpected call to method or property access

Post by jclausius » Tue May 10, 2016 7:43 am

Hi there,

What is the URL where the error is reported?

What browser are you using? What is the browser's version? Please see the "Web Client" section for a listing of compatible browsers - http://www.sourcegear.com/vault/documen ... ysreq.html
Jeff Clausius
SourceGear

AffinoChris
Posts: 8
Joined: Tue May 10, 2016 5:30 am

Re: Error: Unexpected call to method or property access

Post by AffinoChris » Tue May 10, 2016 7:58 am

Url:

http://127.0.0.1:81/VaultService/VaultW ... ultService

Hosted on:

Windows Server 2012 R2 Standard

Error found on:

Internet Explorer 11

Although its not working across any browsers tried and have even seen the error in the Vault Client in some areas.

Many thanks!

Chris

jclausius
Posts: 3706
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Re: Error: Unexpected call to method or property access

Post by jclausius » Tue May 10, 2016 10:18 am

The, "Unexpected call to method or property access" will be caused by a javascript / jquery error. Does IE 11 give you any indication of an error? Do you see the 'torn-page' icon in the address bar? If so, can you temporarily disable IE's compatibility mode to see if that addresses the problem? Another thing to look at is if you press 'F12' from within the browser, do you see any errors listed?

In regards to a Vault client, in the majority of cases, unless the client is rendering some HTML, you shouldn't see any kind of error related to this as jquery is related to the web interface only.
Jeff Clausius
SourceGear

AffinoChris
Posts: 8
Joined: Tue May 10, 2016 5:30 am

Re: Error: Unexpected call to method or property access

Post by AffinoChris » Tue May 10, 2016 10:29 am

Hi Jeff,

I get the error:

Code: Select all

Line: 8830
Error: Unexpected call to method or property access.
When I press F12 in IE11 unfortunately thats all I see with a blank white page and no broken icon .

We've also seen the error in the client when getting properties on a folder and are also having problems with individual accounts not being able to access a folder with the error:

Image

But this may not be related and hence we tried to access the web interface

jclausius
Posts: 3706
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Re: Error: Unexpected call to method or property access

Post by jclausius » Tue May 10, 2016 11:35 am

In regards to the second error, there's something going on with the data stored in the client side cache. See http://support.sourcegear.com/viewtopic.php?f=5&t=17410 for an additional error.

What version of Vault are you using? Make note and save any information of all working folders (you can get a listing from the command line if needed), as well as items in the pending changeset for this repository. If you are using Vault 9, you can go to Tools -> Options -> Local Files -> Cache Location, and click the Reset Repository Cache button. Try clearing out the cache for Working Folder Information. Next shut down Vault. Finally reconnect to the Vault Server, and re-establish your working folders within the client. Hopefully that flushes any problems found in those state files.
Jeff Clausius
SourceGear

jclausius
Posts: 3706
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Re: Error: Unexpected call to method or property access

Post by jclausius » Tue May 10, 2016 11:37 am

While I don't think this is the problem, but does your browser have Javascript enabled? Another test is to try our Vault demo server with your browser. If you browse to http://vaultdemo.sourcegear.com (and login with user "guest2" and passwd "guest2"), does that work?
Jeff Clausius
SourceGear

AffinoChris
Posts: 8
Joined: Tue May 10, 2016 5:30 am

Re: Error: Unexpected call to method or property access

Post by AffinoChris » Wed May 11, 2016 3:36 am

Hi Jeff,

The demo site works fine, I've shared our VaultService site temporarily publicly so you can see our problem:

http://devteam.comrz.com:8080/VaultServ ... Login.aspx

Cheers,

Chris

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Error: Unexpected call to method or property access

Post by Beth » Thu May 12, 2016 3:51 pm

http://devteam.comrz.com:8080 doesn't appear to point to an IIS server. What is that?
Beth Kieler
SourceGear Technical Support

AffinoChris
Posts: 8
Joined: Tue May 10, 2016 5:30 am

Re: Error: Unexpected call to method or property access

Post by AffinoChris » Mon May 16, 2016 7:38 am

Hi,

It is an IIS server based on Windows Server 2012 R2 Standard.

Cheers,

Chris

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Error: Unexpected call to method or property access

Post by Beth » Mon May 16, 2016 1:11 pm

The index page appears to come up, so Vault is reachable. The initial error you posted suggests a jquery issue. I also can't pull up your login page, but I don't get an error.

You also say that you get an error when viewing the properties of a folder in the Vault GUI client. That suggests that the Vault client connects. Is the Vault GUI client connecting?

What is the path C:\Work\Affino\5\AfcForm\cc? Is that a shared location on some server or does it relate to a user's individual machine and location?

Have you tried a different working folder path?
Beth Kieler
SourceGear Technical Support

AffinoChris
Posts: 8
Joined: Tue May 10, 2016 5:30 am

Re: Error: Unexpected call to method or property access

Post by AffinoChris » Tue May 17, 2016 2:22 am

Hi Beth,

We're not so worried about the errors we got on the GUI that is now fully working so must have been temporary. Was more hoping to be able to access the web admin side of Vault.

GUI connects fully and yes that path was from the individuals machine.

You say you can pull up the login page? I simply see a white page which if I press F12 in IE11 shows me the error:

Code: Select all

Line: 8830
Error: Unexpected call to method or property access.
Cheers,

Chris

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Error: Unexpected call to method or property access

Post by Beth » Tue May 17, 2016 7:38 am

Try to access the web page again, and then immediately look in your Vault Server Log. Are any errors posted for your attempt to reach the webpage?

Next, do the same thing but check the IIS logs at C:\inetpub\logs. The log file should show your attempt to access Vault web pages and give errors in the form of 404 0 0 or 500 13 0 and so on. If you see a 200 0 0, that indicates a success. What do you have in that log file?

After that, check your Event Viewer logs on the server for around the same time that you tried the tests. Are there any errors, warnings, or interesting information in any of the Event Viewer logs at the same time?
Beth Kieler
SourceGear Technical Support

AffinoChris
Posts: 8
Joined: Tue May 10, 2016 5:30 am

Re: Error: Unexpected call to method or property access

Post by AffinoChris » Tue Jul 19, 2016 7:39 am

Hi Beth,

Here is the entries from the Vault Log:

Code: Select all

----7/19/2016 2:37:47 PM     sgvaultsystem--()--	
	System Started
	Version 8.0.1.299
	Cache Level = 1
	DataBase Buffer Size (KB) = 256
	LogFile Path = C:\Windows\Temp\sgvault
	Log Level = Quiet
	Archive Log = Weekly
	ReverseDNS Lookup = True
	Maximum HTTP Request Length = 102400
	Overwrite Log on Startup = False
	Session Timeout = 10080
	SGVault Working Directory = C:\Windows\Temp
	SGVault Server URL = 
	Identity = IIS APPPOOL\VaultAppPool 
----7/19/2016 2:37:47 PM     --tiger.comrzdev.com(127.0.0.1)--SSL Disabled	Uncaught Exception: Authentication to host '' for user '' using method 'mysql_native_password' failed with message: Access denied for user ''@'10.192.150.53' (using password: NO) (C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config line 284)
Inner Exception: Authentication to host '' for user '' using method 'mysql_native_password' failed with message: Access denied for user ''@'10.192.150.53' (using password: NO)
Inner Exception: Access denied for user ''@'10.192.150.53' (using password: NO) 
----7/19/2016 2:37:47 PM     --tiger.comrzdev.com(127.0.0.1)--SSL Disabled	   at System.Web.Configuration.ProvidersHelper.InstantiateProvider(ProviderSettings providerSettings, Type providerType)
   at System.Web.Configuration.ProvidersHelper.InstantiateProviders(ProviderSettingsCollection configProviders, ProviderCollection providers, Type providerType)
   at System.Web.Configuration.SiteMapSection.get_ProvidersInternal()
   at System.Web.SiteMap.Initialize()
   at VaultService.VaultSite.GetHelpLinkAndTitle()
   at VaultService.VaultSite.Page_Load(Object sender, EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   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.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Inner Exeption Stack Trace:    at MySql.Data.MySqlClient.Authentication.MySqlAuthenticationPlugin.AuthenticationFailed(Exception ex)
   at MySql.Data.MySqlClient.Authentication.MySqlAuthenticationPlugin.ReadPacket()
   at MySql.Data.MySqlClient.Authentication.MySqlAuthenticationPlugin.Authenticate(Boolean reset)
   at MySql.Data.MySqlClient.NativeDriver.Open()
   at MySql.Data.MySqlClient.Driver.Open()
   at MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings)
   at MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnection()
   at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
   at MySql.Data.MySqlClient.MySqlPool.TryToGetDriver()
   at MySql.Data.MySqlClient.MySqlPool.GetConnection()
   at MySql.Data.MySqlClient.MySqlConnection.Open()
   at MySql.Web.Common.SchemaManager.GetSchemaVersion(String connectionString)
   at MySql.Web.Common.SchemaManager.CheckSchema(String connectionString, NameValueCollection config)
   at System.Web.Configuration.ProvidersHelper.InstantiateProvider(ProviderSettings providerSettings, Type providerType)
Inner Exeption Stack Trace:    at MySql.Data.MySqlClient.MySqlStream.ReadPacket()
   at MySql.Data.MySqlClient.Authentication.MySqlAuthenticationPlugin.ReadPacket() 
----7/19/2016 2:37:47 PM     --tiger.comrzdev.com(127.0.0.1)--SSL Disabled	System.Configuration.ConfigurationErrorsException: Authentication to host '' for user '' using method 'mysql_native_password' failed with message: Access denied for user ''@'10.192.150.53' (using password: NO) (C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config line 284) ---> MySql.Data.MySqlClient.MySqlException: Authentication to host '' for user '' using method 'mysql_native_password' failed with message: Access denied for user ''@'10.192.150.53' (using password: NO) ---> MySql.Data.MySqlClient.MySqlException: Access denied for user ''@'10.192.150.53' (using password: NO)
   at MySql.Data.MySqlClient.MySqlStream.ReadPacket()
   at MySql.Data.MySqlClient.Authentication.MySqlAuthenticationPlugin.ReadPacket()
   --- End of inner exception stack trace ---
   at MySql.Data.MySqlClient.Authentication.MySqlAuthenticationPlugin.AuthenticationFailed(Exception ex)
   at MySql.Data.MySqlClient.Authentication.MySqlAuthenticationPlugin.ReadPacket()
   at MySql.Data.MySqlClient.Authentication.MySqlAuthenticationPlugin.Authenticate(Boolean reset)
   at MySql.Data.MySqlClient.NativeDriver.Open()
   at MySql.Data.MySqlClient.Driver.Open()
   at MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings)
   at MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnection()
   at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
   at MySql.Data.MySqlClient.MySqlPool.TryToGetDriver()
   at MySql.Data.MySqlClient.MySqlPool.GetConnection()
   at MySql.Data.MySqlClient.MySqlConnection.Open()
   at MySql.Web.Common.SchemaManager.GetSchemaVersion(String connectionString)
   at MySql.Web.Common.SchemaManager.CheckSchema(String connectionString, NameValueCollection config)
   at System.Web.Configuration.ProvidersHelper.InstantiateProvider(ProviderSettings providerSettings, Type providerType)
   --- End of inner exception stack trace ---
   at System.Web.Configuration.ProvidersHelper.InstantiateProvider(ProviderSettings providerSettings, Type providerType)
   at System.Web.Configuration.ProvidersHelper.InstantiateProviders(ProviderSettingsCollection configProviders, ProviderCollection providers, Type providerType)
   at System.Web.Configuration.SiteMapSection.get_ProvidersInternal()
   at System.Web.SiteMap.Initialize()
   at VaultService.VaultSite.GetHelpLinkAndTitle()
   at VaultService.VaultSite.Page_Load(Object sender, EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   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.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)    at System.Web.Configuration.ProvidersHelper.InstantiateProvider(ProviderSettings providerSettings, Type providerType)
   at System.Web.Configuration.ProvidersHelper.InstantiateProviders(ProviderSettingsCollection configProviders, ProviderCollection providers, Type providerType)
   at System.Web.Configuration.SiteMapSection.get_ProvidersInternal()
   at System.Web.SiteMap.Initialize()
   at VaultService.VaultSite.GetHelpLinkAndTitle()
   at VaultService.VaultSite.Page_Load(Object sender, EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   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.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
----7/19/2016 2:37:47 PM     --tiger.comrzdev.com(127.0.0.1)--SSL Disabled	MySql.Data.MySqlClient.MySqlException (0x80004005): Authentication to host '' for user '' using method 'mysql_native_password' failed with message: Access denied for user ''@'10.192.150.53' (using password: NO) ---> MySql.Data.MySqlClient.MySqlException (0x80004005): Access denied for user ''@'10.192.150.53' (using password: NO)
   at MySql.Data.MySqlClient.MySqlStream.ReadPacket()
   at MySql.Data.MySqlClient.Authentication.MySqlAuthenticationPlugin.ReadPacket()
   at MySql.Data.MySqlClient.Authentication.MySqlAuthenticationPlugin.AuthenticationFailed(Exception ex)
   at MySql.Data.MySqlClient.Authentication.MySqlAuthenticationPlugin.ReadPacket()
   at MySql.Data.MySqlClient.Authentication.MySqlAuthenticationPlugin.Authenticate(Boolean reset)
   at MySql.Data.MySqlClient.NativeDriver.Open()
   at MySql.Data.MySqlClient.Driver.Open()
   at MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings)
   at MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnection()
   at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
   at MySql.Data.MySqlClient.MySqlPool.TryToGetDriver()
   at MySql.Data.MySqlClient.MySqlPool.GetConnection()
   at MySql.Data.MySqlClient.MySqlConnection.Open()
   at MySql.Web.Common.SchemaManager.GetSchemaVersion(String connectionString)
   at MySql.Web.Common.SchemaManager.CheckSchema(String connectionString, NameValueCollection config)
   at System.Web.Configuration.ProvidersHelper.InstantiateProvider(ProviderSettings providerSettings, Type providerType)    at MySql.Data.MySqlClient.Authentication.MySqlAuthenticationPlugin.AuthenticationFailed(Exception ex)
   at MySql.Data.MySqlClient.Authentication.MySqlAuthenticationPlugin.ReadPacket()
   at MySql.Data.MySqlClient.Authentication.MySqlAuthenticationPlugin.Authenticate(Boolean reset)
   at MySql.Data.MySqlClient.NativeDriver.Open()
   at MySql.Data.MySqlClient.Driver.Open()
   at MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings)
   at MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnection()
   at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
   at MySql.Data.MySqlClient.MySqlPool.TryToGetDriver()
   at MySql.Data.MySqlClient.MySqlPool.GetConnection()
   at MySql.Data.MySqlClient.MySqlConnection.Open()
   at MySql.Web.Common.SchemaManager.GetSchemaVersion(String connectionString)
   at MySql.Web.Common.SchemaManager.CheckSchema(String connectionString, NameValueCollection config)
   at System.Web.Configuration.ProvidersHelper.InstantiateProvider(ProviderSettings providerSettings, Type providerType)
----7/19/2016 2:37:47 PM     --tiger.comrzdev.com(127.0.0.1)--SSL Disabled	MySql.Data.MySqlClient.MySqlException (0x80004005): Access denied for user ''@'10.192.150.53' (using password: NO)
   at MySql.Data.MySqlClient.MySqlStream.ReadPacket()
   at MySql.Data.MySqlClient.Authentication.MySqlAuthenticationPlugin.ReadPacket()    at MySql.Data.MySqlClient.MySqlStream.ReadPacket()
   at MySql.Data.MySqlClient.Authentication.MySqlAuthenticationPlugin.ReadPacket()
Here is the IIS log:

Code: Select all

#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) cs(Referer) sc-status sc-substatus sc-win32-status time-taken
2016-07-19 13:33:41 127.0.0.1 GET /vaultService/ - 81 - 127.0.0.1 Mozilla/5.0+(Windows+NT+6.3;+WOW64;+Trident/7.0;+rv:11.0)+like+Gecko - 302 0 0 1046
2016-07-19 13:33:41 127.0.0.1 POST /VaultNotifyService/VaultNotifyService.asmx - 81 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+6.0;+MS+Web+Services+Client+Protocol+4.0.30319.34209) - 200 0 0 546
2016-07-19 13:33:41 127.0.0.1 GET /VaultService/VaultWeb/Login.aspx ReturnUrl=%2fvaultService%2f 81 - 127.0.0.1 Mozilla/5.0+(Windows+NT+6.3;+WOW64;+Trident/7.0;+rv:11.0)+like+Gecko - 200 0 0 796
Kind Regards,

Chris

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Error: Unexpected call to method or property access

Post by Beth » Tue Jul 19, 2016 9:48 am

The logs don't appear to line up on their times.

In the Vault log, it refers to MySql and we don't use MySQL. Are all the other parts of Vault working properly? (gui client and web client?)

Somewhere there might be a web.config above Vault that refers to MySql that Vault is picking up somehow. Can you check for any web.config files on the Vault server that refer to MySql and show the location in relation to the Vault website location?
Beth Kieler
SourceGear Technical Support

Post Reply