{"id":2219,"date":"2014-03-06T11:38:04","date_gmt":"2014-03-05T23:38:04","guid":{"rendered":"https:\/\/www.deltics.co.nz\/blog\/?p=2219"},"modified":"2014-03-06T11:38:23","modified_gmt":"2014-03-05T23:38:23","slug":"the-operation-could-not-be-completed-solved","status":"publish","type":"post","link":"https:\/\/www.deltics.co.nz\/blog\/posts\/2219\/","title":{"rendered":"&#8220;The Operation Could Not Be Completed&#8221; &#8211; Solved!"},"content":{"rendered":"<span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">[Estimated Reading Time: <\/span> <span class=\"rt-time\"> 2<\/span> <span class=\"rt-label rt-postfix\">minutes]<\/span><\/span><p>For a while now I had been frustrated by <strong>Visual Studio<\/strong>&#8216;s sudden decision to be un-cooperative when saving new projects, but have finally solved the problem!  Or at least, that manifestation of the problem that was afflicting me.<br \/>\n<!--more--><\/p>\n<p>The issue I was experiencing was baffling.  Following these steps:<\/p>\n<ol>\n<li>Create new project from template project<\/li>\n<li>Save solution<\/li>\n<\/ol>\n<p><strong>Visual Studio<\/strong> would stubbornly and unhelpfully complain that &#8220;<em>The operation could not be completed<\/em>&#8220;.  Upon checking the desired save location I would find that a solution directory had been created, but that was it.  There were no other project or solutions files or folders.<\/p>\n<p>As far as error information went, that was it.  No further information was forthcoming.  Even attaching another instance of <strong>Visual Studio<\/strong> debugger to the IDE process shed no light, with no apparent exceptions or other output to indicate why <strong>Visual Studio<\/strong> would be having any difficulty with what should be a simple operation.<\/p>\n<p><strong>Windows Event Viewer<\/strong> was similarly bereft of useful information.<\/p>\n<p>&#8220;<a href=\"http:\/\/www.youtube.com\/watch?v=NYklvrt-rNM\" title=\"Computer Says 'No'\" target=\"_blank\">Computer says &#8216;No&#8217;<\/a>&#8221; would have been about as useful.<\/p>\n<p>At first it only seemed to affect certain project types and I was able to work around that by working in other project types or on existing projects.<\/p>\n<p>Googling the issue was an exercise in frustration in itself.<\/p>\n<p>The variety of circumstances (and versions!) in which <strong>Visual Studio<\/strong> has exhibited this sort of stubborn refusal to complete an operation were manifold, and none of those scenarios or the proposed resolutions applied to my simple case (and unsurprisingly did not resolve my problem when I tried them out of sheer desperation).<\/p>\n<p>But I made a breakthrough today!<\/p>\n<p>I finally stumbled upon <a href=\"http:\/\/www.pertell.com\/sqlservings\/archive\/2012\/07\/error-when-saving-tabular-project-in-visual-studio-2010\/\" target=\"_blank\">someone who had experienced apparently the same problem, but with a different specific project type<\/a>.<\/p>\n<p>It was also in an older version of <strong>Visual Studio<\/strong> (<strong>2010<\/strong>) than the one I was using (<strong>2012<\/strong>), but fortune favours the bold, and the suggested solution was trivial so I thought why not give it a try&#8230;<\/p>\n<p>The solution being: <em>Ensure that &#8220;<strong>Save new project when created<\/strong>&#8221; is enabled in Visual Studio settings<\/em>.<\/p>\n<p>And would you believe it, it worked!<\/p>\n","protected":false},"excerpt":{"rendered":"<p><span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">[Estimated Reading Time: <\/span> <span class=\"rt-time\"> 2<\/span> <span class=\"rt-label rt-postfix\">minutes]<\/span><\/span>For a while now I had been frustrated by Visual Studio&#8216;s sudden decision to be un-cooperative when saving new projects, but have finally solved the problem! Or at least, that manifestation of the problem that was afflicting me.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[4],"tags":[266],"class_list":["post-2219","post","type-post","status-publish","format-standard","hentry","category-delphi","tag-visual-studio"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1TKYv-zN","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.deltics.co.nz\/blog\/wp-json\/wp\/v2\/posts\/2219","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.deltics.co.nz\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.deltics.co.nz\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.deltics.co.nz\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.deltics.co.nz\/blog\/wp-json\/wp\/v2\/comments?post=2219"}],"version-history":[{"count":3,"href":"https:\/\/www.deltics.co.nz\/blog\/wp-json\/wp\/v2\/posts\/2219\/revisions"}],"predecessor-version":[{"id":2222,"href":"https:\/\/www.deltics.co.nz\/blog\/wp-json\/wp\/v2\/posts\/2219\/revisions\/2222"}],"wp:attachment":[{"href":"https:\/\/www.deltics.co.nz\/blog\/wp-json\/wp\/v2\/media?parent=2219"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.deltics.co.nz\/blog\/wp-json\/wp\/v2\/categories?post=2219"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.deltics.co.nz\/blog\/wp-json\/wp\/v2\/tags?post=2219"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}