Glimpse button not available - asp.net

I installed Glimpse and run my app. I don't see the Glimpse icon in the bottom of the screen. It was a pretty simple installation process so I may have missed something, but perz the blogs it looks like I did everything I needed to do.
When I go to Glimpse.axd, it tells me: glimpseState = On, IP = ::1, On=True. It also says that my blacklisted plugins are: Request and MetaData. (I don't know if this is standard, or an indication that something is wrong).
Any ideas on where the full list of steps are at?
Software Installed: VS 2010, SP1 and NuGet, C#,
Razor viewengine,
Glimpse.Mvc3 0.85,
IE 9 and FF6,
a link to jquery is on every page
Oh yeah - when I run my app the url is "http://localhost:52160/" I see in the webconfig file a section about environments and it had an entry "localhost:33333" so I changed it to "localhost:52160" to see if that might help. Didn't seem to affect anything.
Confused...

For completeness sake, the Glimpse NuGet package will automatically set the web.config settings for you.
If you are not using the NuGet package, you can see how to set up your web.config here: http://glimpse.codeplex.com/documentation

Related

Context menu has no "Add Scaffolding" nor "Add Controller" options

I'm trying to get started with ASP.NET/C#, and I'm doing so by following along some guides and tutorials.
One major issue I keep running into is that I have no Add Scaffolding in the context menu, nor Add Controller. I can't figure out a workaround for the lack of the Add Scaffolding.
There are various relate posts on SO. I will address some:
How to Add Controller
The accepted answer says something that directly contradicts my experience. There is no Add Controller option anywhere.
Reload the project
Reinstall suggested in this comment
I've tried uninstalling and reinstalling several versions. So far I've tried VS2013 Express for Web, VS2013 Community, and right now I'm using VS2013 Ultimate. Each one has had a fresh install installed within the month.
Add a guid
I tried adding a guid to a .proj file, an idea from another question at the moment of which I cannot find.
Same issue in Sep 2014, no answer
I realize there are several questions with the same issue, but none of the answers address my situation. Of the solutions I've seen proposed, I can't get any of them to work. Maybe I'm copying the guid's in the wrong place, maybe I'm not uninstalling correctly, I'm not sure.
I haven't yet tried to uninstall everything related to VS. I have a lot of random product on this machine. I wasn't aware that, for example, "Microsoft Visual Studio 2010 Tools for Office Runtime (x64) or Microsoft Visual Studio Tools for Applications 2.0 - ENU could disrupt VS2013 features. If anyone has information about this please let me know. I don't know the extent to which I would have to uninstall stuff in order to find the root of this issue. My Programs and Features menu is littered with MS product that I can barely tell apart.
EDIT:
Some Background Info:
I am using Microsoft Visual Studio Ultimate 2013 Version 12.0.31101.00 Update 4, and Microsoft .NET Framework Version 4.5.50938.
I used no special install instructions.
It's a web application. File > New Project... > Installed..Templates..Visual C#..Web..ASP.NET Web Application > MVC.
Upon Dleh's suggestion, I looked for the Add > ... buttons after changing the project type. I selected File > New Project ... > Visual Studio 2012 > ASP.NET MVC 4 Web Application (.NET Framework 4.5.1) > Internet Application, and I am confused to report that there is an Add > Controller... button. I have no idea what is happening.
Also, of note, I (within the week) installed VS2013 Ultimate on my home machine, and I have having none of these issues.
I believe I have solved the issue, but I don't know exactly what I did.
One answer from here was part of what prompted me to uninstall a number of MS products and features. Unfortunately, I can't remember the exact program or feature I uninstalled.
It seems like the uninstalling of related programs and features fixed the issue. By "related programs and features" I mean anything in the Control Panel > All Control Panel Items > Programs and Features menu that had ".NET" or "Visual Studio" or "Microsoft * Web Tools" or of the like. Many of them required a system reboot after uninstalling, and after one system reboot, the desired features in VS2013 was there.
There were on the order of 20-30 MS+VS+.NET related programs, and I uninstalled about 15.
I can't remember exactly which one I uninstalled, but it was anything that look remotely old and related to VS or .NET. Even if it was recent, I always figured I could reinstall stuff if I got the wrong thing.
Hopefully, anyone going through a similar issue will find this helpful. Good luck.
Had the same issue, installing
AspNetWebTools2013_1Setup.exe
WebToolsExtensionsVS.msi
fixed it for me.
Link Here

Website running .NET 3.5 cannot use feature not part of ISO-2 specs

I am getting this error a lot:
Feature '{insert feature here}' cannot be used because it is not part of the
ISO-2 C# language specification
I am working on a .NET 3.5 website that I've worked on on and off for about two years. I've never seen this error before my most recent around of updates. I'm using a decent amount of LINQ coding throughout and I get these errors related to much of the LINQ code. Based on what I've read it seems like even though I'm using .NET 3.5, for some reason it thinks I'm using 2.0. But I can't find anything that says how to fix it.
One example of a problem is that if I try to add a new item to the App_Code directory, I do not get the option to add a LINQ to SQL dbml file.
If anyone can shed some light on how exactly I would fix this, I would much appreciate it.
I was unable to locate an "Advanced" option under the build tab. I have a feeling it is probably because it is a web app. I looked through the web.config and found 2 parts that may be important. Most things referenced 3.5.0.0 or v3.5. The settings are consistent with older backups of the web.config from when there were no errors. By the way, only intellisense and things within VS2010 are giving me problems. The website is running error free.
I have completed a total uninstall and re-install of VS2010 and I'm still having the same issue. I fired up my old install of VS2008 and I am NOT having this issue there. However, I would MUCH prefer to use VS2010 on this project.
I opened the website in VS2010 on my work computer, and there are no errors reported. This is making me think that there is something on my laptop that is causing the problem. As I noted above, I completely reinstalled Visual Studio 2010 and I am still having the problem. What does this leave? I have only one extension installed in VS, and it's the same one at work and on my laptop. Also, I did not reinstall the extension after reinstalling VS, and the problem persists.
Both PC's run Win7 Ultimate. Have VS2008 and VS2010 installed. VS2010 has the same extension installed on both. On my laptop I have the full version of SQL Server 2008 installed, but only the Management Studio on my desktop (we have a server in the office). Would SS2008 have anything to do with it?
Go to your project properties, the Build tab, Advanced - that should allow you to set which version of C# you want to use. It should default to the latest version supported by the version of Visual Studio you're using, but it sounds like at some point you've switched it to ISO-2.
(That's certainly true for Windows projects and class libraries - there may be a different location in a web app. In particular, have a look in Web.config.)
If this has only started happening recently, I'd have a look through your source control history at changes to any configuration files. Also try creating a new project of the same type, and see if that has the same problem.
Jon Skeet's answer is mostly correct. The location for the update is in the "Property Pages" which I got to by right-clicking on the name of the website, clicking Property Pages, the Build item, then target framework.
The extension I use, Solution Navigator, has it's own heading for the solution. Right-clicking on it DOES NOT give me the Property Pages option. By chance I right clicked on the title of the website under the solution heading and was presented with the Property Pages option. In there was the Build tab which contained the target framework option.
Once I finally found the target framework option, it was indeed set to .NET 2.0 for some reason. I changed it to 3.5, reloaded the solution, and now it works great.
Thanks a million Jon for your help and time working with me!!

Failed to generate binding redirects for 'localhost'. An item with the same key has already been added

Using ASP.NET WebForms in Visual Studio 2010, and adding Glimpse to my WebSite (not WebApp):
I'm trying to install NuGet Package -> Glimpse.
The install is pretty straightforward:
PM> Install-Package Glimpse
Successfully installed 'Glimpse 0.79'.
Successfully added 'Glimpse 0.79' to
localhost.
But then I get an error in pink
Failed to generate binding redirects for 'localhost'. An item with the same key has already been added.
I got an error about a reference to "Microsoft.Web.Infrastructure", which I resolved by finding that DLL and placing it in the bin folder for my Website
Now I'm getting an http 404 error on http://localhost/websiteName/Glimpse/Config
I'm assuming the error is because the config file does not really exist there, and the route it tried to insert into IIS didn't work properly, so the page cannot be found.
Any help would be greatly appreciated, thank you in advance!
I'm a member of the glimpse team. Unfortunately, glimpse 0.79 does not support WebForms out of the box.
I expect that all the issues you have listed here will "disappear" once we have more official support.
If your really keen to get up and running, I recommend grabbing the source from gitHub.com/Glimpse and manually referencing Glimpse.Net.
I've also marked this SO question to make sure that we test out your use case when we are preparing to release with official support for WebForms.

ASP.NET site upgraded VS08 - VS10, and now compile-time errors do not show until I request the page at run-time

I have an ASP.NET website that worked fine using and debugging in VS2008. I went through the upgrade process opening the solution in VS2010. I can run the site, but as I make changes in the app_code folder classes, they don't seem to commpile and warn me of compile-time errors. As soon as I get to a point that calls the class, the errors show up. Sounds JIT I guess, but this isn't how it was working in 08. Is there an option that was changed in the upgrade process? This is a large project, I really don't want to break something and not find out until some obscure page is opened.
I feel like a bit of an idiot, after asking the question, I went to my Configuration Manager and found that the web project was un-checked in the build column. I still don't know why this would have changed from 08 to 10, but everything seems to be working now as it did on 08.

TFS 2010 - TF14040 The Folder may not be checked out

I have a .NET 4 website in VS2010 stored in a TFS 2010 team project. I need to add a reference to System.Data.Linq.dll to the website. I am referencing a LINQ DataContext that is defined in another project and I get build errors saying that I need the reference to System.Data.Linq. I go up to the "Add Reference" menu option and add it like I would any normal reference, and it even shows up in the Web.config and in the Properties pages for the website... BUT if I build I still get the same error.
So I found a place in my code where I was referencing the LINQ count function and it told me it was invalid because I was missing a reference and it offered to add the reference automatically. I told it to add the reference automatically and it is at this point that I get the error mentioned in the subject:
TF14040: The folder $/Folder/Subfolder may not be checked out. No items were checked out
I've done some research online but I haven't been able to find much. I saw on a blog that making the folder not readonly fixed the issue for him, but it didn't seem to work for me unless I misunderstood something.
I tried loading up the project from source control onto a fresh computer where that project had never been loaded before and I can reproduce the issue the same way. Help would be greatly appreciated.
FWIW, this error also occurs in different circumstances. I had the same error today from the command line when trying to use tfs checkout SomeFolder /login:user,password, although this was not within the context of an asp.net app, I'm currently working on dependency replication. For me, adding the /recursive command worked, like this:
tfs checkout SomeFolder /recursive /login:user,password
The hint to try that came from here, by the way.
I have no idea if this is your problem but I've noticed that TFS2010 seems to have some bug somewhere around folder renames/deletes/changes or something. The bugs seem to go away when you check everything in and try again after the folder change has been saved to source control. I have hit this issue a dozen times this week but don't know exactly what the scenarios are. It's quite frustrating.
I figured it out, but it's a little strange. I had some build errors that I hadn't fixed yet, also my web.config file used to be for a 3.5 SP1 site and I upgraded the site to 4.0. Somewhere along the line the build errors and the web.config combined to form this strange weird error that apparently has nothing to do with TFS.
I figured it out by creating a new website and slowly moving over portions of my site to that new site. Things didn't go totally crazy until I moved over my web.config. So I went back and updated my web.config file so that it more closely matched the way a .Net 4 web.config should by trimming out a lot of stuff and now things are good and building fine. Thanks for the help.

Resources