Showing posts with label Visual Studio. Show all posts
Showing posts with label Visual Studio. Show all posts

Wednesday, August 18, 2010

How to deploy a asp.net web application to a folder using publish profiles

Applies to:
  • Visual Studio 2010 Professional
  • Visual Studio 2010 Express
1. Right click on the web application



2. Select publish

3. Enter suitable name for profile name

4. Select method of deployment. In this senario I chose File System.

5. Select either delete all files or replace matching files, I chose delete all files.

6. Click on browse button

7. Select deployment folder and click on open

8. Click on save button and save the profile

9. Click on publish to publish the site.

10. Then in the next time when you publish the site you can see all your profiles listed in the dropdown so that you dont have to configure again.

Saturday, July 17, 2010

How to add an existing silverlight application to Asp.net Web Application - Asp.net, Silverlight

1. Select web project right click and select properties.

2. Select Silverlgiht Application tab

3. Select your Silverlight Application from the list (in this case only one available)

4. Select Add

5. From the next dialogue select check add a test page option (recommended not mandatory) and then click on Add

Tuesday, July 13, 2010

How to change the Assembly Name and Default Namespace of an asp.net Web-Application - Asp.net, Visual Studio

1.Rightclick on the Web-Applicaiton

2.Select Application Tab and Specify Default Namespace and Assembly Name at the very top of the page

Wednesday, April 28, 2010

Unable to start debugging on the web server. The server committed a protocol violation. Section=ResponseStatusLine

When try to debug in IIS, visual studio returns following above error:

It was interesting notice that (thanks for following post by Martin) Skype is already occupy the port 80. So IIS is unable to start.

Please un-tick

Skype -> Tools -> Options -> Advanced -> Connection:

Use port 80 and 443 as alternatives for incoming connections - Check box

Reference: The server committed a protocol violation

Tuesday, August 12, 2008

The following module was built either with optimizations enabled or without debug information: Microsoft ASP.NET

Symptom: Solution includes a web project and a class library(may be more). But can not hit any break points in class library as it says ‘no symbols has been loaded’

  • Try 'Configuration Manager' – make sure all project configurations are set to ‘debug mode’ and clean the solution
  • Try web config – make sure you have set [debug=’true’] in compilation section.
  • Remove the assembly reference and try adding it again.

Wednesday, July 02, 2008

Remote Debugging in Microsoft ASP.Net

Debug an Asp.net application or a web service, which runs in a remote host
(version of code does not need to be a debug built)
  1. Install Visual Studio Remote Debugging Monitor(MSVSMON) in the remote host (server) – recommend to install as a windows application and make sure MSVSMON is listening for connections
  2. Start Visual Studio and pull up source code for the relevant application - if you try to add break points to irrelevant code, break points will not be reached.
  3. From main menu select -> Debug >> Attach to Process
    For the Qualifier use domain\user.name@machinename (Ex CSG\Charith.Gunasekara@CSG-UATWebTest) and refresh process list
  4. Select required process from the (in this case asp.net work process(aspnet_wp.exe))
    Try inserting couple of breakpoints to the source code and browse the website.
  5. This is useful if you cant replicate errors in local machine while investigating exceptions
Reference: Set Up Remote Debugging (MSDN)

Azure Storage Account Types

Defferent Types of Blobs Block blobs store text and binary data. Block blobs are made up of blocks of data that can be managed individually...