Web Forms :: Error After Upgrading Website To VS2010 ?

Jul 21, 2010

I struggling trying to insert the value I select from a "DropDownList1" country list into a TextBox inside a FormView1. I have tried the following but It wont insert the text:I also tested on a textbox1 outside the FormView1 and it works but just after clicking Cancel or Inser in the formView1.

[Code]....

View 7 Replies


Similar Messages:

Configuration :: Upgrading Website To Vs2010 And Framework 4.0 - Internal System Error 500 IIS 7.0?

Sep 3, 2010

I have recently developed a new vs2010 web application that I would like to add to my web site.

The existing website was developed using vs2008. The web site is hosted on a windows 2008 server running iis 7. My new web application sits below my main website i.e. mywebite mywebsite/mynewwebsite

I have set the application pools for the mynewwebsite to be asp.net v4.0, leaving the application pools for mywebsite as .net v2.0 If I try and open my new web application i.e. [URL] then I get 500. Internal server error. I assume that it is iis that is unhappy here. Do I have to rebuild the whole of my web site to be vs2010 using asp.net v4.0. If I do should I use ASP.Net v4.0 or ASP.net v4.0 Classic for my application pools, and should I have a separate and distinct application pool for each of my web applications ( I have 4 of these) Just to clarify my clients can log on the web site as

[Code]....

View 1 Replies

MSBuild Failing To Build Referenced Projects When Upgrading To VS2010?

Dec 8, 2010

I have recently upgraded my .Net 3.5 solution containing some C# code projects and a ASP.net web site project to VS2010 (from VS2008). It is building and running fine inside VS, but I get some problems when trying to build it on my server with MSBuild 4.0 via TeamCity. It seems like the projects that are referenced from the web site are not built. This was all working fine before I upgraded to VS2010, MSbuild 4.0 and Windows SDK 7.1.

Inside the msbuild script that I use to build from teamcity I have defined project references for the web site like this:

[code]...

When I try to run the build script I get an error message saying that it could not find the dll file when trying to copy it from the bin folder of the referenced project into the bin folder of the web site. This is happening because the referenced projects are in fact never built at all (No bin folder exists in the project dir).

I am not very experienced with MSbuild, so I may have overlooked some important stuff. Is it not so that MSbuild will automatically try to build the referenced projects if no project output is existing?

View 1 Replies

Web Forms :: Getting Error After Upgrading To Application ?

May 5, 2010

I have to get the value from a textbox (not bound) that has been put into a formview control. The Submit button also resides in the formview control. I have this code in the button's click method:

Dim TestValueTextBox
As TextBox =
New TextBox
[Code]....

to get that value entered and store it into the enteredValue variable (and yes, I know I have to do validation, etc). But when this runs, the value of the text in the textbox is "". I tried to put this up in the page load event, but then I get an error about declaring New.

View 8 Replies

.net - Since Upgrading A Website From 3.5 To 4.0 Dates Come Out In US Format?

Apr 23, 2010

Since upgrading a website from ASP.NET 3.5 to ASP.NET 4.0 my dates come out in US format, ie 3/24/2010. How can I change it back to UK format (24/3/2010) for all pages on my site? Is there a default setting somewhere?

View 1 Replies

Configuration :: Moving Website Files On SAN For Upgrading

Jun 4, 2010

We currently have two web servers that are load balancing a website. Each server at the moment has its own copy of the site on their own hard drives. We have recently installed a SAN thats accessible by both servers so what I would like to do is move the website files on to the SAN for easy management of upgrades to the site. What steps should I take to ensure this works correctly with IIS7 and the web.config files and possibily machine.config files. For additional information the web.config's on each server is currently encrypted, how would I be able to achieve this with a SAN?

View 2 Replies

Internet Explorer 8 - Upgrading Website For IE8/Firefox?

Jan 7, 2010

I need to upgrade a ASP.NET website for IE8. it works fine in IE6, but not in IE8. I don't want to run it in any backward compatibility mode. I would like to make any code changes that are required to make it fully compliant with IE8/Firefox. what is the best and/or easiest way to do that? is it just a case of going through each of the things that are broken and fixing them one by one or is there a more efficient way to fix these issues (some kind of utility??).

