AJAX Call Works On Local Machine But Not On Host
Apr 23, 2010
What could potentially stop an AJAX call from working on the host server, when it works fine on the local host? I tried returning an error from the AJAX call, but all I get is 'undefined'. I don't think the actual page method is being called since no information is added in my log (and I've explicitly added a call).
View 2 Replies
Similar Messages:
Feb 1, 2011
I have to host an asp.net that user can access that website something like http://111.11.11.11/myapp/homepage.aspx. ( my ip address will be 111.11.11.11). All I have local IIS installed. I want that if any user clicks on the link. He should be able to access that web application.
View 9 Replies
Jan 16, 2011
I am having some trouble with an ASP.NET website I've set up and it's very difficult to debug.Background Information:There is a page on my website that allows the user to upload one or many Microsoft Word documents. The user can then press a button, and the code is supposed to open the document(s), count the words, and then return the number of words in a table.This works perfectly fine when I am in Visual Studio running the debugger, however when I try to do it over the web from another computer, I get an error.
try
{
String file = this.lstFileBox.Items[i].Text;
// MicrosoftWordOperations is a custom class
MicrosoftWordOperations wordOps = new MicrosoftWordOperations(file);
String contents = wordOps.GetContents();
int numWords = wordOps.CountWords(contents);
[code]...
View 3 Replies
Apr 16, 2010
i have the following code. what i have tried to do is map a path which points to my R:/ - the value 'R:' is stored in my web.config file. this drive is on my server. what i then do is pass the file name and play in an embedded media player in the web browser. when browse the website everything works fine. however, when i browse the website on another PC, i get an error saying it cannot access the file. is this because the second PC i tried the wesbite on doesnt have an R: drive? i wouldnt have thought this was a problem though. is what i am doing wrong? does anyone know why i cant access the file on that drive?
fileName = ConfigurationManager.AppSettings["MappedDrive"] + fileName;
View 6 Replies
Sep 1, 2010
Here is my problem: I have created a login form on my local machine. I have tested it on the local machine and it works fine. But when I push it to production it doesn't work.
I set-up the web config file so that the system uses the production database even from my local machine. I used the Web > AspNet Configuration tool in Visual Web developer to add a user to the production database. I used Sql studio management studio to confirm that the user was in the production database and not just on a local database. I have removed all references to the local database. I even deleted the entire app_data folder on my machine so that there was no chance that I am using a local database.
To create the login, I dragged a login component onto my Login.aspx page from the toolbar in visual web developer.
Why can I log in just fine on my local machine, but when push everything to production and I try to log in as that user I get the error message "Your login attempt was not successful"
View 3 Replies
Sep 10, 2010
In my shopping website..... I had integrated Paypal. Using the Developer / SandBox Version I had already tested the site from my local machine. It is working fine.
But after uploading the files in shared web-Server, whenever I am trying to call the Paypal, then always it is showing me the following error. The operation has timed out Description: An unhandled exception occurred during the execution of the current web request. review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.WebException: The operation has timed out
Source Error:
[Code]....
Line 32: End If
Line 33: Catch ex As Exception
Line 34: Throw ex
Line 35:
Line 36: Finally
Source
File: D:whbSites29519Webexpresscheckout.aspx.vb Line: 34
Stack Trace:
[Code]....
[WebException: The operation has timed out]
expresscheckout.expresscheckout_Load(Object sender, EventArgs e) in D:whbSites29519Webexpresscheckout.aspx.vb:34
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
View 8 Replies
Mar 25, 2010
I have html editor on page, ajax 3.5. I can save Editor.Content to xml file without problem, after I publish to server machine, It refused to work for me.
my page directive set to ValidateRequest = false and EnableEvenValidate = false and AutoEventWireUp = false, no UpdatePanel used around Editor and update button. on code behind which is button click event.
Dim docInfo.Load(Server.MapPath(xmlInfoFilePath))
docInfo As
New System.Xml.XmlDocument()
Dim ndInfo As System.Xml.XmlNode
ndInfo = docInfo.SelectSingleNode("/info/business[@user='" & User.Identity.Name &
"']")
If ndInfo IsNot
Nothing Then
ndInfo.Attributes("description").Value = Editor.Content
docInfo.Save(Server.MapPath(xmlInfoFilePath))
End If
docInfo = Nothing
This button click generate an error on server side. I guess the problem Editor.Content have hidden tags, the server refuse to accept, but what is real problem.
View 1 Replies
Jan 15, 2010
i have a problem with ToolkitScriptManager:
I have an asp web app contains ajaxtoolkit's controls. Everything is working fine on VS Development Server, but doesn't on IIS7 (win 2008).
The AjaxToolkit's scriptcombine sometimes is not working (resulted http 404 status code on browser). Maybe causes by long TSM_HiddenField query string on complex toolkit's controls.
the code:
[Code]....
View 1 Replies
Oct 11, 2010
I am Working on a asp.net web site. i am using visual studio.net 2008.
i use some ajax control. for my web site. i use update panel on my web pages.
when i run my web site on local host ajax control work fine but as i upload the site on server. these control are not working at all.
tell me what will i do in my web site to run the AJAX control on server side.
View 1 Replies
Mar 24, 2010
1. ASP.Net WEB server.
2. I have PC, on which file to copy to device is located, with Active Sync installed and IE running which has a page in that IE has rendered by server #1.
3. I have a DEVICE connected to desktop #2 via AS.
I would like to copy file from a local machine to the device which is connected to this machine. My application is located in a webserver.
View 5 Replies
Sep 22, 2010
On one of my pages I display a datetime (from a database) and it is formatted correctly as a UK date time (dd-mm-yyyy) on my local machine. However when I deploy it to a server it reverts to American format (mm-dd-yyyy). Does anyone have any idea of when this might be happening?This might be outside the scope of stackoverflow
View 3 Replies
Aug 28, 2012
I am using the following Web method.. its work fast on local host , but on Domain hosted server .. its works odd , i;e; some time its work fast about (1-3 sec) and some take about 10-14 sec to process.. how do i make it work properly and fast..
here is my code
[WebMethod]
public static string DisplayMessage(string name, string price,string obj, string id)
{
SqlConnection conn = new SqlConnection(WebConfigurationManager.ConnectionStrings["eshopConnectionString"].ConnectionString);
//Creating Delay""
[Code]....
View 1 Replies
Jun 1, 2010
How do I get the smtp server address for the local machine? I want to my email address on a windows form and have the user send me an email and I need to be able to get their smtp server address programatically to do this. I tried this:
System.Net.Mail.
SmtpClient smtpc =
new
SmtpClient("127.0.0.1");
smtpc.Send(email);
It caused an exception.
View 3 Replies
Mar 17, 2010
I basically want to transfer a file from the client to the file storage server without actual login to the server so that the client cannot access the storage location on the server directly. I can do this only if i manually login to the storage server through windows login. I dont want to do that. This is a Web-Based Application.
protected void Button1_Click(object sender, EventArgs e)
{
filePath = FileUpload1.FileName;
try
{
WebClient client = new WebClient();
NetworkCredential nc = new NetworkCredential(uName, password);
Uri addy = new Uri("\\192.168.1.3\upload\");
[code]...
View 2 Replies
Feb 3, 2011
I am using Ajax Validator call out extender to validate a web form. The error messages are displayed as expected. But I am able to save the form with data that should not have been entered. For ex: for a number field, I type in "sdsd" and the ajax control displays a pop up displaying the error message "Numbers only allowed"..
but at the same time, I can click on the submit button with the text in the number field... at which time, the web page displays error as I am trying to insert a text in a data type int field. I either have to clear the field on pop up error display or not let the user click submit when ajax validator is active. whats the best way?
View 2 Replies
Jul 1, 2010
I have had a real nightmare with Server.MapPath(). When I call Server.MapPath("~") in my application that is running in ASP.NET Development Server it returns root directory that ends in a back slash like f:projectsapp1, but I call it in published version, installed in IIS, it returns root directory without any back slash like c:inetpubwwwrootapp1.
string mainRoot = HttpContext.Current.Server.MapPath("~");
DirectoryInfo di = new DirectoryInfo(mainRoot);
//added to solve this problem with Server.MapPath
if (!mainRoot.EndsWith(@""))
mainRoot += @"";
FileInfo[] files = di.GetFiles("*.aspx");
foreach (FileInfo item in files)
{
string path = item.FullName.Replace(mainRoot, "~/").Replace(@"", "/");
//do more here
}
View 1 Replies
Nov 23, 2010
I am building an ASP.NET intranet application. I am trying to get the host name of the client machine. I have started off by using System.Net.Dns.GetHostName(); but this just seems to return the hostname of the server running the website through IIS. Am I using the wrong method or am I using this one incorrectly?
[Code]....
View 4 Replies
Nov 30, 2010
Am using ASP.Net 3.5 with C#. Am trying to send email using SMTP server on button click. Mostly email is sent suceessfully. But sometimes am getting web mail exception error saying "Host machine software has blocked the mail".My web application runs behind a firewall.
View 1 Replies
May 4, 2010
I have a Windows 7 machine hosting a Windows 7 virtual machine. I am developing a web application using visual studio 2010 on my host machine. I want to run the application in debug mode and access my localhost server from a browser on the virtual machine. (The purpose of this is to be able to debug an application that uses Windows Authentication using different users without having to log off and on for different users on my host machine...)
I am using a bridged connection for the virtual machine. I googled how to solve this problem and most of the threads that I found said that if I was using a bridged connection, I could access the server on the host machine by just entering the IP address of my host machine into the url in the browser of the virtual machine. I have tried some different urls using the IP but none of them have worked.
As an example, suppose I run my web application in visual studio on my host machine and its url is
http://localhost:62789/MyPage.aspx
Assume also that I ran ipconfig in CommandPrompt on my host machine and found out that the IP address for my host machine is xxx.xxx.xxx.x. What url should I enter on the virtual machine to access my web application?
EDIT:
I set up IIS to host the web project. After that, I just added the following line (xxx.xxx.xxx.xxx is my IP) to my hosts file and I was able to access the website from the virtual machine:
xxx.xxx.xxx.xxx MyWebsite.net
I also had to edit my firewall settings.
View 2 Replies
Jan 14, 2011
I am trying to send email from localhost from last some days but not succeed.What happening is it is not showing a error but also email is not being sent. Other than that I have done the following steps:
1. Disable firewall
2. disable antivirus
3. In IIS > Default SMTP > Properties > Access tab > Only the list below is selected and in list I have added 127.0.0.1 and 192.168.15.2 (it is my computer ip)
[Code]....
View 5 Replies
Jul 26, 2010
I have done an application in my PC i would like to access it on other pc how can i do this.
View 4 Replies
Jan 13, 2011
I am using gmail smtp server and email account to send email from my asp.net site. It works fine when I use it on some hosing server but it is strange it do not work on local machine. Plz guide me what should I do ? Do I need to install some smtp server (if yes plz mention the name as I am not aware of it) .
View 14 Replies
Sep 23, 2010
When I Start Debugging a website on the localhost the yellow bar no longer shows up at the top of the web page. How do I get it back?
View 5 Replies
Mar 27, 2010
I am having 5 systems connected through LAN.Now I am creating a web application in server and want to retrive that web application through all the systems so that other people can able to access it andwork with different pages in the application.Is this possible?If yes pls send me the steps how to do that?Same with database also.Pls respond me ASAP.
View 3 Replies
Jan 11, 2010
I have a code to downolad a particular file that is stored at a particular location on the server...
for example i have a file untitled.bmp in the C: drive of my server and i download this to my localhost using the particular code...
protected void Button1_Click(object sender, EventArgs e)
{
string filepath = (@"C:untitled.bmp");
// Create New instance of FileInfo class to get the properties of the file being downloaded
[Code]....
now my problem is how do i download a folder with multiple files in it.. is there a way???
for example i have a folder named recovery in C: drive which contains two files untitled.bmp and test.txt.
View 2 Replies