IdentityManager / IdentityManager.AspNetIdentity

ASP.NET Identity support for Thinktecture IdentityManager
Apache License 2.0
60 stars 51 forks source link

Can't integrate IdentityManager with fresh VisualStudio 2015 project #22

Closed sudsy closed 8 years ago

sudsy commented 9 years ago

I posted an issue in the IdentityServer repo accidentally for this.

See https://github.com/IdentityServer/IdentityServer3.AspNetIdentity/issues/49

So, I can't seem to get a fresh project working with IdentityManager in Visual Sudio 2015. I have posted a sample project that I created for your reference.

https://github.com/sudsy/idMGrAspNetTest

I have tried creating a regular MVC project and a Web API project and for both of them I receive the error: An error occurred when trying to create a controller of type 'MetaController'.

An example of the trace output for this issue is here: http://pastebin.com/SdwctvRs

To try to identify the source of the problem, I did a file compare against a fresh MVC project and the WebApplication1 project contained in the samples directory here:

https://github.com/IdentityManager/IdentityManager.AspNetIdentity/tree/master/samples/IdMgr_with_AspId

The main differences were the .net target is 4.5.2 in the new project and there are slightly different package dependencies. I did my best to match the dependencies between the projects to see if I could get it to work, but found that visual studio was fighting me in my attempts to do so.

Of course as a workaround I could use your sample project instead, but I thought you might want to know if there is a barrier for people using Visual Studio 2015.

If you need any more information about my environment, please let me know.

brockallen commented 9 years ago

Do the samples work for you? They include IdMgr.

sudsy commented 9 years ago

Yes, the sample WebApplication1 does work.

https://github.com/IdentityManager/IdentityManager.AspNetIdentity/tree/master/samples/IdMgr_with_AspId

I only found this one sample are there others.

Because I was able to get this sample running, I did a compare between this and the fresh templated project. I found that the only difference in the code was that the sample added some additional properties to the user model. Other than that, it was only differences in packages.json and web.config.

I did try to run the fresh templated project with the package.json and web.config from the sample but unfortunately it seems that visual studio embeds version information in the csproj file too so I wasn't able to.

brockallen commented 9 years ago

Here's a different sample that also embeds IdMgr w/ AspId: https://github.com/IdentityServer/IdentityServer3.Samples/tree/master/source/AspNetIdentity

BruceHunter commented 8 years ago

I have VS 2015 Enterprise and have IdSvr, IdMgr and Resources that I've created working fine. I'm using 4.5 targets across all projects.

brockallen commented 8 years ago

All set on this issue?

sudsy commented 8 years ago

I managed to work around it. Not sure if it is still an issue.

On Sun, 14 Aug 2016, 01:53 Brock Allen notifications@github.com wrote:

All set on this issue?

— You are receiving this because you authored the thread.

Reply to this email directly, view it on GitHub https://github.com/IdentityManager/IdentityManager.AspNetIdentity/issues/22#issuecomment-239627586, or mute the thread https://github.com/notifications/unsubscribe-auth/ABjlh2PgEzIHqrz76pABtbt5pXntVm9Gks5qfehsgaJpZM4FvlKj .

brockallen commented 8 years ago

thx for the update