Access Violation Exception in MembershipProvider.CreateUser method - c#

Recently, I was lucky enough to upgrade my machine to the new Lenovo Yoga 2 pro and the following problem only occurs on this machine (windows 8.1 - not pro unfortunately.)
I'm using Visual Studio 2013 Update 2. The exact line of the "accessViolationException" is thrown when calling the very old aspnet MembershipProvider.CreateUser method. It happens only when I run from a Test Project that uses specflow and nunit so I can setup a user for the scenario.
The only thing that I can think of is hardware/driver problem? But even so, how would I identify the culprit? Any help would be greatly appreciated.
Ok. Attached the image with the view details. Not sure if it's enough...

Appreciate this is quite an old question but I lost several days to this and wanted to post my solution. I hit this exact same issue when using the MembershipProvider in Visual Studio 2013 (calling FindUserByEmail or CreateUser), more specifically I was using the SqlMemberProvider implementation (i.e. I hadnt implemented my own membership provider) and it turned out to be an issue with SQL Data Client mentioned in KB2915689. The scenarios listed didnt match mine but downloading version 4.5.2 of the .Net Framework mentioned in the resolution of that KB article fixed the issue.
Hope that saves someone else some time.

Related

This submission failed with error code(s) 2003,1201

We have created a Windows Store app and are running into error code(s) 2003 and 1201 while trying to submit the app to the store. Apparently these errors are not documented in the documentation and there is pretty much absolutely nothing that we can find about these online. Hoping somebody have a knowledge about their resolution and is willing to share it here.
I recommend you to contact the Dev Center support, as they will know what is the cause of this error and will assist you with fixing it. I suspect the problem is some kind of backend issue on their side. You can choose either to create a e-mail based incident on chat with the support live.
You can also post the problem on the dedicated forums (same link as above), to see whether someone else has seen it as well.
It looks like error 1201 is a long-standing issue (bug) with the store.
From the link above, it looks like some people have been able to overcome this issue by upgrading (or just changing) UWP .NET CORE to a different version, or changing or updating their version of Visual Studio.
It looks like you have also posted on this link, and are using UWP Platform 6.2.0. I believe this version is currently considered to be a "Preview" version.
If I was you, I would try rolling back to a previous version (via NuGet Package Manager in Visual Studio). I would suggest you try 6.1.4 (latest stable. as of 5/20/2018), or even earlier 6.0.8
In case it is helpful to others, I am sharing my solution that worked on 2021-11-12.
I encountered error 1201:
I deleted the submission and resubmitted exactly the same package and it worked. It appeared to be a Microsoft Store glitch.

Intellitrace and Windows Services

