How to View asp.net-mvc Build in Visual Studio 2015 - c#

I apologize for the remedial question. I accidentally closed the tab in Visual Studio that allows me to view the actual application (the one that loads by default when you create a new project). How do I bring this back up?
I've tried closing and re-opening the project, going through solution explorer in its entirety, and scanning every information source I can get my hands on. Thank you for your advice (and patience)!

If you want get the interface, that if you run your application it in a browser. On the panel open your browsers and choice Browse With:
in window choice Internal Web Browser and click Browse
If you want view your build anytime in internal browser - Set as Default.
Sorry for my English.

Related

Cannot load user control design view in Visual Studio 2019

This is very strange. I have a custom UserControl called UIControl. That user control has another custom control (derived from Label control).
This worked OK for long time. Both at design time and at run time. However, now, I needed to edit that custom UIControl but the Visual Studio 2019 shows this error message:
This error means that the RealTime.DigitalClock is not found. As you see in the project, that control is not part of an external assembly, but the same assembly where UIControl is.
I have compiled and recompiled thousand of times and compilations finish perfectly. Even the application runs.
Furthermore, when I build the project, those user controls appear in tool box, but when I try to place it in any form, an error telling that the component could not be added and it will be removed from the tool box is shown.
I don't really know what is happening here. I have even closed and re-open VS 2019 but no avail.
Regards
Jaime
According to To prevent possible data loss in windows form c#, I suggest that you can do as the following steps.
First, Please find all the RealTime.DigitalClock related code in UIControl.designer and UIControl.cs.
Second, you can delete the above code.
Third, you need to rewrite the code you just deleted.
Finally, rebuild it and check if it works for you.

New Blank Page(XAML) projects = Controls are not showing on the MainPage(only their borders are)

I'm new to Visual Studio and couldn't find my answer anywhere else for hours over the internet..
I'm Using "Visual Studio Express 2012 for Windows" and everytime I create a new project with a blank page (XAML), the designer only shows me the frame of the page with its missing background.
And any control I drag to it, is invisible (I can only see the square border of the control I dragged but no texture..)
This is only happening during design time. On RunTime it actually shows up..
This is happening to me since I had the first fresh install. Just to be clear, I am NOT opening an existing previous project.. I have non. This is the first time I make a project in C# and I'm surprised I didn't find anything useful so far over internet search..
Also tried installing, uninstalling, repairing and changing to different versions...
The problem didn't show on Visual Studio 2012 Express for Desktop, but this product doesn't seem to be fit to my needs.. (I'm trying to also learn how to develop for Windows Store and other products)
The IDE doesn't show any errors or warnings..
Help would be much appreciated!
P.S - I'm running Windows 8.1
You can try Blend to open the project and render the xaml,if the problem appear too, maybe you should check out your graphics card or update driver.
try with this!
Check the following:
Tools -> Options
Expand Text Editor -> XAML -> Miscellaneous
Make sure that "Always open documents in full XAML view" is not checked
Or perhaps the default program for opening .xaml files has changed:
Right-click your .xaml file in Solution Explorer
Click Open With...
Select XAML UI Designer
Click Set as Default button
Click OK
If it's related to the video driver, maybe disabling hardware acceleration will help?
Or you could try Visual Studio Community Edition (http://www.visualstudio.com/, click on the Download button under "Free developer tools"
Did one of these suggestions work?

C# WP8 Service Reference changed

I'm working on Visual Studio Express 2012 for Windows Phone and I added a service reference for my project. It has been working good since I added it.
Yesterday I started building the layout for my app and then I noticed that my service reference is not the same like it was before. It still works but it's icon is different now and it doesn't give me the same right click options like before.
Image 1: http://snag.gy/kvGJV.jpg
Image 2: http://snag.gy/RjTys.jpg
Notice how the icon changed, it's now a folder icon, it used to be a little globe or something like that. And in the right click options it doesn't say "Update service reference" or "Configure service reference"...
What happened? And how can I update my service reference now? (The IP changes a lot)
Edit: I discovered that if I start a new project and then use Blend my service reference changes to a folder. My questions stills the same, why?
I found the cause of this problem. It seems there is a bug when using Blend and Visual Studio at the same time. When you make changes in your project with Blend, Visual Studio asks if you want to reload only the files with modifications or if you want to reload all files. Somehow, if you choose to reload all files it makes modifications to your service reference resulting in errors and other changes.

Icon in WPF Browser application

I have a WPF Browser Application consisting mostly of wpf pages which I'm developing in Visual Studio 2010.
I'm publishing the app to the intranet, with ClickOnce at full trust.
Is there any way to have an icon for the pages in this type of application? (which would show instead of the internet explorer icon in each of the tabs of Internet Explorer), I'm executing it through PresentationHost.exe.
What I'm trying to do, is to have a desktop shortcut with a custom icon for each part of the application (two different projects in the same solution).
If there isn't a way to do it with XAML, is there any way to run any commands or a batch file at the moment of accepting the ClickOnce prompt?, to place the shortcuts in the desktop with their respective icons at the moment of installing the application.
Thanks in advance, Jesús.
P.S: I know my redaction skills suck, so if any more details are needed, let me know.
If you open your project file and change the HostInBrowser setting to false, and this will enable the ability to provide an Icon and Manifest in the project's properties.
<HostInBrowser>False</HostInBrowser>
I am not sure how that will affect your app though. Maybe this setting is supposed to be "True" to work how you need it to work.
Did you set the icon for each project, in VS right click on the project - properties - Icon and manifest - click the icon button ...

Error Creating Control - Cannot find web project item

I'm getting this error:
Error Creating Control - Label1
Cannot find web project item 'http://localhost:61952/WebSite/Default.aspx'.
(It's a Visual Studio 2010 Website.)
Can't view Labels, User Controls, nothing in design view... Can't drag and drop controls from the tool box either...
I have no idea what caused this problem...
Any hints?
Thanks.
Just to get me going with the design mode...
Well, I have a visual studio solution, with projects and class libraries... and my website which I described as having the problem. However, this problem seems to only occur when I'm trying to view the website's pages (in design view), after opening the solution. I tried opening just the website (File -> Open Web Site), and in that case, I am able to use the design view with no problems...
(Adding a new website to my solution also works, only my existent website doesn't work.)
So, solution for the meantime: having two VS opened, one with MySolution/WebSite/, the other with MySolution/CompleteSolution.sln. I do the design stuff in the first and the programming in the second...
Just now I found the solution, just do Unload Project and load it again to existing solution, right now at the time you open the website, it will be fixed :)

Categories