Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all 3509 articles
Browse latest View live

Possible Bug in VS 2010

$
0
0

ok so until recently I just let VS set the doctype in new documents for me and I have not worried about it. That was until HTML5 now it is recomended you use <!DOCTYPE html> now this is nice and all however, VS changes it to <!DOCTYPE html /> after you type it in. after spending about an hour trying to figure out why IE10 was defaulting to Quirks mode I finaly found out that you can not close a doctype tag. While I am very OCD and believe all tags should both have an open and close or are self closing no exception, it puzzles me why doctype seems to be the only exception? And why did MS not simply fix this little quirk in IE or at least in VS. I am not sure if it is fixed in 2012 as I am having trouble loading web projects with it. Any Thoughts? or am I just totaly thinking about this all wrong?


Visual Studio 2010 crashes 95% of the time I do a CTRL Z. Any idea how to fix this?

$
0
0

Arggghhh...  whenever I need to do a CTRL Z in Visual Studio 2010, Studio will lock up, then crash and restart.  Drives me crazy!  Any suggestions, (other than don't do CTRL Z) on how to fix this? 

I'm using Microsoft Visual Studio 2010, Version 10.0.40219.1 SP1REL   

 

How to display parent folder for recent projects

$
0
0

I have a number of client folders with the Company name as the folder name.  Within each client folder is the !Web folder where all of the website files are maintained.  As I add projects to the list, they all look the same.  Is there a way to make Visual Web Developer display the parent folder in addition to the project folder?

Thanks Ahead of time for your help...

VS2012: Incorrect warning, when debugging a wap,mvc application

$
0
0

The ide gives the following warning for my "upgraded" wap or mvc applications.

"This project uses SQL Server Express LocalDB. Microsoft recomends that you use SQL Server Express with IIS..."

My projects never used "sql server express localdb".

Why this warning?

VS 2010: properties description missing in Source View

$
0
0

How do i get af description of a properties, in the description box of the properties in Source view?

When I switch to Design View, there is a description of the propertie. When I switch back to the Source View, the description box, has only the headline name of the properties, but not a description og the choise propertie. 

For example when I choise propertie BackColor in an asp:Table control. I only get the headline BackColor and not description of, what BackColor is used to. When I switch to Design View the description box add a description of BackColor.

Sometime when I switch back to Scource View, there are still description of BackColor. When I click to other asp control and then go back to the BackColor propertie. The description is missing again. Other time, the description is still there... But why??

Dynamic CSS link and intellisense

$
0
0

Hi all,

I have created a utility DLL, that allows the developers to create a link to a CSS file, by specifying the filename without needing to worry about the location of the file (or indeed the full filename, to accomodate for file versioning).

The developers reference these files like below:

<link rel="stylesheet" href="<%= ResourceBuilder.ResolveUrl("main.css") %>" />

The ResourceBuilder utility then resolves the file name to the full URL for the file. This all works (more or less) perfectly.

However, it throws up a complication: We've lost intellisense for the CSS classes within the CSS file.

I'm fairly sure that this is due to the filepath not actually being resolved at Design time, so VS doesn't actually have any awareness of the CSS file to load the intellisense from. But I'm not sure how to set this up to run at design time, so that we can have the intellisense.

Is this even possible? If so, how? Or is it something we just need to accept: That in return for the dynamic linking of the files, we have to sacrifice intellisense?

Thanks

Fergal

Pasting text with linebreaks to an object variable in debug mode

$
0
0

Hi.

This might seem as an irrelevant need, but I use it very often, and suddently it wont "work".

When debugging in VS 2010, I set a breakpoint on a line, then browse a certain objects members. This object has an XML document member. Now I paste my custom xml document inside the 'InnerXml' property on the document, pushes enter, and the xml on the object is now updated with my custom xml.

This suddently doesent work.

Now I can only paste the first line of the xml document. That means that VS now ignores everthing after the first linebreak. So instead of
<XmlDoc>
  <Bla>
  </Bla>
</XmlDoc>

I can only paste

<XmlDoc>

I´ve tried fidling with the encoding, but that doesent seem to be the issue.

Any clue?

Thanks alot!

Can I use Php to work with SQL Server 2008 Express?

$
0
0

Hi,

I have a friend that has been developing using Php and MySQL for 10 years; he uses a Mac.

Now he is considering to develop a new web project using Php and SQL Server 2008 Express.

My questions are:

1) Can he use Php to write the logic to access SQL server 2008 Express?

