VS 2010 Published Files Won't Update

Jul 19, 2011

I updated my project and was finally able to get a specific section working correctly. I tested it in Debug mode and everything looks good.Now, I want to transfer those updated files to my server. I Published the files to my DropBox and uploaded them to my server, but they worked like the old files.

View 10 Replies


Similar Messages:

Configuration :: Published But .aspx.vb Files Not Deployed?

Jun 10, 2010

I published my brand new site the first time to the brand new server and when testing it I noticed that none of the .aspx.vb code behinds was deployed and I got an error that those were missing.

View 7 Replies

AJAX :: Update Panel Fast In Debugger But Slow When Published?

Jan 29, 2010

I know it's not the best practice to do, but unfortunately I created a page with multiple large dropdown lists and have them inside an ajax updatepanel. I found some work arounds using siderite's ajax updatepanel adapter:
http://fastlistadapter.codeplex.com/.

The performance is very good while I am debugging on my machine, but when I publish the site and post it to a win 2003 server the performance drops off almost as bad as when the fix isn't there.


I understand that using a 3rd party fix really isn't supported by most, but is there any obvious reason why debug performance would be much better than published site performance on the same exact code?

View 2 Replies

Visual Studio :: 2010 - Finding Assemblies In Program Files Vs Program Files X86?

Jul 3, 2010

I have a VS2010 project that I want to move back and forth between an x86 and an x64 machine. On the x86 machine, several assemblies are located in Program Files, and the path of the assemblies are shown as c:Program Files...... When I move this project to the x64 machine, the same assemblies are located in C:Program Files (x86).... Is there a way that I can confugure VS2010 so I don't have to manually change the path when I move the project from one machine to another?

View 1 Replies

VS 2010 - List Files In Zip

Jun 30, 2011

In the app that I'm currently working on, users can upload zip files. I want to restrict the users from uploading exe files (or any potentially virus infected type of files).

I want to list the files inside the zip they are uploading, and check for file extension, and deny the upload if a potentially unsafe file is found. I've been searching on the net, I found examples that use java (like this one), but java is not supported in Visual Studio for a while it seems...

I am using Framework 4.0

View 14 Replies

VS 2010 Deleting Temp Internet Files?

Mar 3, 2011

I had a page to update user picture and redirect user to login page, the problem is when a user re-login, the old picture is still available until user refresh the page.

notes: I have already use <%@ output> but not working with master page and also have used Response.Cache.SetCacheability(HttpCacheability.NoCache) and also not working

here is my code:

Protected Sub btnUpdate_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnUpdate.Click
'Updating User Pic
fuUserPic.PostedFile.SaveAs(Server.MapPath("~ImagesUserPic" & UserID & ".jpg"))
Response.Cache.SetCacheability(HttpCacheability.NoCache)
FormsAuthentication.SignOut()
FormsAuthentication.RedirectToLoginPage("msg=Please login again")
End Sub

what can I do to delete temp internet files to display picture after updating?

View 9 Replies

Visual Studio :: 2010 Locking Files?

Aug 13, 2010

VS2010 keeps locking my .aspx files so I can't edit them. I have to stop the project, close and reopen the file. Is there a setting causing this (it doesn't happen on my home machine)?

View 1 Replies

VS 2010 - Secure Folder For Non ASPX Files

Jul 2, 2012

My client is moving from a linux to a windows shared server that uses the following:

Plesk Panel 9.5
PHP Version 5.2.13
ASP.NET framwork version: 2.0.50727.0

They currently are using .htaccess in several folders that make the user have separate credentials that relate to each folder.

Is there a way to do this on the new location using web.config? I tried using .htaccess but doesn't seem to work. I am able to get the .aspx files in a folder so if accessed and not logged in it goes to a login page.

If I have a bunch of .html pages in a folder, can I configure web.config so if someone goes to one of the .html pages direct it asks for credentials?

View 6 Replies

VS 2010 - Two Different ASPX Files But Same Code-behind File?

May 21, 2012

I have code that needs to run in two deployments. Let's call them deployment H and deployment W.

The code is already running in deployment H, and there's an aspx page and an aspx.cs code-behind file. The code is compiled for framework 2.0 which is the lowest common denominator of the two deployments. Deployment H has its own logos and styling which are coded in its aspx file.

Deployment W now wants to use this same page, but it wants its own logos and styling. There are also additional fields on the page that deployment H doesn't need.

I think it's easier to maintain one code base which is why I want the same code-behind file, but I am having trouble figuring out how to set this up in Visual Studio. Orginally, I was going to have two projects, one for W and one for H, but I'd have to make the same changes to both files when some of the common areas changes.

View 11 Replies

VS 2010 URL Rewrite Regex - Root Files Only

May 17, 2012

I am using url rewriting rules in my web.config and have it working but today I added a rule in a folder but my primary rule keeps overriding.

