New MVC 5 project build fails in Visual Studio Online using TFS

Here are some of the errors I'm getting.
 Controllers\AccountController.cs (44): The type or namespace name 'AllowAnonymous' could not be found (are you missing a using directive or an assembly reference?)
 App_Start\BundleConfig.cs (2): The type or namespace name 'Optimization' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
 App_Start\IdentityConfig.cs (2): The type or namespace name 'AspNet' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
 App_Start\IdentityConfig.cs (3): The type or namespace name 'AspNet' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
 App_Start\IdentityConfig.cs (4): The type or namespace name 'AspNet' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
 App_Start\IdentityConfig.cs (5): The type or namespace name 'Owin' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
 App_Start\IdentityConfig.cs (12): The type or namespace name 'UserManager' could not be found (are you missing a using directive or an assembly reference?)
 App_Start\IdentityConfig.cs (59): The type or namespace name 'IIdentityMessageService' could not be found (are you missing a using directive or an assembly reference?)
 App_Start\IdentityConfig.cs (68): The type or namespace name 'IIdentityMessageService' could not be found (are you missing a using directive or an assembly reference?)
 App_Start\RouteConfig.cs (5): The type or namespace name 'Mvc' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
 App_Start\Startup.Auth.cs (1): The type or namespace name 'AspNet' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
 App_Start\Startup.Auth.cs (2): The type or namespace name 'AspNet' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
The project builds fine in VS 2013 (since its a new project).
It seems that it is not recognizing all the packages. How do I fix this problem?

It doesn't work for me either. It's an MVC 5.2.2.0 project straight out of the Wizard. It's part of a solution with other projects which appear to be working. I tried configuring NuGet to download missing assemblies on the build machine as it suggested on
some other sites. That didn't help. According to the list of installed software on the Hosted Build Controller, I don't see MVC explicitly listed. (getting-started/hosted-build-controller-..) page in the TFS project site.
It definitely doesn't work. I'm trying out Visual Studio Premium 2013 and Team Foundation Service on the 90 day trial offer. I can't find any mention of an MVC restriction. I don't want to have to include the package binaries in source control.
Edit: I tried a standalone MVC 5 project and it worked fine on the Hosted Build Controller. If you add an MVC 5 project using the wizard to an existing solution with other projects, you get the errors below. So it isn't the Hosted Build Controller.
Strange.
App_Start\BundleConfig.cs (2): The type or namespace name 'Optimization' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
 Controllers\AccountController.cs (200): The type or namespace name 'ValidateAntiForgeryToken' could not be found (are you missing a using directive or an assembly reference?)
 Controllers\AccountController.cs (200): The type or namespace name 'ValidateAntiForgeryTokenAttribute' could not be found (are you missing a using directive or an assembly reference?)
 Controllers\AccountController.cs (226): The type or namespace name 'AllowAnonymous' could not be found (are you missing a using directive or an assembly reference?)
 Controllers\AccountController.cs (226): The type or namespace name 'AllowAnonymousAttribute' could not be found (are you missing a using directive or an assembly reference?)
 Controllers\AccountController.cs (234): The type or namespace name 'AllowAnonymous' could not be found (are you missing a using directive or an assembly reference?)
 Controllers\AccountController.cs (234): The type or namespace name 'AllowAnonymousAttribute' could not be found (are you missing a using directive or an assembly reference?)
 Controllers\AccountController.cs (242): The type or namespace name 'HttpPost' could not be found (are you missing a using directive or an assembly reference?)
 Controllers\AccountController.cs (242): The type or namespace name 'HttpPostAttribute' could not be found (are you missing a using directive or an assembly reference?)
 Controllers\AccountController.cs (243): The type or namespace name 'AllowAnonymous' could not be found (are you missing a using directive or an assembly reference?)
 Controllers\AccountController.cs (243): The type or namespace name 'AllowAnonymousAttribute' could not be found (are you missing a using directive or an assembly reference?)
 Controllers\AccountController.cs (244): The type or namespace name 'ValidateAntiForgeryToken' could not be found (are you missing a using directive or an assembly reference?)
It seems that my working stand alone project has the dlls in the packages folder tree added to source control. Whereas in the composite project, only the corresponding .xml files are added to source control. So with the standalone project, the build server
is locating these dlls and using them.