View 3 Replies

AJAX :: Control While Upgrading Website From 3.5 To 4.0 Frame Work

Oct 1, 2010

i am working on asp.net website.

on my web page i submit some data on click at button , this block is inside update panel.

this functionality working fine in 3.5 frame work.

Now our website is using 4.0 frame work.

controls inside update panel giving following error on submting data :

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500.

View 4 Replies

Visual Studio :: Debugging A Website Really Slow Since Upgrading To Windows 7?

Jul 16, 2010

I recently upgraded to Windows 7 Ultimate on my work computer. Before this debugging a website in Visual Web Developer 2008 was really fast - the page loaded up like a normal website would.

Since I've upgraded to Windows 7 the page loads like normal but gets stuck for about 30 seconds at the end of the load - this is slowing me down as I normally need to use the FireBug tool as soon as the page has loaded.

View 4 Replies

Jscript Error After Upgrading To 2010

Jul 30, 2010

I have a webform that has a formview (fvwContract) and inside itemtemplate there is a Tabcontainer with three tabs (invoice (spanish: factura), receipt (spanish: recibo) and beneficiary (spanish: beneficiario). I have another formview inside invoice tab (fvwFactura) with many textboxes that I need to manipulate in code behind. The thing is that I canīt reference any of them like the following:

protected void DropDownList1_SelectedIndexChanged2(object sender, EventArgs e)
{


AjaxControlToolkit.TabContainer container = (AjaxControlToolkit.TabContainer)fvwContract.FindControl("TabContainer1");
[Code]....

how to reference any control inside frwContract.TabContainer1.fvwFactura?

View 1 Replies

After Upgrading / Getting Contains Is Not A Member Of System.array Error

Aug 17, 2010

I have a website I developed in VS 2008 targeting .net 3.5. It has worked well. I recently upgraded to VS 2010 and needed to make a few changes to the site. However, I'm receiving compile errors (haven't made any changes to the code yet--was just launching the site to make sure it worked ok). I get "Contains" is not a member of system.array. Everything I've read states that the contains method was added in .net 3.5, which I know to be correct because it was working in VS 2008. I've been targeting .net 3.5 in VS 2010, but it still isn't working. I also used linq quite a bit with linqkit to do dynamic queries and all of my linq queries were saying my queries weren't queryable (I don't have the actual error in front of me). Anyway, to fix that one, I had to import system.linq (I previously had system.data.linq and it was working fine). To reiterate, I haven't targeted my site to .net 4 in VS 2010, I've left it targeting .net 3.5.

I tried converting my arrays to arraylists since arraylists were still pulling up with a .contains method, but then it broke my linqkit queries when I ran it on the site.

Here is my linqkit query:

Dim str() As String = archlist.ToArray(GetType(String))
Dim str3 As New ArrayList
str3 = ArrayList.Adapter(str)
predicate = predicate.And(Function(l As CompatTesting) str3.Contains(l.application.cpuarchitecture))

Before, I didn't have the arraylist conversion, I just had str.contains and it worked great to generate a sql "in" statement. Now after using the code above, the site launches, but when I actually run the code, I get Method 'Boolean Contains(System.Object)' has no supported translation to SQL. I also tried upgrading my linqkit dll to the latest version but it didn't help.

My questions are, since I'm targeting the same .net 3.5 framework in 2010, why is it not allowing me to use array.contains anymore? Maybe if I can address that issue, it will fix my linqkit issue where it says "contains" has no supported translation to sql.

View 1 Replies

Installation :: Error Upgrading SQL Server 2008

Jan 5, 2010

i was normally using VS2005 and SQL server 2005... i upgraded to SQL Server 2008... and then... i could not build my project anymore... because of this error: Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

View 2 Replies

Configuration :: Getting Error Connecting To Database After Upgrading To .net 4.0?

Aug 22, 2010

I upgraded a Website to use ASP.NET 4.0, from 3.5. This involved setting it up on a different server, with the same hosting company. I'm using a shared hosting plan on Windows Server 2008.

Since migrating, it gives an error message when I try to login to the site:

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

I'm using the same connection string as I did in the old version, which always worked. I also changed the permissions for the database to allow connections from the redeployed Website, via the host's control panel.

I have searched the web.config, and the source for the site, and I haven't been able to find a connection string that looks incorrect.

I've contacted the host about it, in case it is a configuration issue on their side.

View 2 Replies

Visual Studio :: EntityDesignerBuildProvider Error In System Web.config When Upgrading ?

Apr 13, 2010

My web site used ASP.NET 3.5 SP1, MVC 2, and EF. Last night I tried to upgrade to ASP.NET 4 (& EF4) under VS2010.

If my views are compiled (MvcBuildViews property is true), then the build fails with this error message:
Error 5 Could not load type 'System.Data.Entity.Design.AspNet.EntityDesignerBuildProvider'. C:WindowsMicrosoft.NETFrameworkv4.0.30319Configweb.config 129

It's actually complaining about my system web.config file.

If MvcBuildViews is false, then it will run (and compile the views normally just fine).

OS: Server 2008 R2, all updates applied at time of writing.

View 4 Replies

SQL Reporting :: Error Upgrading From Server 2000 - 2008 R2 Services

Oct 6, 2010

I am having some trouble upgrading an existing SQL Server 2000 Reporting Services installation from an old server to a new one commissioned for this purpose, which is running SQL Server 2008 Reporting Services. I have been following the instructions here: [URL] but after trying to connect with reporting services 2008, i get this error: The version of the report server database is either in a format that is not valid, or it cannot be read. The found version is 'C.0.6.54'. The expected version is '147'. (rsInvalidReportServerDatabase) before starting the process, I ran upgrade advisor and got back the following results:

Description Setup can upgrade a SQL Server 2000 Reporting Services instance that uses a SQL Server 2000 Database Engine in the same instance. However, upgrade is blocked if the report server database is in a different instance, on a remote instance, or runs on a remote SQL Server 2005 instance in SQL Server 2000 compatibility mode.

*****
*note, our reporting services IS in the same instance as the SQL Server 2000 database engine. However, upgrade advisor still reported that this instance can not be automatically upgraded.
*****

Corrective Action Choose either approach to continue with the upgrade: Upgrade the Database Engine instance on the remote computer before upgrading Reporting Services. The server cannot be in SQL Server 2000 compatibility mode after upgrade. Move the reportserver and reportservertempdb to a SQL Server 2005 or SQL Server 2008 Database Engine instance, and then use the Reporting Services Configuration tool to connect the report server to the database.

so, I went with option 2, move the database then connect. I have: -backed up the ReportServer and ReportServerTempDB databases from the old server, transferred them to the new and restored them to the 2008 Server as ReportServerOld. -I then renamed the old database to ReportServer and ReportServerTempDB, as this is required to use the database as a source apparently. I had to of course change the existing database names to ReportServerNew to perform the rename. I backed up the symetric key for this installation using the rskeymgmt utility...............

View 2 Replies

Crystal Reports :: Error VS2010 / An Error Occurred During Local Report Processing

Aug 16, 2010

i write a site and get this error, i using VS2010.

An error occurred during local report processing.

The definition of the report 'ModulesReport1.rdlc' is invalid.

An unexpected error occurred in Report Processing.

Could not load file or assembly 'Microsoft.ReportViewer.ProcessingObjectModel, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

i try run on my machine its all work fine, but when i complier and run it on Window server 2008 get this error.

I read [URL] I install the ReportViewer.exe but still cannot find the Microsoft.ReportViewer.ProcessingObjectModel.dll, however I got find it Microsoft.ReportViewer.ProcessingObjectModel in C:Windowsassembly and is not a dll file.

View 1 Replies

Forms Data Controls :: Error -"Input String Was Not In A Correct Format" After Upgrading To 4.0 (VS 2010)

Oct 22, 2010

I have a gridview that was displaying and handling postbacks correctly, that is, until I upgraded to .net 4.0 (vs 2010) from .net 3.5. Now I am getting the classic (and in this context meaningless) "Input string was not in a correct format" error upon postback. The postback is initiated by a command button and the row command event handles everything nicely.

The trace shows internal grid postback handling and nothing else:

[FormatException: Input string was not in a correct format.]
System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +9594283
System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +119
System.Convert.ToInt32(String value, IFormatProvider provider) +48
System.Web.UI.WebControls.GridView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup) +1047....

From experience, I know this happens on late binding with wrong type casting on the ASPX side of things. However, nothing has changed. The code is the same, the only thing that changed is the upgrade to 4.0.

I have tried everything I (and a coleague) can think of to figure out what the issue is without luck. No error is raised on the code behind in any method. The only error raised is the Page_Error event and the error object contains the same crap you see in the yellow screen dump (above).

UPDATE: I narrowed the issue down to the RaisePostBackEvent method. I had to reflect the System.Web (for educational purposes of course :) assembly to figure out the code executing after my RowCommand logic(which is fine) breaks. This happens in the HandleEvent method. It checks for known command names (e.g. Select) and if it can't find a match, it defaults to the following:

[Code]....

Is this a bug or am I doing something wrong? The row object is NULL which is why it defaults to the cast. The cast assumes the argument to be an integer however and in my case I am passing a string as an argument?

View 9 Replies

VS2010 : Merge WebSite Assemblies As In Web Deployment Project

Jan 26, 2010

is it possible to make a single assembly for whole WebSite in Visual Studio 2010?

With Web Deployment Project i can do this in VS2008, but it is not compatible with new version.

View 1 Replies

VS2010 Assembly Load Error

Jun 8, 2010

I am getting the following error when I try to build an ASP.NET 4 project in Visual Studio 2010: "Could not load file or assembly 'file:///C:Devproject runkinElmah.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)". I have verified that the dll does, in fact, exist, and is getting copied to the bin folder correctly. I have also tried removing and then re-adding the reference to the project.

The build only fails when I switch the Solution Configuration to "Release". It does not fail when the Solution Configuration is set to "Debug". The only difference between the two configurations (that I know of) is shown in the following Web.config transform, Web.Release.config:

<?xml version="1.0"?>
<configuration xmlns:xdt="[URL]">
<connectionStrings>
<add name="SqlServer" connectionString="" providerName="System.Data.SqlClient" xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
</connectionStrings>
<system.web>
<compilation xdt:Transform="RemoveAttributes(debug)" />
<customErrors mode="On" xdt:Transform="Replace">
<error statusCode="404" redirect="lost.htm" />
<error statusCode="500" redirect="uhoh.htm" />
</customErrors>
</system.web>
</configuration>

I have tried using Fusion Log Viewer to track down the assembly binding issue, but it looks like it is finding and loading the assembly correctly. Here is the log:

*** Assembly Binder Log Entry (6/8/2010 @ 10:01:54 AM) ***

The operation was successful.

Bind result: hr = 0x0. The operation completed successfully.

Assembly manager loaded from: C:WindowsMicrosoft.NETFrameworkv4.0.30319clr.dll
Running under executable c:Program Files (x86)Microsoft SDKsWindowsv7.0AinNETFX 4.0 Toolssgen.exe
A detailed error log follows.
Pre-bind state information ===
LOG: User = User
LOG: Where-ref bind. Location = C:Devproject runkinElmah.dll
LOG: Appbase = file:///c:/Program Files (x86)/Microsoft SDKs/Windows/v7.0A/bin/NETFX 4.0 Tools/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = sgen.exe
Calling assembly : (Unknown).

LOG: This bind starts in LoadFrom load context.

WRN: Native image will not be probed in LoadFrom context. Native image will only be probed in default load context, like with Assembly.Load().

LOG: No application configuration file found.
LOG: Using host configuration file:
LOG: Using machine configuration file from C:WindowsMicrosoft.NETFrameworkv4.0.30319configmachine.config.
LOG: Attempting download of new URL file:///C:/Dev/project/trunk/bin/Elmah.dll.
LOG: Assembly download was successful. Attempting setup of file: C:Devproject runkinElmah.dll
LOG: Entering run-from-source setup phase.
LOG: Assembly Name is: Elmah, Version=1.1.11517.0, Culture=neutral, PublicKeyToken=null
LOG: Re-apply policy for where-ref bind.
LOG: Where-ref bind Codebase does not match what is found in default context. Keep the result in LoadFrom context.
LOG: Binding succeeds. Returns assembly from C:Devproject runkinElmah.dll.
LOG: Assembly is loaded in LoadFrom load context.

View 2 Replies

C# - Error Creating Control Vs2010 MasterPage?

Jul 1, 2010

Someone can explain this error?Error Creating Control - headObject reference not set to an instance of an object.

<%@ Page Title="" Language="C#" MasterPageFile="~/Controls/Master1.Master"
AutoEventWireup="true" CodeBehind="GrupoUsuario.aspx.cs" Inherits="GrupoUsuario" %>
<asp:Content ID="Content1" runat="server" contentplaceholderid="head">
</asp:Content>

I Think this is a bug of visual studio 2010 in design view. I'not using any event to manipulate session object in the method OnInt(). The "PlaceHolderTopo" is an placeholder in the web user control Topo.ascx. It's work normaly. I Don't have any code inside the content place holder in the page tha inherits from the master page and get this error.Below is the code of the masterpage:

<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="PrincipalSeguranca.Master.cs" Inherits="PrincipalSeguranca" %>
<%@ Register Src="Topo.ascx" TagName="Topo" TagPrefix="uc1" %>

[code]...

View 1 Replies

VS2010 Error: Unable To Start Debugging On The Web Server

May 20, 2010

I get error message "Unable to start debugging on the web server" in Visual Studio 2010. I clicked the button and followed the related suggestions without success.

This happens with a newly created local ASP.Net project when modified to use IIS instead of Cassini (which works for debugging). It prompts to set debug="true" in the web.config and then immediately pops up the error. Nothing shows up in the Event Viewer.

I am able to attach to w3wp to debug. It works but is not as convenient as F5.

I also have a similar problem with VS2008 on the same PC. Debugging used to work for both.

I have re-registered Framework 4 (aspnet_regiis -i). I ran the VS2010 repair (this is the RTM version). I am running on a Windows Server 2008 R2 x64 box.

I do have Resharper V5 installed.

View 6 Replies

MVC :: Creating Data Service In Project With Vs2010 - Getting Error

Mar 23, 2010

I get the following error which I don't get when I build a simple WCF Data Service in an non MVC project. I added the following to my global.asax:

[Code]....

The type 'MvcWebApp.WcfDataServiceTwitter', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found.

View 2 Replies

Configuration :: Error In VS2010 When Compiling App Built In Vs2008?

Aug 25, 2010

We have had a web application built in vs2008. We have recently set up vs2010, and when we build the solution we are getting this error.

The CodeDom provider type "Microsoft.VJSharp.VJSharpCodeProvider, VJSharpCodeProvider, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" could not be located.

We have tried placing the following in web.config

<compiler language="vj#;vjs;vjsharp" extension=".jsl;.java" type="Microsoft.VJSharp.VJSharpCodeProvider, VJSharpCodeProvider, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<providerOption name="CompilerVersion" value="v3.5"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>

View 1 Replies

Why Does OpenEdge ODBC Connection Fail With Error 126 In IIS But On In VS2010

Dec 16, 2010

I have an ASP.net web service application that connects to a Progress OpenEdge 10.1B database via ODBC. My development machine is XP Pro and runs everything fine. I am now moving the application into a test environment. The test machine is also XP Pro. It matches the dev machine except for that the Progress Server is not running locally. I am able to run the project out of VS2010 and the web service makes the ODBC connection and returns the data without error. When I deploy the application to IIS (which is running locally) the ODBC connection fails with this error: *System.Data.Odbc.OdbcException: ERROR [IM003] Specified driver could not be loaded due to system error 126 (OpenEdge 10.1B driver).*

View 1 Replies

Mvc 3 And Vs2010 With Error CS1061: 'object' Does Not Contain A Definition For Model?

Mar 5, 2011

My code all worked under mvc 2 with vs2008. It didn't work when I converted it to mvc 3 and vs2010. Here is one of errors: Compiler Error Message: CS1061: 'object' does not contain a definition for 'LabelText' and no extension method 'LabelText' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?)

Source Error: [Code]....

<%
@
Page
Language="C#" [code]....

View 4 Replies







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