Visual Studio :: Cannot Currently Modify This Text In The Editor.It Is Read Only Error
Aug 24, 2010
perhaps i have found a bug in Visual Studio 2008 Team Edition.Every thing was going well.
I started to build my project, but for certain reasons i went to Built Tab and while the project wes in build process i clicked Cancel Button.Alas!! after that my class file has gone to non-editable mode.It is giving this error:
"cannot currently modify this text in the editor.It is read only ".I closed and again opened Project but no improvement.I went to Tool->Import Export Setting->reset all settings but no benefit.
I'm faced with an usual problem. Currently, I'm working on a site as a hobby and I want to use a text editor. The problem is I do all my work from school. Unfortunately the school uses a drive shield on all their computers. So every time you turn off the computer it wipes the hard drive clean and uses an image of the original operating system once booted up. With this said - could I still download a text editor and have it working for visual studio without too much trouble?
I just installed Visual studio 2010 ultimate RC on my windows 7 server. It doe snot show line number. So I went to Tool->Option->Editor, however, there is no where I cna find line number choice.
I used to have Visual Studio 2010 professional beta, it has the same problem, no line number to show up. However, it has a check box: line number. Even if I check the box, still no line number to show up.
I want to change the default formview generated template. I don't mean change the itemtemple on each page, I mean what VS generates when ever you databind the formview. I want to change it so it uses <label...>xxx</label> instead of xxx <asp....
I've taken over an ASP.NET project and the previous dev used "dynamic" DSNs sprinkled throughout the application. These data sources are databound to several controls throughout the site.I'd prefer to use a system DSN that I would define on my dev machine and the production web server. This way if I need to change the location of the SQL database I can just change the system DSN on the server instead of modifying the code and recompiling the application in Visual Studio.What is the easiest way to list all these dynamic DSNs that are in use in this web site project in Visual Studio 2008 and modify them to use a system DSN instead?
I know for those who dont use it may think this is minor, but it appears that VS2010 has done away with the "Brief" style editor. Brief style editing makes me way more productive since I am one that tends to spend most of my time in the code. Does anyone know how to turn on Brief style editing in VS 2010 or are there any plans to add it in?
Im having an issue when I create a new ASP.NET Web Application within Visual Studio 2010, this creates a web.config configured to use SQLEXPRESS. The default web.config that VisualStudio generates for New Web Application Projects still points to the SQLServerExpress Database which I had previously removed! The only instance that I have now is SQL Server 2008 R2 Developer. The web.config that is created along with other files for the for New Web Application Projects template:
[Code]....
The question is how can I change this web.config thats created with the ASP.NET Web Project template automatically from Visual Studio 2010? I can go in and modify the web.config by hand obviously. It doesnt make sense to have the web.config automatically created this way whereby the connectionstrings point to SQLServer Express that does not exist. I did in stall Visual Studio 2010 which included SQLServerExpress, but that I later removed. Now is VisualStudio always going to create web.config's pointing to SQLServer Express?
I've got an interesting one here - I honestly don't think I've had this issue before. My folder system looks something like this (as noobish as it may be):
-Root ../Pages ../Pages/Admin ../Pages/OtherFolder ../Pages/AnotherFolder etc.
Now - I've got a Masterpage file in the Pages folder which is the general look of the entire site. Then, in each Pages Folder there's going to be another Masterpage inheriting the Page Folder Masterpage File.This seemed like a very simple and standard approach. But I'm having an issue. When editing the application in VWD2008E - I can see the Page Masterpage file just fine in Design View. But when trying to look at the the Masterpage Files, say the Admin Folder or the OtherFolder, in Design View - nothing shows except the Page Masterpage. It's really frustrating. Oddly, when running the application, no errors pop up and the sub-folder masterpages/pages show up just fine. They simply won't display in the editor.
When I edit .aspx or .cshtml file in the Visual Studio and press Ctrl-F5 (run), it runs the current file in the browser. How do I make it to avoid this and always open the app's site URL instead?
I am building master page in visual studio 2005 and I have placed contentplaceholder into between <head> and </head> tag of master page, but in source view of visual studio 2005, I am getting error that says "unrecognized tag prefix or device filter" how do i get rid of this error or is this bug in visual studio 2005
i am using VS 2005 with Sql Server 2005 Business Inteligance Studio. All my reports are by default open in Xml editor, not in Report Desginer. how to change it to Report Desginer , i don't find any open with option .
Does anyone have a recommendation of a link(s) that provides a variety of color schemes either to be set manually or through a file for VS.NET 2008? For example instead of the default, white background with blue and black letters (VB.NET), etc. I want to see some contrasting black background color schemes or other combinations?
My development groups uses shelf sets for doing code reviews. When a shelf set has a new-to-source-control file, I need to view it. I had configured Notepad as my viewer application for several file suffixes but now I would like to change that to another application. Problem is that I cannot find anywhere how to change that association--it is *not* the Windows-wide app/file-type asociation kept in the Windows registry.
how to reset the default application assignments used in shelf set reviews?
I know I've seen this in one of the video tutorials but I have no idea which one and I have reinstalled VS since then. I think it was Chris Pels that showed how to set up VS so that you had IntelliSense for XML files. The reason I ask is because I'm going through the Security tutorials series and working on the web.config file and the editor doesn't highlight the closing or opening tag when you click on one or the other like it does for HTML or C#.
Not sure if I'm explaining this clearly or not. When working with HTML or C# I can click on the opening tag for an element, say a div tag and VS will bold the type of the closing div tag. This makes it easy to be sure that I'm not messing up my tags. Well this doesn't happen with an XML document. I saw in one of the videos where the author configured the settings in VS so that IntelliSense would work in an XML document. I just don't remember the path to those settings or what changes were made.
I am getting the following error when I try to establish ftp remote connection using the 'copy web site' feature on visual studio 2005.
unable to open the web 'ftp://209.*.*.*/httpdocs'. The computer is disconnected from the network.
Why can't I connect to the remote site on visual studio 2005? I can do the same thing on Dreamweaver with no problem. I can ping the IP successfully. I can open the ftp URL on a web browser with no problem.
I am trying to get a .txt file to be read by my server application. My problem is that i cannot get it to read user information. I would like for my application to do something like if there is a "#", to read the next 2 lines down for more information.
I've got a macro that updates a copyright header with the most recent edit date.
The problem I have is that the macro currently reads through the entire file rather than just the first 6 lines (which is all it needs).
Is there a way to get the Macro to only read the first "X" lines rather than the entire file?
Private selection As EnvDTE.TextSelection = DTE.ActiveDocument.Selection Private Sub UpdateCopyrightHeader() selection.StartOfDocument() selection.EndOfDocument(True) Dim content As String = selection.Text Dim result = System.Text.RegularExpressions.Regex.Replace(content, regex, "<lastedit>" & FormatDateTime(Date.Now, vbLongDate) & "</lastedit>") selection.Delete() selection.Collapse() Dim ed As EditPoint = selection.TopPoint.CreateEditPoint() ed.Insert(result) End Sub