ASP.NET Wizard and framework 3.5 - asp.net

After upgrading our web application to .NET 3.5 we noticed a strange issue with the Wizard control. Usually after IIS is restarted and a page with the control is loaded, the left hand navigation pane will not be displayed. Hitting this page again will solve this issue. It is also visible in dev environment, although it is intermittent and I don't have a reproducible sequence of steps. Has anybody else experienced a similar issue?

No changes were made to the wizard control in framework 3.5 so it's nothing to do with updating the framework

Related

BrowserLink MVC 6 - Not Working - No Extra Code Injected

How do I get BrowserLink to work in MVC6 - using RC1 Release 1. Using Visual Studio 2015 Update 1.
Browsers never appear in Browser Link dashboard. No extra js is injected or extra web calls made by site so it just seems to not be adding browser link code.
I have app.UseBrowserLink(). I am running in Development mode, debug. I have tried CoreClr and Full Framework. This happens even with a brand new Asp.net 5 web template with no changes made to it.
What else do I need to do? Does Browserlink actually work for anyone with ASP.NET 5 RC1?
I would also add I ran older projects based on MVC5 and Browserlink works on them without issue.
Seems to be an issue with the installation of "Microsoft ASP.NET 5 RC1 Update 1". Go into Control Panel > Programs and Features > Click "Microsoft ASP.NET 5 RC1 Update 1" and press Change > Repair.
Fixed it for me on three of my development machines.

Dragging image is not contained by panel control

I'm having a little trouble with my panning functionality in my Dev environment. The way I implemented panning functionality adding JQuery to drag an image behind a panel control. The panning functionality is available after zooming into the image. So I zoom into the image with zoomin/zoomout functionality, then I pan or drag the image behind the panel control. This works great in my local environment and even when I deploy the website to my local IIS. However, when I deploy to the Dev server, the image does not stay behind the panel control or is not contained within it. Are there any suggestions on what might be causing this? Below is some information on approaches I've tried.
I did a comparison on the two environments.
Configuration on my local environment:
.NET Compact Framework 2.0 SP2 (Version 2.0.7045)
.NET Compact Framework 3.5 (Version 3.5.7283)
.NET Framework 4 Client Profile (Version 4.0.30319)
.NET Framework 4 Extended
.NET Framework 4 Multi-Targeting Pack
AJAXControlToolkit: Version 3.5.50508.0
Configuration on Dev Server:
.NET 2.0: .NET 2.0 SP2 (Version 2.2.30729)
.NET 3.0: .NET 3.0 SP2 (Version 3.2.30729)
.NET 3.5: .NET 3.5 SP1 (Version 3.5.30729.1)
AJAXControlToolkit: Version 1.0.20229.0
Could it be that the slight mismatch in versions is causing the problem? I was thinking of somehow matching the .NET versions on my local machine to that of the dev server. Would this cause an issue? Also I am using Visual Studio 2008 Team System SP1 for development.
I tried adding the AJAXControlToolkit.dll file to the Dev server, but I get the same results.
I tried setting the panel control to style="overflow:hidden", but that didn't seem to work either.
Here is the piece of code I think is causing the problem:
<div id="draggable" style="position:relative;" onmousedown="makeDraggable(); return false;">
<img id="myimage" src="[path to image]" usemap="#circles" onmouseover="changeToHand()" />
</div>
</asp:Panel>
Any help is greatly appreciated!
The issue was isolated to IE. Mozilla and Chrome were fine. So I went to the configuration on IE and realized compatibility view settings were on. If you are on an intranet, make sure the compatibility view settings are off for that too.

Javascript errors after upgrading to .NET 4.0

I have inherited a working VB.NET 2.0 web app that has several User Controls with GridViews inside Update Panels. After running the VS 2010 Upgrade Wizard, the app runs fine in the debugger except for a couple of these Gridviews. In these, update and delete work but adding a new item causes the following javascript error when Save is clicked (calling DoPostBackWithOptions):
Microsoft jscript runtime error
Sys.WebForms.PageRequestManagerServerErrorException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
My theory is that the code is fine (I haven't touched it) and that there is some sort of configuration issue causing this. I have looked through SO and elsewhere and have tweaked my web config and updated the Ajax toolkit assembly. I got nowhere stepping thru the ScriptResource.axd javascript throwing the error. Any suggestions?
Update
The app works fine if I upgrade it to .NET 3.5 using the VS 2008 wizard. However, if I then upgrade that to 4.0 with VS 2010 the problem resurfaces.
Have you tried setting the controlRenderingCompatibilityVersion? The upgrade process should have included it for you, but it might be the cause of your heartache. It's in the <pages... tag of your web.config file...
This is only a workaround not a fix. But I figured I'd add it to help anyone else that might have a similar issue.
What I have figured out is that the project upgrades to .NET 3.5 just fine but that going 4.0 breaks it. I am not sure if the framework breaks it or the upgrade wizard does.
So the successful path for me has been:
Open in VS 2008 and run the upgrade
wizard to upgrade to 3.5.
Open the project again in VS 2010
and run the upgrade wizard but opt
to leave it on the 3.5 framework.
At this point the project behaves fine and I can used VS 2010 to make my updates.

ASP.NET UpdatePanel Works in VS2010 Development Server but not IIS 6

I have a Visual Studio 2010 project which targets v4.0 of the .NET framework.
In the project, I have a page with an ASP.NET UpdatePanel - which works perfectly within VS2010's development server.
However, when deployed to an IIS 6 server, the controls in the UpdatePanel cause a full-page postback - not an async postback.
The site has its own application pool.
I've tried visiting the ScriptResource.axd URLs which are present in the rendered page and they all produce valid looking JavaScript files.
I can't see any Javascript or other errors.
PLEASE help me debug this! I've got to get this site live tonight!
OK - Just fixed it.
It turns out my live server had a slightly older version of .NET 4 installed. I updated to the latest 4.0.30319 and it started working!

New ASP.NET chart control not working on deployed website

I have deployed my website to an .net 2.0.50727 hosting, and the page with the chart control is not working.
I think it may be because this .net version doesn't support the chart control or I have forgotten to upload some required assemblies.
Anybody knows wich assemblies are the required? Does the chart control work with .net 2? I have uploaded System.Web.DataVisualization.dll and System.Drawing.dll. I have on my machine .net 3.5 and the chart works without problems.
I'm using ASP.NET MVC RC without any problems, too. I guess it requires asp.net 3.5, and because that I don't understand why the chart control doesn't work.
Please, somebody can give me any clue? Thanks in advance.
Your hosting server needs to have .Net Framework 3.5 SP1 in order for the Chart Controls to work and you need to set the System.Web.DataVisualization.dll reference "Copy local" property to true.

Resources