2) Can he do so on his Mac computer? If so, is there any specific dev env. or tool he has to use?

Can he install VWD2010 or VS2010 Express on his Mac?

3) ANy other advice on this situation?

Thanks!

CLaudia


Running Visual Basic code in a Web Form

$
0
0

A really simple question that needs only a simple answer, folks.

I am trying to run a simple VB code in a Web Form, but when Visual Basic build the webpage, I only get the code displayed as text.

This is the only code in the default.aspx file:

@Code  
    Dim greeting = "Welcome to our site!" 
    Dim weekDay = DateTime.Now.DayOfWeek 
    Dim greetingMessage = greeting & " Today is: " & weekDay.ToString() 
End Code  
<p>The greeting is: @greetingMessage</p>

 

 

 

How to connect remote analysis services using visual studio code

$
0
0

Hi,

 I am trying to connect with analysis services (SSAS) using VS2005 code behind with Microsoft.AnalysisServices.Xmla.XmlaClient.Connect(server name/IP) and its working if both web server and sql server are in same machine, but when I am trying to access remote server to connect with AS its giving me "A connection cannot be made. Ensure that the server is running.". I think its because SSAS only works with windows authentication.   My requirement is to connect with SSAS and after that create new SSAS DB using XMLA script also I have to process the ASDB.   Does anyone have any thoughts on this?

Thanks

Multiple ValidationSummary Control problem in vs 2012

$
0
0

Hi All,

              We have migrated our project source from vs2010 to vs2012. we are facing script problem "Object Expected" on the pages where we have used multipe validationSummary Control. The pages are working fine when we used one ValidationSummary Control, for multiple ValidationSummary Controls page throw the script error. If any one have solution, please help me.

 

Waiting for your kind respone.

WebDev.WebServer20.exe has stopped working

$
0
0

Using VS2010 Pro, I started up an web site and got the message "WebDev.WebServer20.exe has stopped working" - a very similar problem was reported at https://connect.microsoft.com/VisualStudio/feedback/details/481081/webserver40-exe-has-stopped-working?wa=wsignin1.0#tabs

I checked C:\WINDOWS\assembly and found that System 2.0.0.0 was missing (again!), reinstalled it but still got 

""

System.ArgumentOutOfRangeException was unhandled
  Message=Length cannot be less than zero.
Parameter name: length
  Source=mscorlib
  ParamName=length
  StackTrace:
       at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
       at System.Web.HttpRuntime.get_AspClientScriptVirtualPath()
       at System.Web.Hosting.SimpleConfigMapPathFactory.System.Web.Configuration.IConfigMapPathFactory.Create(String virtualPath, String physicalPath)
       at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)
       at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)
       at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
       at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
       at System.Web.Hosting.ApplicationManager.GetAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
       at System.Web.Hosting.ApplicationManager.CreateObjectInternal(String appId, Type type, IApplicationHost appHost, Boolean failIfExists, HostingEnvironmentParameters hostingParameters)
       at System.Web.Hosting.ApplicationManager.CreateObject(String appId, Type type, String virtualPath, String physicalPath, Boolean failIfExists, Boolean throwOnError)
       at System.Web.Hosting.ApplicationManager.CreateObject(String appId, Type type, String virtualPath, String physicalPath, Boolean failIfExists)
       at Microsoft.VisualStudio.WebHost.Server.GetHost()
       at Microsoft.VisualStudio.WebHost.Server.OnSocketAccept(Object acceptedSocket)
       at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
       at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)
  InnerException: 



Upgrading strategy?

$
0
0

I have around 10 large websites created with VWD Express 2008.

Questions:

1) Should I upgrade them to VWD Express 2010 or 2012?

2) Technically how would I do that?

3) If so, how long could it be expected to take?

TIA

Mark

VS2010: Element 'content' is not supported

$
0
0

Hello All,

Something broke in my VS2010 installation and I can't figure it out.

[the problem first became apparant in my existing site, so I tested the problem with a clean, new website]

If I create a brand new website, I get a warning underline (green sqiggly line) under the "<asp:Content ...>" tag. When I hover over the tag, I see the message "Validation (): Element 'content' not supported".

