Getting error in asp.net mvc5 app when saving to database I think. The only message is Error. An error occurred while processing your request - asp.net-mvc-5

I have an asp.net mvc5 application that I created about a year ago and it was working. I did it in Visual Studio 2015 and then published it to a production server. I just did an update to the application and republished it. I now get an error when the application tries to save I think. The error, " Error. An error occurred while processing your request." does not tell much. I turned off Customerrors in hopes of getting more information but I still get the same message. Not sure how to find out why it is no longer able to save. I have checked all the account permissions based on other site suggestions. Is it possible some recent updates to Server 2012 or Sql Server 2014 require additional changes? Any help on how to find the actual error message would help a lot.
Thanks.

After a lot of work on the Visual Studio I realized the VS2015 was very out of date. I tried to run updates on it but it would not succeed. That is why my apps would not update. Visual Studio was the problem all along. I finally moved to Visual Studio 2019 and then upgraded my applications from ASP.net mvc5 to ASP.net MVC Core. I realize now it is important to update the Visual Studio on a frequent basis. If you wait too long it may not allow for an update.

Related

Error Rendering Control (type initializer PX.Data.PXLicenseObserver threw an exception) on a ListView page in Designer mode

I am trying to overcome this error in Designer Mode of any ASPX page,
for example, CS203100 out-of-box:
I am not sure when the error began, and not sure if this could be related to any recent Windows Update. I am working with AcumaticaERP version 18.1.102.0048 under VS2015 on Windows 10 Enterprise. The error occurs under TargetFramework 4.5.2 and also after updating to 4.7.1. Any help please would be great, thanks!
We ran into the same issue with a colleague and it turns out that Visual Studio was not running with administrative privileges. It looks like PXLicenseObserver tries to create a log file on initialization and it fails when Visual Studio is not running in Administrator mode.

wsdl definition not being updated even after closing iis site

I am using visual studio pro 2012 edition, one of our developers updated the wsdl definitions on a webservice without telling us and for a while i couldnt figure out why the wsdl definitions werent being updated. I did clean and build of the services, stopped the site and even exited IIS Express. Turns out if you have the solution open in visual studio with the old wsdl definition, the new definitions are not updated after pulling latest(svn). I tried several times and the only solution is to close visual studio and restart using the latest codebase.
anyone else experience this? could be a bug in vs2012 only?
I figured out what happened, my colleague copied over the hidden folder .vs folder which had the applicationhost.config file pointing to their username, vs2012 does not give any errors and happily runs the service but it serves the old pages. VS2015 shows an error page which is how i found out the problem.

Error in Connecting to TFS with Visual Studio 2012

This is the error I get when I try to connect to TFS. The only change that I had made to Windows Live account was to enable "Two-Step verification".
Visual Studio isn't giving me an option to change the credentials in case I may have entered it wrong the first try I made to connect.
I was able to connect to TFS from another system.
Any help would be appreciated.
I was also encountering same error which is resolved after cleaning up cache.
Try after deleting cache from following location in your system :
C:\Users\gaurav1\AppData\Local\Microsoft\Team Foundation
make sure you close all visual studio instances before deleting cache.
Thanks,
Gaurav

Trouble connecting to TFS in one environment

I am having trouble connecting to TFS on my Azure development machine. The connection issue started happening this morning. Prior to today, it had been working perfectly. This is my work's TFS server which I know I have access to and that my credentials are valid and working. I have confirmed this by connecting to TFS via a web browser and on other machines via Visual Studio 2012. Only the Azure box seems to be affected.
Details about the machine:
Windows Server 2008
SQL Server 2012
VS2012 w/update 3
IE10
I have tried connecting on and off the work VPN, with the http and https endpoints that are available.
Here are the steps I have taken to try to remedy the issue:
Updated VS2012 to update 3
Cleared all cache and stored passwords in IE10
Reset IE10 to default settings
Cleared all TFS stored credentials in the windows credential manager
Cleared all Visual Studio cache files - TFS cache, VS cache, etc...
basically the steps in this link
Reboot the VM multiple times
Verified that I can access TFS through IE10 successfully on the VM
None of these had any effect. No matter what I do it seems that I cannot get a connection to TFS through VS2012. It keeps giving me the unauthorized / access denied errors.
Any more ideas of what to try? This was just working yesterday. The ONLY changes since yesterday are:
Installation of some office applications - onenote, word, excel, etc.
(it was working in conjunction with these changes yesterday)
Update 3 installed for VS2012
Thanks!
EDIT:
This is getting more interesting. It seems to be a bug with Visual Studio 2012. After submitting a ticket to my support team at work, I discovered that another coworker submitted a ticket with the exact same issue. His connection stopped working yesterday morning as well. He was also on an Azure VM running Server 2008 w/ Visual Studio 2012.
So after putting our heads together for about an hour and getting nowhere, I spun up another Azure VM to check the issue there. This time I created a Server 2012 w/ Visual Studio 2013 preview image. The connection to TFS worked on the first attempt.
This led us to try installing VS2013 preview on our VMs that were experiencing the issue. For both of us, after installing 2013, we were able to connect! What's really strange is that now VS2012 is working again as well... which is great, but I still have no idea what caused it.
When we were experiencing the problem, we had our IT support guy monitor the TFS build server AND the firewall that sits in front of it when we attempted to log in. He saw no login attempts getting through. So when it wasn't working, it appeared as though Visual Studio never even issued the login attempt to the server.
Does anyone have any idea what might be going on here? A bug in Visual Studio maybe? Or perhaps a windows update that affected me and my coworker at the same time? I can't think that the timing of this was a coincidence...

Clickonce Deployment after add a report with visual studio 2012

I have a c# application that publishes to a server using click-once, so our company clients can run it. I upgrade my visual studio from 2010 to 2012. every thing is great so far and clients can run the application normally after my publishes.
then I add a report viewer Item to my application and it runs on my pc well. but after publishing the clients face this error:
unable to install or run the application. the application requires that assembly microsoft.reportviewer.ProcessingObjectModel version 11.0.0.0 to be installed in your GAC.
what should I do now, I search a lot but cant find a solution.
thanks.
You will need to add the report viewer as a prerequisite. Here is a link to MSDN that describes what is needed.
http://msdn.microsoft.com/en-us/library/ms251723.aspx

Resources