Web.config

Code:
<rewriter>
<rewrite url="~/folder/*_a_(.+).aspx" to="~/folder/index.aspx?id=$1" />
<rewrite url="~/*_a_(.+).aspx" to="~/listing.aspx?id=$1"/>
</rewriter>

Usage:

www.domain.com/topic_a_1.aspx -> This would load listing.aspx?id=1 which is great.

www.domain.com/folder/newtopc_a_2.aspx -> This is also loading listing.aspx?id=2 but should be loading index.aspx?id=2

I believe I need to change the second rule from *_a_... to something like [^/]_a_.... but that doesn't work.

What I can do so the second rule doesn't override my sub folder rules?

View 2 Replies

VS 2010 - Publish Web Doesn't Copy SVG Files

Mar 7, 2012

How can I tell Visual Studio to copy .svg files when I publish from the "Publish Web" dialog (right-click on Project and select "Publish...")? It's copying all other image files to the target directory, but is not copying .svg files.

View 3 Replies

VS 2010 - How To Parse Excel Files Data In WebForms Using C#

Nov 14, 2010

how to parse excel files data in ASP.NET WebForms using C# or ASP.NET MVC using C#?

View 8 Replies

Visual Studio :: 2010 Missing Web.config Files?

Aug 9, 2010

I just moved into a new computer running Windows 7 pro, and I installed a new copy of VS2010. Now all of my old sites that I made in VS2008 do not have their web.config files. Does anyone know what happens to them in VS2010, or Windows 7?

View 3 Replies

Visual Web Designer 2010 Express Not Recognizing Access MDB Files?

Aug 31, 2010

Withing Microsoft's Visual Web Developer 2010 Express, I am trying to link an MS Access 2000 database to a web form using the Toolbox tool provided with the program. In the second dialog box where you specify the database to use, it shows that the Data_App folder is empty, yet in the windows explorer window the file is clearly there.

Is this a limitation of the evaluation version, too old of Access database file, or something stupid that I am doing? I gotta admit, I am a newby to .NET and ASP.NET, but I can create other aspx web forms with no problems.

I can connect to the MS Web Server, for instance.

I'd use MySQL, but it doesn't want to work on my computer.

That is the other post I made to Bytes.

View 2 Replies

Visual Studio :: Enable .asp Files In 2010 Website Project?

Nov 11, 2010

how I can enable .asp files in a simple VS2010 Website project? For example: Start VS2010 Click "File/New Web Site..." Accept defaults Add an html file called "Test.asp" Attempt to open Test.asp (debug project with that file active) and you get the following error: "This type of page is not served. ... is not server because it has been explicitly forbidden. The extension '.asp' may be incorrect " SO, HOW DO I EXPLICITLY ALLOW IT? VS2010 is using the ASP.NET Development Server....

View 2 Replies

Visual Studio 2010 - Apply Intellisense In .skin Files In 4

Nov 25, 2010

Is there a good way to apply intellisense in .skin files in ASP.NET 4? like a microsoft visual studio tool for example? I installed an intellisense schema for .skin files to my visual studio 2008 long time ago but it had some bugs so i had to remove it. any improvements in visual studio 2010?

View 1 Replies

C# - App_Code Files Are Ignored (Microsoft Visual Web Developer 2010 Error)?

Feb 19, 2011

I have a 'Connection.cs' file in the App_Code folder of Microsoft Visual Web Developer 2010, but it alerts me of an error:

The type or namespace name
'Connection' could not be found (are
you missing a using directive or an
assembly reference?)
('Connection' is the name of a class in the Connection.cs file)

[Code]....

View 1 Replies

Crystal Reports :: VS 2010 On Development Machine Can't Find Folder Containing The Required Files?

Jul 7, 2010

When I attempt to test my new report on my workstation in Visual Studio 2010 running the beta Crystal Reports for 2010 it can not find the folder containing the required files.

Is there a way to force it to find them so I can debug the code calling the report?

View 3 Replies

.net - Editing Aspx/ascx Files Randomly Disabled In Visual Studio 2010?

Aug 10, 2010

I'll be debugging a site in Visual Studio 2010 and editing an *.aspx or *.ascx file, and without warning, it will lock up so that I can't edit it. There's no message or anything, I just can't type or make any changes. The only way to start editing again is to stop debugging, close the editing window, and then find whatever file I was working on and reopen it. It's a huge pain in the you-know-what. My colleagues are experiencing the same thing, so it's apparently not something with my particular setup. What's the explanation, and how can we make it stop?

Note 1: I've reported this to Microsoft here. If you've experienced this as well, please go there and vote up the bug report.

Note 2: This is not VSS-related, at least in my case. We use VisualSVN, which doesn't use file-system-level locking to mark files as checked out.

View 9 Replies

VS 2010 UpdatePanel - Update Twice In Same Routine

