Visual Studio :: Formatting Not Working For C# (Win7 X64 SP1, VS2011 X62 SP1)
Mar 25, 2011
I just can't seem to get C# code to auto-format, despite having gone over all the Formatting options for c# to make sure they are correct. For example, I want brackets to auto-format to a new line, but nothing changes. I want catch keywords to automatically go to a new line, yet they don't. The options are checked in Formatting under C#, so what gives? HTML formatting works, and prop-tab-tab works in c#, but new line formatting and such does not.
View 1 Replies
Similar Messages:
Oct 14, 2010
I am running Visual Studio 2008. I cannot get the auto format to work on the source code of my aspx page. I have tried it from the edit menu and the ctrl K, D. Nothing works. If I manually fix everything, the next time I open the file the formatting is gone. Here is a sample of what it looks like:
[Code]....
View 2 Replies
Sep 17, 2010
We recently converted the VS.2005 application into VS2008 in XP machine and it was working fine like compiling with out any issues and working as expected. But recently team upgraded laptops to Win7 when trying to compile it we have got issues then we changed the compiler settings to 'x86' and compiled it went good. But after that login screen came when ran the applciation without environment selection (production, DEV, Testing etc). basically we are getting this environment setup from system registry, we uderstand that Win7 is looking in different location hence no environment information is coming up..later we see that where the code is looking for environment environment and created environment keys in registry, after that environment infromation displayed in login screen but not able to login into applciaiton throwing exceptions like " Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))"
View 6 Replies
Jan 21, 2010
I am trying to provide the reference of one of my web services from my asp.net web application in Visual Studio 2008 by clicking "Web services on the local machine.
However I am getting the following error:
There was an error while enumerating services on local machine: Active Directory Services cannot find the web server. A possible cause for this is an incompatibility between versions of Internet Information Server (IIS) on the client and the server. Another possible cause is that IIS is not installed on the local machine, or the user identity under which you are running may not have permissions to view websites on this machine. To view websites on this machine, make sure that you run Visual Studio as administrator. On Windows Vista computers with IIS installed, make sure that IIS Metabase and IIS 6 configuration compatibility feature is enabled.
I have installed IIS successfully and I am running Visual Studio as an administrator.
View 1 Replies
May 19, 2010
I'm trying to run a simple console app on Win7 VS2010.
Here's the code:
using (FileStream stw = new FileStream(@"c:OrdersToday.pdf", FileMode.Create))
View 9 Replies
Aug 17, 2010
Getting the below error while setting up application on Win 7 using visual studio.NET 2003.
Error:
cannot find the components for communiacting with the front page server extensions...
View 2 Replies
Sep 28, 2010
i have installed visual studio 2010. But when i add a new tool bar like "layout". It all options appears disable (mean i cant select any option). Please how will i enable these options.
View 1 Replies
Jul 22, 2010
how to make the formatting also apply to the ASP.NET server side tag <% %>
Like the related question, a block like this one
Good
<ul id="menu">
<li><%: Html.ActionLink("Home", "Index", "Home")%></li>
<li><%: Html.ActionLink("About", "About", "Home")%></li>
</ul>
Will get formatted into
Bad
<ul id="menu">
<li>
<%: Html.ActionLink("Home", "Index", "Home")%></li>
<li>
<%: Html.ActionLink("About", "About", "Home")%></li>
</ul>
I want to prevent Visual Studio from changing the formatting concerning asp.net server tag <% %>.
View 1 Replies
Jan 27, 2010
I'm not sure what happened, I didn't change any settings. For example, i could type the following:
a{
then hit return, and get
a
{
Now though nothing happens. It's not formatting like it used to. where I can set this or switch it back? I checked Tools > Options > CSS but couldn't find anything there that fixed it.
View 3 Replies
Jul 28, 2010
I just recently upgrade my asp.net web project from visual studio 2005 to visual studio 2010. The upgrade was successful with no problems however im missing some features with this project. The One Click Publish feature(which is greyed out) in the header area of Visual Studio 2010 and the Add Config Transforms feature which is no where to be seen when you right click on web.config. When i create a new web project straight from visual studio 2010, these options work fine.
View 1 Replies
May 20, 2010
I have an annoying problem with Visual Studio 2008.
When I run the "format code" command ("control+k, control+d") -- it will insert a carriage return. How do I get it to stop doing this?
For example:
<label for="shipCompanyName">Company Name:</label>
undesirably becomes
<label for="shipCompanyName">
Company Name:<label />
View 2 Replies
Jan 15, 2011
I am using vs2008 pro. my problem is that javascript debugger is not working on mozila firefox but working fine on IE8.
View 1 Replies
Aug 14, 2010
is it possible to convert whole visual studio 2008 web site project to visual studio 2010 web site project
my current project references
i have a very annoying iis problem
iis server stops working until app pool is recycled
i am hoping that new visual studio (net framework 4.0) may solve this very annoying unsolveable problem
View 2 Replies
Jan 24, 2011
I have VS 2010. But IDE Not Working Properly like some times breakpoints are not applied, auto complete text is not showing etc.,
How can I get VS 2010 IDE right.
I have done Devenv /ResetSkipPkgs also...and resettes all the settings.
View 1 Replies
Apr 5, 2010
i was trying to build a basic web form using labels and textboxes but in my tool box i couldnt find any tools can some one help me how to configure those tools in the tool box,and also in APP_DATA i couldnt find the option like ADDNEW ITEM i am currently using visual studio 2008 trail versio
View 1 Replies
Feb 2, 2010
I'm having problem in using breakpoint. I'm creating a website in VS2005 in ASP.Net/C# language. but the problem is i can't seem to use the breakpoint.After putting the toggle breakpoint, and i clicked start debugging. it won't hit the breakpoint. but it will start running.however at the breakpoint (it should be a big red dot), it changed to something like this.then the program will continue to run but not hitting the breakpoint. i tried my program using my friend vs2005, the breakpoint can be hit...does anyone able to help me to solve the problem? i tried to search the solution in google and here. but seems like the solution doesn't work.
View 10 Replies
Mar 7, 2010
I'm working on a Web Application in Visual Studio 2008. For some reason the CSS only works properly inside visual studio. I can see the CSS inside the design view of the page. When I view the page on localhost the CSS is not being applied. This is just a very simple sample that I am working with. Only 2 pages, a master page, and a default page.
Here is the master page.
<head runat="server">
<titleFoobar</title>
<asp:ContentPlaceHolder ID="head" runat="server">
</asp:ContentPlaceHolder>
[Code]...
View 3 Replies
May 7, 2010
i put a break point at ADD button, when ever i click on the button the it is not entering into that?
what might be the problem?
previously it has worked but its not working.
View 1 Replies
May 21, 2010
Anyone know if I can maintain a VS 2008 (.net 3.5) project by using the VS 2010 IDE ?
View 1 Replies
Apr 30, 2010
Im trying to do this
[Code]....
But it doesnt like
[Code]....
Won't work for me since this is a mobile application.
View 2 Replies
Apr 19, 2010
Im using Visual Studio 2010 in Windows 7.
I got a problem regarding CSS in my pages. I managed to apply styles to my page using css and everything looks fine in the Design view. I ran it on IE8 and everything is working fine. Now after I returned to Visual Studio, added some rules to my CSS, and noticing that everything is working fine in the Design view, I ran it again in IE8 and nothing has changed. The rules I added was ignored and it looks the same. I ran it on Firefox and Google Chrome and it's working fine.
But if I ran my project in IE8 through IIS7.5, everything is working fine so it means, the problem is within visual studio 2010.
View 1 Replies
Apr 23, 2010
I am working on an ASP.NET project and I cannot make the breakpoints work! The project does not stop where I place a breakpoint. It does not seem to matter where I place the breakpoint.
I am in debug mode; I am using IE 8, Windows 7 OS;
View 4 Replies
Mar 1, 2011
earlier i had win xp & VS2005 , i had a web application ajax based which was working fine. i changed th eOS to win 2008 , installed & confirgued IIS
now when i am trying to exccute the application the page is not getting displayed even after a long time
when i build the application in this new OS there are no Errors shown but the page of the web application is not displayed
i even tried thr' IIS , selected the first page & clicked browse but that too is not showing
wht chngaes needs to be made ? & where do i debug??
View 3 Replies
Apr 8, 2010
I'm developing a website using Visual Studio 2010 Beta on computer 1. The site is working...I can debug, the pages render in a browser and I even have Member accounts working. Life is good.
I'm trying to move the application to the new computer (computer 2). I've downloaded Visual Studio Beta 2010 (slightly different look and feel) and copied the project over.
When I try to run the project in the new computer I'm getting the error:
Parser Error Message: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.
Not sure where to go with this. The web.config file is identical on both computers. The project is set to run with .Net 4 on both computers. Not sure why the targetFramework attribute would be allowed on computer 1 but not on computer 2.Maybe the earlier version of VS 2010 on computer 1 is allowing something that shouldn't be allowed?
View 4 Replies
Apr 14, 2010
As I wanted to try out the new VS, I started and began working on a C# web project that I had previously started in VS2008. So far, so good. But then I noticed that Intellisense is not working at all. I have done some searching, but all I could find were some problems with the release candidate version crashing.Does anyone have any insight as to what might be causing this and how to resolve it?
View 3 Replies