Similar Messages

  • Release management with Azure and Visual Studio Online (Cloud TFS)

    What strategy would you use to manage the releasing of versioned software to Azure cloud services (web and worker roles)? We are not looking for continuous integration. We are using Visual Studio 2013 and Visual Studio Online (Cloud TFS).
    At one point, we were releasing straight from Visual Studio using the Azure Cloud Project Publish tool. This is really bad practice in my opinion as you can never be sure what you are really releasing. Additionally, there is no automated control on the labeling
    or branching of code, or the running of unit tests and code analysis checks.
    Next, we employed Release builds on Visual Studio Online. Before deployment, one would edit the appropriate Build Definition (whether it be for Test or Production by and filling in the code label (under the "Get Version" build property) that is to
    be released. This would then get the appropriate code (by the label specified), build it, and release it to whatever cloud service is specified in the targeted Cloud Project profile (this is using the AzureContinuousDeployment.11.xaml template).
    There is still a degree of manual intervention involved. Also, the fact that a version of code is built every time before it is released is not ideal (as far as I understand it would be better if it was packaged once).
    Microsoft Release Management tools
    look ideal for the job, but are not supported with Visual Studio Online.
    Is there a better way of handling our releases?

    /waves hand.. These are not the tools you seek. You are looking for continuous integration.
    Although CI has the word continuous in there, it does not mean "all the time, every checkin". It can easily refer only to those bits you want to release - -and the way to tell the system which bits you want released is to merge them to a Releases
    branch.
    If you do this, not only do you get all the joy of controlled CI, but you guarantee what you release is exactly what is controlled in your SCM - under the Releases branch, preferably tagged or otherwise noted as a particular release. That means you can also
    rollback to a previous release by simply reverting to a previous release in your SCM!
    Of course you don't have to let it happen automatically, you can set it up to build 'continually' and then remove the check on the SCM to see if any changes have been committed. You can replace this with the manual build button.

  • Problem with "View project-level information" permission when accessing build definition in Visual Studio Online

    Hi, 
    from some time all our team members are experiancing problems when acsessing list of builds on Visual Studio Online or when trying to edit build definition in Visual Studio. Error message suggests problem with missing View project-level information permission:
    "TF50309: The following account does not have sufficient permissions to complete the operation: XXXXXXXX. The following permissions are needed to perform this operation: View project-level information."
    I've checked permissions of my User account and Group. "View project-level information" is set to Allow on both levels. We didn't make any changes in security configuration recently. Does anyone faced similar problem?
    Short term solution was to add all users, to Project Collection Administrators Group, but it is not what we would like to live with.

    It seems that the problem was fixed and Project Collection Administrators permissions are no longer required. Great :-)

  • Unable to connect on premises build controller to Visual Studio Online account

    I've been looking into VSO for our build process, but I'm having some difficulty on the basic set up.
    We use Unity3D and would require an on premises build controller. I've created a VM and attempted to set up a build controller using this article for details:
    http://msdn.microsoft.com/en-us/library/ms181712.aspx
    I'm able to open the build service configuration wizard and I get to the "Connect to Team Project Collection" window. However, when I attempt to add my server, using my username and password (which is also the global admin), I get a TF31003 error.
    I've verified that I have build permissions, but I keep getting this error everytime I attempt to connect the controller to VSO.
    I also attempted to use a custom build account, which had Build Service and Build Administrator membership. It also got the same error.
    What could be causing this issue?

    Hi Jason,  
    Thanks for your post.
    Please follow the detailed steps in this
    article to configure and connect On-premise Build Service for your VSO account, if still receive the same issue, please share you received the error under which detailed step.
    When connecting to VSO account in Build Service, you need provide the user which added in your VSO account. 
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Visual Studio Online Build Failure - Unable to copy file, access to directory is denied

    Hi,
    I have an ASP.Net Web Site that compiles and builds with no errors on my local machine.
    However when I attempt to build the site using default build definitions/configurations within Visual Studio Online and deploy to an Azure Website / App Service I receive the following errors:
    C:\a\src\House of Canine\HouseOfCanine_1_.metaproj: Unable to copy file "C:\a\src\House of Canine\HouseOfCanine\Bin\AjaxControlToolkit.dll" to "HouseOfCanine\\Bin\AjaxControlToolkit.dll". Access to the path 'HouseOfCanine\\Bin\AjaxControlToolkit.dll' is denied.
    Where, I assume, the directory "C:\a\src\House of Canine..." refers to the Visual Studio Online Directory and the directory "HouseOfCanine\\Bin\Ajax..." refers to the Azure Website directory. 
    This error is repeated for a number of other .dll files in the Bin folder and if I look at the diagnostics tab for the failed build on VSO, I can see that it is where it attempts to copy the binaries to the "drop" where the error fails.
    Any advice much appreciated,
    Ross
    Update
    MSBuild Error Code: MSB3021
    It seems the permissions are not set correctly for the DLLs in the Bin folder however I cannot change the permissions of the files on Visual Studio Online. Any ideas?

    Hi Ross,
    Since this thread is more related to Visual Studio Online, I will move it to the right forum for a better response. Thanks for your understanding.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
    href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

  • Error message when trying to access Code in Visual Studio Online project.

    I have been using visual studio online for a while. Last week I connected azure console to my visual studio online account so that I could add an additional person to one of my projects.
    After that, I create a new Git based project. From the outset in the outset, I have been receiving a message in code explorer in the new project:
    The items requested either do not exist on the server at the specified versions, or you do not have permission to access them.Hide details
    TFS.WebApi.Exception: The items requested either do not exist on the server at the specified versions, or you do not have permission to access them. at b.a._getFailedRequestError (https://*******.visualstudio.com/_static/tfs/20150113T200222/_scripts/TFS/min/corejs?v=RGgj5lMwHLD78kGD2wBxR4uHtflIGwSdmCEhWbtUphc1:52:3204)
    at https://*******.visualstudio.com/_static/tfs/20150113T200222/_scripts/TFS/min/corejs?v=RGgj5lMwHLD78kGD2wBxR4uHtflIGwSdmCEhWbtUphc1:52:2285 at b.a._handleRequestFailure (https://*******.visualstudio.com/_static/tfs/20150113T200222/_scripts/TFS/min/corejs?v=RGgj5lMwHLD78kGD2wBxR4uHtflIGwSdmCEhWbtUphc1:52:2931)
    at Object.<anonymous> (https://*******.visualstudio.com/_static/tfs/20150113T200222/_scripts/TFS/min/corejs?v=RGgj5lMwHLD78kGD2wBxR4uHtflIGwSdmCEhWbtUphc1:52:2225) at l (https://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.8.3.min.js:2:16996) at Object.c.fireWith
    (https://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.8.3.min.js:2:17783) at T (https://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.8.3.min.js:2:81036) at XMLHttpRequest.r (https://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.8.3.min.js:2:86563)
    Accessing the project from Git tools connected fine and I was able to commit successfully, however, I don't know if the code is in the repo, because I cannot browse it on the website. Am still getting the message above.
    I can explore code for any of my other project without issue. All but one of my projects is using git.
    Any ideas?
    Thanks

    Hi Richie42,
    I'd like to know whether you can push the commits to remote git repository, and when this issue occurred. When work with Git team project in Visual Studio Online, you have to clone the Git repository to local, and work with it.
    You can also check if your have permissions to this team project in security page of team web access. Or
    run
    tfssecurity command in VS command line to have a check. Please execute tfssecurity /imx “MS account” /collection:url, for more information about tfssecurity /imx, please refer to:
    http://msdn.microsoft.com/en-us/library/ms400806.aspx
    Another option is clean team foundation cache, delete credentials in credential manager and delete browser cookies. Restart the Visual Studio to have a try. If the issue persists, please elaborate more details about your scenario with the reproduce steps.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Issue with New Release Deploying Crystal Reports for Visual Studio 2010

    Previously I created a deployment project with Visual Studio 2010 using the Beta 2 release of the distributable. This worked fine and installed on a 32-bit XP machine.
    I've since updated the project to use the new Release version of the distributable CRRuntime_32bit_13_0.msi. Now when I run the installed program it gives me the following message -
    "An error has occurred while attempting to load the Crystal Reports runtime. Either the Crystal Reports registry key permissions are insufficient, or the Crystal Reports runtime is not installed correctly. Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports runtime (x86, x64, or Itanium) required. Please go to http://www.businessobjects.com/support for more information."
    I've had a look at verious posts and added code to the app.config file so it looks like -
    <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
    </startup>
    and also tried targetting various .NET frameworks, but without success.
      Am I missing something?

    Hello,
    More info, are you installing on the same PC as the Beta was installed on or a clean PC?
    Your app must be set to the full framework, not the client version.
    Are you installing by right clicking on your setup.exe and selecting run as administrator?
    Setting that option in the app.config is only required if you are using that driver you found the info on.
    Run ProcessMonitor and set it to filter your installer and see what it reports.
    Thank you
    Don

  • Project Server and Visual Studio Online

    With the release of Visual Studio Online, will we be able link Project Server 2013 to it, as we can with our on-prem TFS server?
    Thanks in advance,
    Tim

    Hello,
    as Paul mentioned – out of the box there is no integration solution implemented as it was offered by MS for the on-prem versions of the two products.
    Microsoft however offers a set of APIs for the online and on-prem versions of those tools which dependant on the use case can be used to achieve the integration (Project Server: CSOM, JSOM, odata; Visual Studio Online: odata).
    You can custom code against those APIs or reuse standard products which are available on the market by partners which offer those scenarios between Visual Studio Online and Project Server on-prem and online (e.g. CS Connect by Campana & Schott -
    http://www.campana-schott.com/en/technologies/cs-connect?qll=mf).
    Please let me know if you need further information…
    Bastian

  • WPF 4.5 doesn't show the option to open the project in Blend for Visual Studio 2013

    Hi,
    In my WPF 4.5 project in Visual Studio 2013, when I right clicked the name of my project it doesn’t show the option to open in Blend for Visual Studio 2013….. and when I try to open the project with Blend for Visual Studio 2013, it doesn't show anything.....
    I don't see the project nor the UI of my WPF 4.5 project
    How I can open my project in Blend for Visual Studio 2013???
    Thanks!!!
    Regards,

    Hi Jaquense,
    open Blend. Open Project/Solution and select the .sln-file of the project you've created in visual Studio. That's it. In the Project Explorer in Blend you should see your files and you should be able to open up your XAML-files.
    Thomas Claudius Huber
    "If you can't make your app run faster, make it at least look & feel extremly fast"
    My latest app:
    The "Womanizer" :-)
    twitter: @thomasclaudiush
    homepage: www.thomasclaudiushuber.com
    author of: ultimate Windows Store Apps handbook |
    ultimate WPF handbook |
    ultimate Silverlight handbook

  • I can't see webappplication project option in my visual studio ultimate 2013 update 4 .................

    hi.......i have visual studio ultimate 2013 update 4......i want to create webapplication project but in my visual studio templates ,i cant see web option......or webapplication option..even i reset settings to webdevelopement.......so what should i do
    now.....plz tell me very fast

    Thanks for Bill's help.
    Hi vinayakkadam143,
    Like Bill's suggestion, firstly we have to make sure that we find the correct project template options.
    But if you still get this issue, one possible reason is that the project templates don't load correctly.
    Run the command line:
    devenv.exe /InstallVSTemplates
    Reference:
    https://msdn.microsoft.com/en-us/library/ms241279.aspx
    Or repair your VS, test it again.
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Transfert Team Project from TFS 2010 to Visual Studio Online

    Hello,
    I think about migrating to Visual Studio Online to use the online TFS or to migrate from TFS 2010 to TFS 2013.
    My team is spread in 15 countries so, the visual studio online apear to be better.
    Could you tell me if it's possible to import a Team Project and its history to Visual Studio Online ?
    Thanks,
    Laurent

    well done....
    http://www.soran.edu.iq

  • Jenkins can not connect Visual Studio Online(not git repository)

    I have seen some techinical document and tried some scenario.
    1. Alternative Authentication on my profile
        Usename(primary) is my company email address.
        Username(secondary) is none.
    2. set jenkins setup for TFS plug-in
         Tema Foundation Server is https://xxxxxxxx.visualstudio.com
         Project path is $Benchmark/BuildProcessTempletes
         Login name is my compalny email address
         Password is NO1 specified.
    3. execute build at jenkins and some error outputed.
         TF30063: You are not authorized to access https://xxxxxxxx.visualstudio.com
         FATAL: Executable returned an unexpected result code 100
         ERROR: null
    off courese i can login the VSO with VS or browser.
    How can i authorize Visual Studio Online from Jenkins?
    

    this link give me a solution.
    Basically, tf.exe which is bundled at Visual studio can not use VSO. Use Team Explore Anywhere.

  • Does Visual Studio Online support filtering Product Backlog/Sprint Views and Kanban by Area?

    There seems to be guidance out there now that suggests using one Master Team Project (with Areas and Iterations for partitioning) for everything rather than a Team Project per Application/Solution as the 'out of the box' product sort of steers you towards.
    If this guidance is valid, and I've heard that Microsoft use this approach internal, then is it possible to follow this guidance when using Visual Studio Online?
    I ask because it appears that in order to follow the 'Master Team Project' approach you need to be able to filter various elements of the TFS UI by Area and Iteration in order to allow a discrete view of just the material relating to one 'logical' application,
    team, etc.
    Whilst I see how on-premise TFS can do some of this, I can't see any obvious way to do this with Visual Studio Online - and I'm new to that particular product so accept I may have missed something.
    So my question is, can you follow the 'Master Team Project' approach if using Visual Studio Online and if so could someone steer me in the right direction please?
    Thanks

    Hi  RedDwarf62,
    Visual Studio Online(formerly Team Foundation Service) is a cloud-based service. When work with it, you can take it as TFS but no infrastructure to manage. You can follow the guide to work with Visual Studio Online.
    To have mulpitle Applications/Solutions in one team project or use a team project for each application depends on you and the relationship between solutions/projects. If the solutons/applications has refences each other, it would be better to include
    them in the same team project. 
    Working within a single Team Project also has its benefits. You can check this blog for more informaiton:
    http://nakedalm.com/working-within-a-single-team-project-with-team-foundation-server-2012/
    Best regards,  
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • From Windows Azure `Edit in Visual Studio Online` ; Unclear On Which Login To Use

    I have created a web site in Windows Azure and linked my site to `Visual Studio Online` where I can do automated builds upon checkin and all works.
    Now from Azure's dashboard on the site I am presented with the option to edit it in Visual Studio Online:
    But then I am confronted with a user authentication page.
    Which credentials are to be used?
    How are the provisioned exactly? 
    If they are not a windows live id...why not?
    William Wegerson (www.OmegaCoder.Com)

    Hi,
    From the image you provided, it seems like you need credential to sign in ***.scm.azurewebsites.net, please kindly read the following article.
    #http://blogs.msdn.com/b/windowsazure/archive/2014/03/04/windows-azure-websites-online-tools-you-should-know-about.aspx
    Here is a snippet:
     simply browse using your favorite internet browser to https://{site name}.scm.azurewebsites.net (in other words, add
    .scm in front of the site name). Upon entry, you will be asked for credentials and those will be the same as your deployment credentials. If you have never set up your deployment credentials, you can open your site’s dashboard
    in the Azure Portal and click Set up deployment credentials. If you already have deployment credentials but do not remember them, you can use the dashboard to reset them
    Best Regards
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Error importing result file from Visual Studio Online load test - Incorrect Syntax near ')'

    We are seeing the exact same issue as reported in:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/4a338992-1a46-47ae-9f13-10a53a6264b5/error-downloading-load-test-report-from-visual-studio-service-load-test-incorrect-syntax-near?forum=TFService#cb43383b-c60d-4dcc-a353-352ac6908b35
    When clicking on the "Download report" after running a load test using Visual Studio Online an error occurs.  The download completes, but the import fails at 15% with the following:
    This is happening for 2 different users on 2 different systems.  
    Any assistance in resolving this would be greatly appreciated!
    Let me know if additional information is needed.
    Thanks!

    Hi,
    We are researching your issue. Please clarify my question with detailed information:
    1. Do you get the error in your first post when you click ‘Download report’ after you run load test from
    Visual Studio 2013 on
    team foundation service?
    2 You said that ‘I am trying to import the test results into a Visual Studio 2012 (Update 3) on-prem instance’, what and where is
    your load test result repository? A SQL Server database or the default database:LoadTest2010 in SQL Express on the same machine with Visual Studio 2013?
    3 Whether you specify the load test result repository under Load Test->Manage Test Controller?
    4. What error do you get? Please provide us more detailed information about the error message or share us with a screenshot.
    5 Whether you can run the load test successfully locally and get the load test result with the same load test result database?
    6 You said that your co-worker can work fine. Please check whether your account has enough permissions for load test result database and download load test result from TFS to load test result database based on the account
    permission of your co-work.
    Thanks,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Move file/Client_host

    Hi all, I want to move file from client to server using Oracle Apex. I am using wwv_flow_file table to load the content and drop into the server directory but i have been instructed not to use this instead use only PL/SQL to do this task. I know abou

  • Error 1051440:

    Hi All, We are facing a unique issue in our Hyperion setup now, which was working perfectly a few meating a onths back. When we try to login to Essbase via Console or via Excel Add-In, it fails in the first attempt. But without changing the password

  • Trouble signing into my flickr account

    Hi, When I choose "create from an image" from Kuler and then try to login to flickr -  Flickr returns the following error: Oops! The API key or signature is invalid. An external application has requested your login credentials and permission to perfo

  • Flash and the ActiveX of IE 7

    Hi, I'm developing a webpage with Dreamweaver and Flash for the menu and other animation, but every time I visit or test the page a message appear "To help protect your security, Internet Explorer has restricted this webpage from running scripts or A

  • How do I install apps?

    I know it sounds silly, but I can't get my C3-00 (with Opera Mini) to install apps. Whether I download them using the phone (like from Ovi.com) or my computer and put them on the phone later, the apps show up under "games" just fine, but when I open