AJAX :: .dll (used In 1.1) Is Not Working In IIS7.0?
May 19, 2010Ajax.dll (used in .net1.1) is not working in IIS7.0
View 4 RepliesAjax.dll (used in .net1.1) is not working in IIS7.0
View 4 RepliesI have been trying to read through a lot of suggestions from many forum about ASP.NET AJAX and IIS 7. I thought it was probably problem with my web.config. So, I created a brand new site to test the UpdatePanel and Ajax Control Tool Kits. Just one page which has oneTextBox + CalenderExtender and UpdatePanel with a Lable and a Button. It worked so well on the development server Cassini but when I published it to the II7 , it's not working at all.
So, What should I configure in the IIS 7 or should I do to my web site project / web.config ?
I have the following module
public class LowerCaseRequest : IHttpModule
{
public void Init(HttpApplication context)
{
context.BeginRequest += new EventHandler(this.OnBeginRequest);
[Code]....
It works grate on my PC running XP and IIS 5.1
but on my webserver running IIS7 and WS 2008 dosn't works.
i have develop an application (.net 2.0) and it's working fine in localhost (iis 6.0)
but it's not working when i uploaded to my web server (windows 2008, iis 7.0)
refer to [URL]
I have added two handlers in Web config under the System.Server for work to IIS7, but i got this error
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<staticContent>
<clientCache httpExpires="Sun, 29 Mar 2020 00:00:00 GMT" cacheControlMode="UseExpires" />
[Code]....
Error:
500 - Internal server error. There is a problem with the resource you are looking for, and it cannot be displayed.
I have some code that I tweaked for a contact form that I have been using for years with no trouble. I recently upgraded my hosting account to IIS7 and upgraded the Framework and now my code isn't working. I don't know how to fix my code so that it works. Could someone look at it and tell me what I need to fix? I know it's a lot of code and the person that originally wrote it for me many years ago was kind enough to comment everything so I knew what was going on but with the upgrade I have no idea what is incorrect. The error that I am getting when the form is filed out and submitted is...
A Problem prevented your request from being accepted: The "SendUsing" configuration value is invalid.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="utf-8" %>
[code]...
'The first thing we must do is declare or "Dimension" the variables we will use. We will declare variables for each form field,and we will insert those variables into the text of the email message.
Dim strName as String = txtName.Text 'This will assign the text of the "Name" textbox to this variable
Dim strEmail as String = txtEmail.Text 'This will assign the text of the "Email" textbox to this variable
Dim strCity as String = txtCity.Text 'This will assign the text of the "City" textbox to this variable
[code]...
We are migrating an existing asp.net application from Windows Server 2003 with IIS6 to windows server 2008 with IIS7.
we use System.Net.CredentialCache.DefaultCredentials to pass the user credential to a web service. It is working fine with the old environment but with the new one we got "The request failed with HTTP status 401: Unauthorized." error.
How can I fix this problem with IIS7?
.ashx file is working perfectly in visual studio iis but when hosted it is not working
View 2 RepliesI have the following setting in my web.config to redirect to a default page:
<defaultDocument>
<files>
<clear/>
<add value="default.aspx"/>
</files>
</defaultDocument>
For example when a user enters www.homeforhire.com they should be redirected to default.aspx (for operational reasons the user is then redirected to
www.homeforhire.com/home.aspx).
Instead an error is caught in the Rewrite module (which should not be activated). I am using an http module to perform URL rewriting.
It appears as if the default document setup is not working correctly, and the requested page ~/ is being sent to the Rewrite module, causing an error (which is then caught by my error handler and the user is redirected to the home page).
Entering www.homeforhire.com/default.aspx works correctly.
Can anyone tell me why the default document settings in the web.config do not appear to be working?
I get a website working perfectly in VS2008 but when I publish it on IIS7 ajax doesn't work at all.I guess it is a problem in my web.config but I don't know what. Here is the web.config file :
[Code]....
I have a problem with partial postback in FireFox in my index.aspx I have following code:
[Code]....
Finally my Partialview has following content:
[Code]....
This code is working fine when using IE or Google Chrome, but when using FireFox the code in my controller is never reached. I just can't figure out what I am missing
Before I get started it's important to note that this issue only happens in IIS7 and IE7, which means it works fine in all our IIS6 environments and Chrome and Firefox hitting IIS7.
We have an ASP.NET 3.5 application that is doing a very basic window.open to open our report server.
ex.
window.open('http://555.55.5.55/ReportServer', 'Reports');
Once launched the user is prompted for their username and password. If the user selects cancel and goes back to the parent window they can use all the Ajax functionality just fine; however, if the user logs into report server then all the Ajax functionality on the parent window ceases to work (example error below). We changed the javascript line above to popup a window to google and everything worked fine. We even tried changing it to '_self' to act like a redirect and we had the same results, everything failed. The issue appears to be related to something in IE7 and the authentication popup.
We've already set the application pool hosting the site in IIS7 to classic mode and this did not resolve our problem.
Error:
Error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by call to Reponse.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error Parsing near ' <!DOCTYPE html PUB'.
Error: Sys.Extended is undefined
View 3 RepliesI'm just getting started with the ASP.NET AJAX Control Toolkit and got it installed into Visual Studio 2008 without issue.I created a very simple sandbox web app by following several tutorials. Some pages have a single button with a modalpopup event, others are using a calendar extender on a textbox. I've gone through many, including ones that you can interact with and seeworking on the website.Each time, VS builds the web app without issue and deploys and runs. The problem, however, is that "no AJAX happens" when I try to use the app. This has happened on two separate PCs running Windows 7 - one with Pro and another running Ultimate, all 64-bit One machine was also running Visual Studio 2010 beta 2).When I hit a page with some of the toolkit controls, the page renders normally and I see a lot of script references in the generated HTML so something's happening. But take one example:
[Code]....
After the implementation of ajax drag and drop, we have observed that which is working fine in IE and Firefox and not in chrome and safari, In Google chrome and Safari when we try to drag a module, the page getting scrolling to the top of the page.
View 1 RepliesI have a problem with partial postback in FireFox
in my index.aspx I have following code:
[Code]....
Finally my Partialview has following content:
[Code]....
This code is working fine when using IE or Google Chrome, but when using FireFox the code in my controller is never reached.
[Code]....
In the upper code... AutCompleteExtender1 works perfectly... AutoCompleteExtender2 not working at all. Same web service, same method... both are inside the same .aspx file... both have exactly the same conditions.What is it that I am missing? And if you think that it is because they both calling the same service and method it is not... the second doesn't work with different service or different method (both inside the same service and in the different .asmx file).Can it be, that you simply can't have 2 ACE controls on the same page?And btw, is it possible to run server code once someone selects something from ACE control?
Ajax calendar control not working properly with content place holder of Master Page.Most of time Calender Control hides when mouseover with out changing date in content place holder of Master Page.same code works in normal aspx pages.
View 2 RepliesI am new to Ajax Control Toolkit, with the help of online tutorials I had created a cascading dropdown list in asp.net and tested it on my local machine. For this dropdown list data source would be an xml file (which is saved on my local machine c drive). I haven't encountered any issues until I deploy the precompiled web site on to IIS 7. When I open the web site from IIS I would see the two dropdown boxes on the web page with an error "Method error 500". I believe this error occured due to incorrect xml file
path provided on IIS. I had copied xml and xsd files into IIS server C drive but it did not help out and then I created a network map and placed the xml and xsd files in that shared folder tried to access that path from web service, it's working on local machine but not on IIS. It would be great, if any one could explain me the solution.
Following is the .aspx and .asmx code:
.aspx code:
<form id="form1" runat="server"> <div> <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"> </asp:ToolkitScriptManager> <br /> <table> <tr> <td> <asp:DropDownList ID="DropDownList1" runat="server"
Height="20px" Width="257px"> </asp:DropDownList> <asp:CascadingDropDown ID="CascadingDropDown1" runat="server" Category="Category" TargetControlID="DropDownList1" PromptText="[select category]" ServicePath="~/WebService.asmx" ServiceMethod="GetCategory"> </asp:CascadingDropDown>
<br /> </td> </tr> <tr> <td> <asp:DropDownList ID="DropDownList2" runat="server" Height="20px" Width="257px"> </asp:DropDownList> <asp:CascadingDropDown ID="CascadingDropDown2" runat="server" Category="Type" TargetControlID="DropDownList2" PromptText="Select
Type]" LoadingText="Loading Type.." ParentControlID="DropDownList1" ServicePath="~/WebService.asmx" ServiceMethod="GetType"> </asp:CascadingDropDown> <br /> </td> </tr> </table> </div> </form>
.asmx code(.cs code):
[WebMethod]
public AjaxControlToolkit.CascadingDropDownNameValue[] GetCategory(string knownCategoryValues, string category)
{
XmlDocument _doc = new XmlDocument();
_doc.Load(HttpContext.Current.Server.MapPath("~/C:/ItSupportCategory.xml"));
XmlNodeList list = _doc.SelectNodes("/CategoryList/Category");
List<CascadingDropDownNameValue> categorylist = new List<CascadingDropDownNameValue>();
foreach (XmlNode node in list)
{
string catid = node.Attributes["value"].Value.ToString();
string catname = node.Attributes["name"].Value.ToString();
categorylist.Add( new CascadingDropDownNameValue(catname,catid));
}
return categorylist.ToArray();
}
[WebMethod]
public AjaxControlToolkit.CascadingDropDownNameValue[] GetType(string knownCategoryValues, string category)
{
int catID;
StringDictionary selectedvalue = AjaxControlToolkit.CascadingDropDown.ParseKnownCategoryValuesString(knownCategoryValues);
catID = Convert.ToInt32(selectedvalue["category"]);
List<AjaxControlToolkit.CascadingDropDownNameValue> cascadingValues = new List<AjaxControlToolkit.CascadingDropDownNameValue>();
XmlDocument _doc = new XmlDocument();
_doc.Load(HttpContext.Current.Server.MapPath("~/C:/ItSupportCategory.xml"));
XmlElement root = (XmlElement)_doc.SelectSingleNode("/CategoryList/Category[@value='" + catID + "']");
for (int i = 0; i < root.ChildNodes.Count; i++)
{
string typeid = root.ChildNodes[i].Attributes["value"].Value.ToString();
string typename = root.ChildNodes[i].Attributes["name"].Value.ToString();
cascadingValues.Add(new CascadingDropDownNameValue(typename, typeid));
}
return cascadingValues.ToArray();
}
Xml File:
<?xml version="1.0"?>
<CategoryList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="test.xsd">
<Category value ="1" name="SYSTEM WIDE">
<Type value ="1" name="Email"/>
<Type value="2" name="SAP Locked"/>
<Type value="3" name="Job Archive Full" />
</Category>
<Category value="2" name="SAP">
<Type value="3" name="Pricing Incorrect"/>
<Type value="5" name="New Item #"/>
<Type value="6" name="Reports"/>
<Type value="7" name="New User Setup"/>
</Category>
<Category value="3" name="OTHER">
<Type value="8" name="Production"/>
<Type value="9" name="Office"/>
<Type value="10" name="Toner for Printer"/>
<Type value="11" name="Security Camre Lookup"/>
</Category>
</CategoryList>
I got a new computer with vs2008 and moved my app onto it for development. I can navigate pages but none of the AJAX is working. I get these IE errors "sys is undefined" and "webpartmanager" is undefined. I found lots of info on the web but none seemed to work/be applicable to my situation. My web.config file looks to be fine and I kept the application at asp.net 2.0.
View 9 RepliesAJAX with MasterPage not working. Setup simple test site below, no error just not working. TIA
[Code]....
[Code]....
Does the Ajax Calander extender work with "ScriptManger" or Do I have to use ToolkitScriptManager? For some reason calander extender doesnt work with script manager but does work with ToolkitScriptManager. ( But I do not want to use ToolkitScriptManager).anything wrong with the below code.
[Code]....
I'm using VS2005.I just downloaded .NET framework 4 and so then I downloaded ajaxcontroltoolkit.binary.net4 via [http://ajaxcontroltoolkit.codeplex.com/releases/view/43475](as opposed to ajaxcontroltoolkit.binary.net35 for .NET 3.5), but when I try to load the ajaxcontroltoolkit.dll into my toolbox (as said in the tutorials), I get the following error msg:"'C:......ajaxcontroltoolkit.dll' is not a microsoft .NET module."
View 2 RepliesBefore I use magic ajax, it was not a problem that if it's not ajax call, I can perform document.getElementById("button1").click();
However, in asp.net ajax extension, I can not do this and it reports a run time ajax error:
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
What happens is, in my code, I have a facility to check if the user change any data they just input every 5 minutes. If yes, I will do a save function without notifying the user. and all the things are done on client side. So I have to use javascript, however, I could not user button.click() on js anymore.Is there any other way to call a server side function (code behind) by javascript?
public void ModifyEnter()
{
combo1.Attributes.Add("onkeydown", "if(event.which || event.keyCode)" +
[code]...