I've seen posts about resetting my settings (doesn't help) and about deleted the Reflected Schemas folder (I don't have one, for some reason). Also, if I try to create a new standard element (like a button), my intellisense does not come up (e.g.: I type "<asp:" and I don't see the usual list of controls come up).

The weird thing, is that if I reset the target framework to 3.5, everything is normal. But as soon as I set the framework back to 4.0 I start to see the erroneous behavior.

This is something that started happening just today, so I'm stumped  as to what has happened overnight. Any suggerstions are appreciated.

'publish to provider' option does not appear in VS when right clicking a database

$
0
0

hi - i had the pro version of vs2010 installed on previous computer ( running windows vista) - i've installed same version of vs2010 on new laptop (running windows 7)

and 'publish to provider' option does not appear

- i've tried installing vs2010 express, vs2012express, vs2012 professional to see if it helps but it's just not there

can anyone help ?

 


administrator access only

$
0
0
I have been developing a few projects. One MVC project will only run if I start VS 2010 SP 1 as an administrator. I can edit and save files but I cannot run it without being administrator. The error is to the effect of 'cannot find path' and the error will not show for several minutes. What other information do we need to diagnose and solve the problem?

Unrecognized tag prefix or device filter 'asp'

$
0
0

Hello,

1) Using VS 2010 SP1. I'm getting this warning on some pages: "Unrecognized tag prefix or device filter 'asp'. ", and intellisense no long works for <asp: /> items? 

2) Also getting this warning on things like <ContentTemplate>: "Validation (XHTML 1.0 Transitional): Element 'contenttemplate' is not supported."

Anyone know how to fix these issues?

Using WebPages in Visual Studio 2012

$
0
0

Hi,

I have just installed visual studio ultimate 2012, but it seems the intellisense is missing for webpages 2 although this is supposed to be included.  I also am unable to open cshtml projects in visual studio which indicates that webpages 2 is missing. I do have mvc4 installed... any ideas on how to fix this?

 

Debugging Problem in VS 2008

$
0
0

I am having some debugging issues with Visual Studio and I was hoping someone can point me in the right direction. When debugging server-side code that is run as a result of an AJAX call I can step through the code but all of a sudden (usually after 20-30 seconds) it seems like a response is sent back to the client and the JavaScript callback code is executed even though I am not yet done stepping through the code. The returned readyState value indicates that the request is complete (readyState == 4) and the status returns 200. The weirdest part is that once the JavaScript callback code has finished executing, the Visual Studio debugger resumes where it left off before executing the JavaScript callback code. However, when I send back the response to the client the JavaScript callback function does not run again.

This only started to happen recently. Until the last couple of days I was able to debug server-side code without any issues and with no timeout constraints. I checked the ping timout settings of the Application Pool to make sure the Ping Enabled setting is still set to False (it is). Plus I also checked the Connection time-out settings of the Web Site. 

Has anyone else experience this and how can I resolve that?

Copying a Div element from Design view does not copy all the contents

$
0
0

Hello everyone,

This is a piece of code i have written in HTML

<html>
<head>
</head>
<body>
<style>
.text_over_image
{
 /* image to display */
 border-style: none;
	border-color: inherit;
	border-width: medium;
	background-repeat:no-repeat;
	background: url('');
	width:42px;                    /* width of image */
 	height:43px;                   /* height of image */
 	color:000000;                  /* text color */
 	font-size:12px;                /* font size */
 	font-weight:bold;              /* font weight */
 	font-family:Arial;             /* font family */
 	text-decoration:;       		/* text decoration */
 	text-align:center;
 /* border around image if desired */
 	overflow:hidden;               /* so div won't change size */
 	padding-left:0px;              /* left position of text */
 	padding-top:20px;               /* top position of text */
 }
</style>
<div class="text_over_image" id="Tag"  
        style="top:3%; left:1%; position:absolute; background-image: url('WaterTank11.bmp'); width: 170px; height: 78px;">
N/A
<input type="hidden" name="Tag" value ="~Enter tag Here~"/>
</div>
</body>
</html>


When i select the div element from the design view and rigth click and copy it, its copying only the div tag but not the contents i it. I can see options to either copy a tag or contents, but how to copy both?

I am trying to copy the element from the design view and paste it on the same deisgn view. It always skips the hidden element contant when i paste it.

Viewing all 3509 articles
Browse latest View live




Latest Images