I'm trying to run IntelliTrace on a Windows Service, but encountering some issues.
I've (generally) tried the steps that are detailed here: http://blogs.msdn.com/b/msaffer/archive/2011/02/23/using-intellitrace-with-services.aspx.
I've tried VS 2013 Update 3 IntelliTrace download (from Microsoft) and also the new collector thats included with VS 2015 Enterprise RC. Both respond the same.
So:
Test service, registered, running as an administrator (so it's not access rights).
An Environment key has been created with the following values:
COR_ENABLE_PROFILING=1
VSLOGGERCPLAN=C:\Intellitrace14\collection_plan.myplan.trace.xml
COR_PROFILER={AAAAAA70-DFED-4CB4-A1D6-920F51E9674A}
(This is the CLSID that is registered for 2015 RC it seems)
When I start the service, it fires up but in the Event Log I get:
The profiler has requested that the CLR instance not load the profiler into this process.
I've tried with both a 32-bit and 64-bit compiled service (and the relevant IntelliTrace being registered).
I know that Windows services aren't realy a supported target for IntelliTrace, but it did used to work with 2010 etc -- has something really changed for the current versions or am I missing something?
Here is a blog post that explains how to collect data from a windows service in production using IntelliTrace. http://bit.ly/1bTfcIO
If you have any issues following this guide you can also contact me directly at angelos.petropoulos#microsoft.com
On a related note, here is also the announcement that IntelliTrace in Visual Studio 2015 Enterprise now also supports attaching to a running process. http://bit.ly/1bT1Psn This means you can also attach to a running windows service without restarting it.
This post is a bit old and you may have figured it out already... but I had the same issue and, after much searching, a bit of screaming and a lot of trial and error, I finally hit on the problem. The environment setting is very sensitive to extra spaces. Once I cleaned out spaces around or next to the equal signs and from the end of each line, IntelliTrace worked for me.

Winform application "has stopped working" on launch. Only on other computers

This is my first application I have ever released. I built it with Visual Studio Express in c# using winform application.
I'm fairly new to this and I can't manage to find an answer to my problem.
When I try to open (launch) my application on various other computers I get a "Winformapplication has stopped working" and the application does not start. I have tried to include all the resources I use in the folder but still couldn't make this work.
Strangely enough, the application works on all the computers I have Visual Studio installed (at least I think so). It worked as well on a random laptop I tried it on and it does not have anything special I could figure out (no VSE installed).
So my question is pretty simple : how do I make this work ? what am I missing ?
I can provide more information about the application itself if required.
Thank you a lot.
edit: removed code as it was not relevant.
My error came from : "'Microsoft Office 12.0 Access Database Engine OLE DB Provider' Provider is not registered on the local machine.
A temporary fix would be to install 2007 Office System Driver: Data Connectivity Components as stated on this thread.
Thanks for the help everyone.
I'm still looking for an alternative though.

Building game playable on one machine but not another

I've built my first XNA game and when I go to the build folder and execute the exe it works fine, however when I send the game to a friend of mine, he is unable to play the game and it crashes on startup.
I've tested this on several machines, and they all seem to suffer from the same issue.
Is there something I need to do to get it builded correctly and working on other machines?
btw. I did make sure I copied over the content folder from the output directory too, so its not missing its contents.
Chances are you will need to make sure the other computers have both the .NET and XNA Framework's installed. If you do a quick search on Google, you should be able to find the packages that you need, depending on what versions of the runtime's you are using.
For example, here are links to the downloads for the .NET Compact Framework 3.5 and the XNA Framework 4.0.
Note that this may not be all the prerequisites that you need.
It would be nice if you could provide a more detailed description of what kind of crash it is :) Do they get some kind of error message?
Are you using any third party libraries in the build?
Also, the machines that should run the game will need the correct version of the .NET framework, as well as a more specific XNA framework install.
Have you tried letting the users install the XNA Framework Redistributable?
http://www.microsoft.com/download/en/details.aspx?id=20914
See if that fixes the crash :)
There's a good bet that the person doesn't have the right version of the .NET framework or the right version of the XNA redistributable.
My first thought is to try publishing your game with ClickOnce (full disclosure: that's a link to my site, but I think it's still relevant).
That makes it easy for both you and the people you share it with to get the right libraries to run your game. To clarify, the other person does not need to install Visual Studio, Visual C# Express, or XNA Game Studio. There's lightweight redistributable libraries that they need instead, which ClickOnce will figure out for you.
My second suggestion is that it is possible your machine is capable of handling the HiDef profile, while everyone else that you've shared your game with can only handle the Reach profile. If that's your problem, you can change it to build for the Reach profile and fix that problem. That's discussed here, half way through the tutorial: http://rbwhitaker.wikidot.com/xna-project-template
If neither of these suggestions help, please post any sort of stack trace or error message they're getting so that we can try to help you further.

Web site reports xxx does not exist in current context after upgrade to VS2008 Sp1

I just upgraded to VS2008 Sp1, and I have a weird issue going on. I get a lot of errors from my code behind pages indicating that a control doesn't exist in the current context and I am also getting an errors that the pages do not have methods.
It seems like ide is trying to compile the c# code without compiling the aspx code.
The site runs fine via both IIS and Visual Web Developer, and in fact when I open up the code behind page, all the errors go away. Anyone have any idea why VS2008 SP1 is behaving this way?
I am using C#, and the Web Site project mode.
Check to make sure you are targeting the correct version of the .NET Framework. You can view this in the properties of the Solution file.
VS2008 allows you to target multiple framework versions.
Also check the Web.config, I know there can be differences between VS Web Developer and VS Standard/Pro with the web config. Maybe copy a fresh web.config file into the project.
There is a KB Article and Hotfix for what sounds like might be my issue. I'll test this and update my answer if it was my specific problem but the behavior matches. I need to improve my google skills..should have found this via google.
This patch resolved my issue, weird

Categories