I have created a silverlight app using WCF RIA Services and Entity Data Model.
In mainPage.xaml page I have dropped a button and on click of that button certain operation is performing.I have put a breakpoint on button click event, but its not hitting the breakpoint when I am clicking the button.
Kindly help regarding the same!!!
Thanks
Piyush
You need to enable "Silverlight" debugging in the web project.
Open the "Properties" of the web project and goto page "Web". In the section "Debuggers" check the Checkbox "Silverlight".
Another problem could be, that your current build configuration is set to "Release". Change it to "Debug".
This behavior can be caused by XAP file being opened (in some ZIP viewer) while building your solution. Visual Studio is quiet about not being able to replace the old XAP with new one and your breakpoints will be "out of sync".
Related
I have written a Windows Service in VisualStudio (c#) and added a Setup Wizard.
After the successful installation, I have to register the Service via installutil.
Is it possible to perform this step automatically and ask for a ServiceAccount through the Installation Steps?
You have to add a console project to your solution
and in the main method you will write the below code remember to replace "Your service file.exe" with the name of your service exe file
Process.Start(Environment.GetEnvironmentVariable("windir") + #"\Microsoft.NET\Framework\v4.0.30319\installutil", $"\"{Environment.CurrentDirectory}\\Your service file.exe\"");
after adding above project
When you right click on your added setup project, you will see view menu, in view menu there will be custom action link click it, in window that is appeared right click install and click add custom action, then double click Application Folder then click Add Output button on the right and then select the console project from drop-down menu then select primary out put then click ok and we are done.
KEEP IN MIND YOU NEED TO RUN THE INSTALATION SETUP AS ADMINISTRATOR
I am getting error as
The name does not exist in the current path as in issue link Name does not exist in the current context
I have tried all options in the comments but still unable to find solution,
One comment their says to regenerate designer file by right clicking and selecting "Convert to Web Application" but am already using web application and on right click of it am not getting that option.
Attaching reference Image.
Any suggestions?
I'm a little late to the party here, but I have a solution (and it's as easy as you hoped):
The "Convert To Web Application" menu option was moved to the Project menu item across the top of the Visual Studio 2015 application.
First, delete the desired designer file.
Next, click on the ASPX page of the one you want to regenerate the designer for. If you click on the CS page, the option will not show up in the menu.
Click on Project from the top menus and you should see "Convert To Web Application" in the menu. It should be all the way at the bottom of that popup menu.
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.
I am beginner to Visual Studio 2010 Express, I am trying to debug a C# web application using XML (as GUI buttons etc.) and using Silverlight.
Before running the application i have Step Into and Step Over (which can be pressed, and it's color is in dark where as Step Out color is light and that can't be pressed). You can see the screenshot on this link.
And on clicking the Start Debugging button I don't have any option for attach process and it don't debug actually when i see on my break points it not at all debug. Now all Step Into and Step Over and Step Out, all are in light color and none can be pressed.Please see the screenshot on this link also on clicking "Web" i get this see the link please prntscr.com/34eya9
I am using Firefox Could that be a problem for not debugging ? But it is displaying the GUI i have created using xml and c#
right click on the project, go to "properties", select "web" tab, scroll at the bottom, and you will find that under "debuggers" silverlight is not checked.
check that, and rebuild the solution.
this should then enable silverlight debugging.
I have ASP.NET MVC 4 application and I am debugging it with the built it development server( not IIS) my default browser is firefox so every time I click on "Debug" it open new firefox tab. I want to check my web on chrome also. what is the easiest way to make it? ( I don't want to change my default browser).
Choose a page in your project and right click and choose browse with and select your browser and set default
In MVC:
If you right click on any page other than default.aspx you will not get the "browse with" option.
So, when working on an ASP.NET MVC application, right click on default.aspx and chose "Browse With..." Then you'll get a dialog that will allow you to change your default browser.
NOTE:
for ASP.NET MVC3 projecs,You need to specifically add a .htm or .html page, and then right click that and choose Browse With and set to default
ALternative:
Default Browser Changer extension
Link
When you are in debug mode and it loads in Firefox, copy the url to the other browser.
Then go to Debug > Attach to Process, and select the process for the other browser and click [Attach].
A different approach using powershell scripts is shown in this blog post.
Ultimately, the easiest approach would be to use Visual Studio 2012 or 2013, which have this functionality built in to the debug button in the menu.