I am having issues when integrating a VS 2013 project (database first, MVC 4, .NET 4, EF6) into the areas folder of a VS 2010 project (code first, MVC 4, .NET 4, EF6). I should point out that I had to switch to 2013 for this second project because I could not get VS 2010 using MVC4/.NET4/EF6 properly create an EDMX for database first, but that is another isssue I sidestepped by using VS2013.
So now the 2031 Proj is built and ready to be integrated into the larger ecosystem...
Lets call the VS 2010 project MainProj and the VS 2013 project ChildProj
Basically I have taken the MainProj's dll and added it as a reference in ChildProj.
Then I changed all the namespaces to reflect the 2010's name (MainProj.Areas.ChildProj.whatever) I updated the routing in ChildProjAreaRegistration.cs
I added authentication code in the Global.asax under "Session_Start" that uses domain authentication but I get this error (which I cannot fix)...
An exception of type 'System.ArgumentException' occurred in System.DirectoryServices.dll but was not handled in user code
Additional information: The (SAMAccountName=) search filter is invalid.
Does anybody know of any issues with VS 2013 and 2010 or 2013 and domain authentication issues?
Thanks in advance!
Related
I have a visual studio extension (deployed as .vsix) that needs to support both Visual Studio 2013 and 2015.
The problem is that the extension needs to talk to TFS so it uses the TFS client libraries and in VS2015, these were changed from being GAC deployed to be a nuget package that the consuming app should redistribute.
How should I setup my VS package's references so that it works on both versions of Visual Studio?
I've tried several approaches:
Reference the 2013 GAC dll's: When loading on a VS2015 machine, these DLLs cannot be found.
Reference 2013 GAC dll's but also copy-local (bundle with .vsix): Some other dependency of those DLLs were missing.
Reference 2015 dll's (from nuget) and bundle with .vsix: Loads fine in both 2013 and 2015, but doesn't work in 2013 (actually using TFS functionality fails - for example a call to GetLocalWorkspaceInfo("c:\src\path") returns null)
I would:
Reference the 2013 assemblies, so that you ensure that you only use the API that's available in that version. (2015 is, of course, backward compatible.)
Add an AssemblyResolve hook so that you can load the 2015 assemblies in place of the 2013 assemblies, when they fail to load. Instructions for previous versions are available, but should be similar.
I think that option 3 will mostly work, but the reason your workspace can't be found is because 2013 and 2015 use different workspace caches. I suspect that you could surmount this by building another connection to the server and updating the workspace cache into the 2015 location. Though this points to deeper issues in compatibility: you would be unable to hook up event listeners for VS connection/workspace objects.
I am trying to install Azure biztalk services SDK and then create project in vs 2013 and vs 2015 community edition but dont see any project template.
I can only see project template for biztalk in vs 2012 professional.
This is also made clear in the link here
http://www.microsoft.com/en-au/download/details.aspx?id=39087
However the issue is the microsoft doesnt sell vs 2012 online anymore and i dont see any reason in buying a 3 year old IDE when i have VS 2015.
So just checking if any one here has been able to create biztalk projects for azure in vs 2015.
Its the same problem with Microsoft at Every Release of BizTalk and Visual Studio, the same question you asked get asked everytime
I have VS 2010 but BizTalk project 2006R2 template doesn't appear
I have VS 2012 but BizTalk project 2010 template doesn't appear
...
You have to know that unfortunately BizTalk Project templates are not backward compatible this means that unless you have VS 2012 you won't be able to get those templates.
BUT There is maybe a chance that you can copy those templates from an existing install and get it on your computer (i'll try this at home and edit my answer later) i think it can work if it does i'll post this stuff
http://i.stack.imgur.com/k5fN5.jpg
I can't create a new ASP.NET Web Project via template. Clicking on "OK" crashes VS 2013 or shows the error message "Object reference not set to an instance of an object".
I'm using MS Windows 8.1 + Visual Studio 2013 Premium Update 3.
Extensions I am using:
.NET Reflector Pro
Brace Completer
Visual Power Tools
Web Essentials 2013 for Update 3
Maybe someone knows whats going on? I am running VS 2013 as admin. :(
I tried disabling all Extension, doesn't help.
It's a fresh install from MSDN.
Edit:
I just recognized that the templates show up, when I choose a .NET framework below 4.5:
http://i.imgur.com/rK6AzNR.jpg
EDIT 2:
Okay, reinstalling didn't help. I also uninstalled everything .NET related.
Okay I found the Problem.
in C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\PrivateAssemblies are three assemblies that prevent VS 2013 from showing up the assemblies. See this Question/Answer:
Can't create new MVC5 project or any other ASP .NET projects in Visual Studio 2013
I opened a C# project that was created in VS 2010 SP, with VS 2013. A one-way conversion window appeared where I proceeded with the conversion.
Following warning message appeared
"Visual Studio needs to make non-functional changes to this project in order to enable the project to open in Visual Studio 2013, Visual Studio 2012, and Visual Studio 2010 SP1 without impacting project behavior."
when I run the application it gives the following error
Description: An error occurred while accessing the resources required to serve this request. The server may not be configured for access to the requested URL.
Error message 401.2.: Unauthorized: Logon failed due to server configuration. Verify that you have permission to view this directory or page based on the credentials you supplied and the authentication methods enabled on the Web server. Contact the Web server's administrator for additional assistance.
If I run the same app in VS 2010 it works fine.In VS 2013 upgraded the MVC3 to MVC 4 using these steps
http://www.asp.net/whitepapers/mvc4-release-notes#_Toc303253806
This solution worked for me, but depends on the type of security utilised by your application. I required Windows Authentication to be used as the application was running on our local intranet.
Anyway, my problem lay with the default IIS Express settings for running the app. These can be found in your default My Documents folder for the IISExpress\config folder and modify the applicationhost.config settings to your liking.
I have several projects that opened just fine in Visual Studio Web Developer 2008 Express Edition, but can't be opened in VS 2008 Professional Edition! These projects are just .NET Framework 3.5 class libraries, and they are on the same machine.
The error is "The project [myproject.csproj] cannot be opened. The project type is not supported by this installation.
Thanks.
Upon inspecting the project file, it seems like the project type have references to ASP.NET MVC 1. Installed MVC 1 solved the problem. Thanks!