Feb 4, 2011

I'm trying to do a number of large queries in the same routine, and have a label in an updatepanel update after each one. I must be doing something wrong, however, because whenever I fire up the routine, my label won't update until the last query is done. Isn't it possible to do UpdatePanel.Update multiple times in the same routine/event? This is the code I'm using:

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
lblStatus.Text = "Busy with task 1"
UpdatePanel1.Update()
LongTask()
lblStatus.Text = "Busy doing task 2!"
UpdatePanel1.Update()
LongTask()
lblStatus.Text = "Done!"
UpdatePanel1.Update()
End Sub

Private Sub LongTask()
conn = New SqlConnection(connstring)
conn.Open()
cmd = New SqlCommand("Select * from very_large_table", conn)
cmd.CommandType = CommandType.Text
reader = cmd.ExecuteReader()
End Sub

When the form loads, the lblStatus is emtpy. When I click the button, I see the page loading until it displays 'Done!'. I don't see the other texts. This is the page source:

<%@ Page Language="VB"
MasterPageFile="~/MyApp.master"
AutoEventWireup="false"
CodeFile="test_page.aspx.vb"
EnableEventValidation="false"
Inherits="test_page"
title="MyApp"
Theme="DefaultTheme"
%>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:Label ID="lblStatus" runat="server"></asp:Label>
<asp:Button ID="Button1" runat="server" Text="Update!" onclick="Button1_Click" />
</ContentTemplate>
</asp:UpdatePanel>
</asp:Content>

The page has a masterpage that contains the neccesary Scriptmanager.

View 1 Replies

VS 2010 - Doing Query And Update For SQL Database

Jul 2, 2011

Here's something I've been stuck on for some time. I used code from the ADO.NET Tutorial and tried to translate it so it applies to SQL and the database on my website. I set the Configuration Manager for Debug and so I can see a detailed error message.

Here's my code:

Option Strict On
Imports System.Web.AspNetHostingPermission
Imports System.Data
Imports System.Data.SqlClient
Imports System.Data.SqlTypes
Imports System.Data.SqlDbType
Imports System.Data.Sql

[Code] .....

I have most of the lines in the DoStuff Sub commented out right now but I get the same error message either way so it's responding to the first line below Try.

Here's the error message I see. Line 52 is :
da.Fill(ds)

The table in Database1 that I'm trying to access is called Ray Rover Activation.

View 6 Replies

VS 2010 Implement Section Update Methods?

Mar 8, 2011

how page update methods are normally done in a web page with multiple sections? I have a few web pages containing several sections. Each section contains different controls/values and can be saved/updated at any point. Can this be done without creating multiple save functions for each "save" button click in each section? Can this be done with one save class that accepts any number of different values?

Also, i have some page values that should insert if it does not exist and update if the value already exist. Currently, i have to check the database to see if the value exist before inserting and updating. Is there a better way of doing this in VS 2010?

View 3 Replies

VS 2010 LinqDataSource Insert / Update / Delete

Dec 14, 2010

I am using a LinqDataSource fed by a stored procedure in my data context for the data source of my grid view in an update panel. The issue I have is that after I get the grid row into edit mode, I can't get it to commit an update. I figure my issue here stems from TableName and EntityTypeName, but am unsure what to do with them. This MSDN page has the following line in the 'Working with Stored Procedures' section: 'If you want to enable automatic update, insert, and delete operations for the data, the type that is returned from the method must match the type that is specified in the TableName property.'

The return type of my stored procedure is 'loadHaveToOfferByUserIDResult' but when I use that for the TableName, I get the following error: Could not find a property or field called 'loadHaveToOfferByUserIDResult' on the data context type 'LINQClassDataContext' of LinqDataSource 'haveToOfferLinqDataSource'.

View 10 Replies

VS 2010 - Command Button With Update Panel

Mar 16, 2012

I have a command button in an update panel but when I click the button, it can't fire. How I can fire button in update panel?

View 1 Replies

VS 2010 - Unable To Update Label Text

Jul 25, 2014

I'm having problems getting my label to update, it is a asp:label known as LabelFMI - what I am doing is when the user changes the value of certain things update it by either taking away or adding the difference. I've managed to get this to work by having to refresh the page and moving it to out of the function I made for it and into default.aspx's Page_load sub.. However I was hoping to not have to refresh to have it update? is there anyway to achieve this?

Code:
Private Sub UpdateLabels(ByVal start As Date, ByVal [end] As Date, ByVal value As Double)
'Import the data for the table
Dim da As New SqlDataAdapter("SELECT * FROM [event] WHERE NOT (([eventend] <= @start) OR ([eventstart] >= @end))", ConfigurationManager.ConnectionStrings("daypilot").ConnectionString)
da.SelectCommand.Parameters.AddWithValue("start", start)

[code]...

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved