I just switched over from Visual Web Developer to Visual studio 2012, I am a very novice asp.net programmer and know little to nothing about what a web config file's contents should contain / mean. I noticed the web configs file is drastically less populated by default in visual web studio, does this mean i have to hand code everything that used to be automatically populated? Or is there a way to get the necessities (for example the necessary login code) auto populated.
You need to add contents to web.config based on your requirement.
Less contents gives us cleaner web.config and only required things are there.
Related
How to customise I have knowledge to customise process template in tfs 2015 or in 2012 but for upgrade version in 2017 is there any changes or any enhancement.
I have find in google but I have not found any helpful to customise process template in 2017 specifically.
your help should be appreciated. thanks
The first step is you need to download the process template you want to edit from you TFS server. To do this, launch Visual Studio and navigate in the menus to "Team -> Team Project Collection Settings -> Process Template Manager". When the dialog shows up, you will be able to select the template you wish to edit and download it. Detailed instructions for this can also be found here.
Once you have downloaded the process template, you have a series of XML files that describe how TFS should handle almost everything when you create a new project using that template. The XML can get overwhelming quickly, even for the most seasoned person. You should ideally use the Process Template Editor which is a plugin for Visual Studio (the link is for Visual Studio 2017). For details on customizing a template, you should start off by reading the Customize a process template on the Visual Studio documentation site.
Once you've made your changes, you simply need to upload your process template back to the server using the Process Template Manager (where you downloaded the template). If you replace an existing template, anything using that template will get the updates. If you create a new template, only new projects using that template will be able to make use of it.
Not much has changed with editing the process templates between TFS 2013, TFS 2015 and TFS 2017. So if you find a blog or a write up on one of the versions, there is a good chance it's still valid. There may be slight differences in UI, but there shouldn't be anything ground breaking.
DISCLAIMER!!!
Now that I've answered your question, I would be negligent if I didn't explain the dangers of what you are about to do. Customizing a TFS process template can be very dangerous to your TFS server. Microsoft does not guarantee or put any warranty on changes you make. You customize a template, you are on your own. You have to understand that this template literally tells TFS how to work. It is highly recommended to have a sandbox environment complete separated from your production server and make all changes in said sandbox environment first. Only after you've validated the changes should you move it to your production environment. In addition, anytime you deploy a change to your production server, make sure you have healthy backups your databases. I can't stress this enough.
Lastly, any changes you make, you run the risk of locking yourself into a specific version of TFS or making your upgrade path far more difficult. My last piece of advice is to carefully weigh the need for customization over the risk associated with making it.
This has been happening to me and others on my team, maybe once a week. We'll be debugging a web application project and then edit and save a text file that is part of the site (like a .aspx or .css files). The file will initially be fine in visual studio and look normal, but the output to the browser will be garbage. It's hard to know what's going on until you close the file in visual studio and try to re-open it. Visual studio will open the file in notepad for some reason, and you'll see all garbage characters.
To fix the problem I have to revert the file from TFS and any work not in TFS is lost.
We have Resharper 8.2.1 and the latest Telerik UI for Asp.net Ajax controls installed. Everything else is pretty standard setup for Visual Studio.
The web application project is set to use IIS Express.
Does anyone else ever have this problem, and know what might be causing it?
Edit: This just happened again, but this time with a class library project. So it doesn't seem to be exclusively a problem with web application projects.
In my case the problem had to do with the encryption software that is installed on my Dell laptop - "CREDANT Mobile Guardian Shield". If you have administrative access to this, then you can add exceptions so that it doesn't encrypt your project / solutions folders.
I don't have access to modify the exception list, so what I did was look through the exception list and found a path listed that looked suitable for placing files I work with. In my case I chose "C:\sources\". I reinstalled all of my tooling into c:\sources\apps\, and use c:\sources\projects\ for all my solution files / TFS workspaces. My apps run faster now because there's no encryption overhead, and I haven't had the file corruption problem since doing this about 2 months ago.
Notepad is believing that the text file is Unicode but it is ANSI. Change the file encoding to Unicode.
I have a really weird problem, be interested in some pointers
We have a website that we have coded from Visual Studio 2003 -> Visual Studio 2010. We are now looking at moving to 2013.
The website is in IIS, when I navigate to it using IE it works. When VS2013 is -open-, not running, but has the project open we get a weird effect where the contents of the website gets duplicated by 3, its as if there are 3 iframes on the page, all with a copy of the same web site.
I close VS2013 and it goes back to normal
So, just to be clear, we don't even have to run the web site from within VS2013, just the project being open is enough to cause the weird effect
We use subversion as as far as I can tell no files have been modified when VS2013 is open
Any suggestions?
Thanks
It's Browser Link that's doing it! If you switch off Browser Link it works.
The source shows some extra script entries before the final tag but other than that the whole source is duplicated.
We don't need Browser Link and I don't have reflection capabilities on Asp.Net source so as to why that's for some one else to determine, I noticed a few people complaining when I searched on it so it may be something that just gets fixed in a future version
My intellisense and class highlighting does not work on one of ASP.NET website projects. It works for all other projects, including other ASP.NET website projects but just not this one.
The project was written in VS2010 and I've inherited it but am finding it difficult to use without code highlighting and auto-complete!
Note: my general VS2012 settings seem correct as I've never experience this with other projects loaded. I even created a new ASP.NET website project to check this, and yep, it all works fine in the new project!
If I type the first letter of a word that should be recognised e.g. the "S" of System then hitting ctrl-space gives me a list of options for logic operators, local variables, types such as:
for
myLocalVar
string
but no options for classes - so System doesn't appear, neither do any of my classes. If I do type out a class name in full then it will stay black and not be highlighted.
Here are two screen shots of the intellisense not working and the lack of highlighting. Any suggestions much appreciated!
It was actually an issue with my .suo file. This is the file that stores some user settings etc.
I deleted this file, and then re-saved the solution (.sln file).
Next time I opened the site I opened it using the .sln file instead of opening it as a web site:
File->Open->Project/Solution instead of File->Open->Web Site.
Hope this helps someone in the future.
A few questions, do you have ReSharper or any other development productivity tool that could have changed the settings for this particular project?
If not, then have you checked out the suggestions in this SO question?
Intellisense and code suggestion not working in Visual Studio 2012 Ultimate RC
Per the title, I can't figure out how to create user-scope entries in the default Settings.settings file for my web application. I'm using Visual Web Developer 2010 Express. All of them are application scope by default, and I can't change it - there is no drop down box. Some googling and searching yielded nothing - the MSDN page makes a reference to user-scope entries (and I know I used them in VS C# 2010 Express)...
So...
What am I missing? I feel really dumb. This seems to mean you can't create user-scope settings.
If I can't create user-scope settings, how can I programagically modify entries in Settings.settings?
User-scoped settings in web applications doesn't make many sense. How do you difference between users? Where do you store that values?
In windows applications makes sense, because there is an XML file per application.
Try to do that manually using ASP.NET users, and saving values in a database.