Configuration :: App Works Well On Local Intranet, But Having Problema On External Access?
Nov 3, 2010App works well on local intranet, but having problema on external access?
View 4 RepliesApp works well on local intranet, but having problema on external access?
View 4 Repliesi got this error on live server after uploading. On local server it's working fine Unable to validate data.ource:
System.WebTargetSite: Byte[] GetDecodedData(Byte[], Byte[], Int32, Int32, Int32 ByRef)
StackTrace: at System.Web.Configuration.MachineKeySection.GetDecodedData(Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength)
at System.Web.UI.ObjectStateFormatter.Deserialize(String inputString
I have used a dll named MARCEngine, which is used to read Marc data. I use a method named MARC2MARC21XML which converts a normal marc file to an XML file.
The problem is it works great on my local IIS, but when I upload it to the production server, it only generates the root node and not the child nodes.
Here is a snippet of my sample page :
[Code]....
Asp.net has the permissions to access the files geneated.
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"
I have a solution that has 2 projects in it... Project #1 is a class I created some time back to deal with the basic data connection and passing data back and forth.
The 2nd project is the new current project (web site).
Everything works fine in local mode but after I have compiled Project #1 and created a referance in Project #2 then compiled Project #2 and published to the server...
I am running on Windows 7 64bit, .NET 4.0, Access 2010, SQLExpress (loging only), C#... I have rebuilt Project #1 several times as an x86, AnyCPU, and x64... they all give the same result...
I get the following error when the web site is run.
[Code]....
how can i access 2 external config files from web.config file.
i have done it for one external file like this in webconfig:
<appSettings file="........">
Now how can i access the second external config file from same webconfig.
I Have developed an asp.net application. The application has been configured in my office local server not in the internet.
View 5 RepliesI hosted my web application in localhost.Now i need to test it from any where.Can i access my local host through internet using public IP?
View 1 RepliesI started working on an ASP.NET web app for my companies local intranet. While coding it, I emailed our IT team, to get an intranet domain/server setup.
So, they emailed me back with the server credentials+the domain. But, I'm not really sure what to do from here.
How I need to setup the server and ASP.NET settings to get everything working?
I have written code that uses a .bat file (code: rwvinstat /server:servername) that populates a DataGrid of users logged in to a terminal service session in c#. The .bat lives on the server with the app. files and will run properly if executed manually on the server .Also if i run the app. locally and call the .bat file on the server it works fine.
The problem is when i deploy my web app on the server the DataGrid never populates nor do i get any errors. i have given full permissions to IUSER_MACHINENAME(and various users) and i set the virtual directory permissions to read, run, execute. Ialso have set my web.conf fig to:< "identity impersonate="true" userName="username" password="password"/> Here is my Source code:
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Text;
using System.Runtime.InteropServices;
using System.Text.RegularExpressions;
using System.IO;
public partial class ilsap01_users : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo("C:\listUsersIlsap01.bat");
psi.RedirectStandardOutput = true;
psi.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
psi.UseShellExecute = false;
System.Diagnostics.Process listFiles;
listFiles = System.Diagnostics.Process.Start(psi);
System.IO.StreamReader rawUserData = listFiles.StandardOutput;
listFiles.WaitForExit(20000);
try..................
I want to Find the Printer under the Local Area network(intranet).
After press print button, its give printout with out popup the print-window. is it posible in web allplication. if its posible means how can i approch.
I created a website using VS2010. When I run the website using built-in web server, everything works fine. The website recognizes javascript and aurigma uploader. When I publish the website to local folder and tried to access using IIS 5.1 on local pc,
the java scipt files did not work. I was getting yellow triangle sign at the bottom of the page indicating the object is expected. I tried to look online but i could not find any answer. I have included jquery and javascript file in the header section of master
I'm using VS2010 and on my local machine, using web.config to map one url to another works fine, using the tag. However, as soon as I upload to the IIS6 server it doesn't work at all! Is there something about IIS6 that doesn't support this feature?
View 1 RepliesI 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]...
I have ran into an issue that has me stumped. I have a jquery / javascript function that loads when my site is loaded. It calls a service in my project and returns a string of data.
[Code]....
The code that handles the web method is shown here:
[Code]....
This is something I have done similar multiple times. The problem however is the code works fine on the local devbox how ever when I move the project code to the prod box I get a response back with the following:
[Code]....
One note this is the first time I have done this targeting .Net 4.0. Is there an issue with relative url's using .Net 4.0, or VS 2010 that I have missed?
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]....
So, I've been working on an app that extracts a picture from an ole field in an old access xp db, converts it to a jpg picture, and saves it to a folder to be presented to the user.
After tweaking some permissions on the local iis, the application works fine.
In the remote one however, the application doesn't extract the picture as expected.
I'm using two dlls on there, although I don't know why it wouldn't work.
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;
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 RepliesIn 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
URL....I used above code to send Confirmation-email but below error happen..The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required. Learn more at...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. System.Net.Mail. Smtp Exception: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required. Learn more atSource Error:
Line 87: smtp.Credentials = NetworkCred;
Line 88: smtp.Port = 587;
Line 89: smtp.Send(mm);
Line 90: }
Line 91:
I have developed an web application using .net 3.5 framework and sql server 2005. Firstly, it was hosted in our intranet. Everything worked fine. Then our client wants to use this application anywhere from world. We do not have seperate domain for hosting. We have our mail server. We hosted in that server.The problem is...Now we have two LIVE IPs, i.e for internet users we are getting the IP ashttp://xxx.yyy.zz.ddd:hh and for intranet users we are getting the IP as http://xx.0.0.tt:uu. The intranet IP does not work in internet and vice-visa
View 3 RepliesAre there any instructions how to publish a web app like on webplatform?
View 3 Repliesi think this has been asked before but i just cannot figure this one out.
I have added a global.asax file to my project (using asp.net with c# from vs2010) and works great on my local machine. then when i publish to our site (i publish to ftp site and then copy from the ftp folder into the site folder overwriting old files) and it doesn't work... at all. i am using 'windows server 2008 R2 Enterprise'.
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.