Tracking Forums, Newsgroups, Maling Lists
Home Submit Tracker Forums
  Advanced Search
  HOME    TRACKER    ASP.NET


Advertisements:










WSDL Works Locally But Not When Hosted On A Remote Server


I created a WSDL with Visual Studio 2005 and tested it using localhost. It worked exactly as anticipated and returned the expected results. I basically called the WSDL from a classic ASP page using Server.CreateObject("MSXML2.ServerXMLHTTP.3.0") and all went well. The url was http://localhost/service.asmx/methodname.


I deployed the WSDL to the remote server and tried to access it the same way; I changed localhost with the domain name as http://domainname/service.asmx/methodname. But now I get 'Post to http://domainname/service.asmx/methodname failed with 500.


View 5 Replies (Posted: Sep 20 10)

Sponsored Links:

Related Forum Messages For ASP.NET category:
Configuration :: Upload Via FTP Works When Code Runs Locally But Not From A Remote Server?
I have a page which uploads a file from server A to server B. The user first uploads the file to server A, where it's saved into a diretory, then once the file is safely stored there, I'm transferring it to a second server, server B, using the following code:

[code]....

So, in summary, the only difference I can see between the working case and the non-working case is the server that'ssending the file.

Posted: Nov 15, 2010 07:20 PM

View 4 Replies!   View Related
DataSource Controls :: Remote Conn. | App Running Locally , SS DB Is Hosted Online?
My application running locally on my PC - on the Visual Studio Server (Cassini Server).My SQl Server DB is hsosted in a server on the internet.I think there are some configurations to be done in the SSMS ( Enable Remote conn.).

Posted: May 14, 2010 07:50 PM

View 1 Replies!   View Related
C# - Asmx Webservice Works Locally But Not When Deployed On Remote IIS 7
I have developped an asmx webservice with visual studio and I deploy on IIS 7 which has 3.5 Framework by copying all the files.

When testing it says

Could not load file or 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

I don't use [System.Web.Script.Services.ScriptService] so I don't understand why it tries to load System.Web.Extensions.

Note: I'm not using any other assembly/lib I'm just learning webservice so it's very simple: I create a webservice Test.asmx with one method which uses one class Test.cs within same namespace WebServiceTest. This works locally.

Posted: Sep 25 10 at 14:11

View 2 Replies!   View Related
Configuration :: Menu Works Locally But Not On Server?
I have a menu that uses a sitemap.The menu works locally, but not on the server.Below is my code for the menu, data source,and thesitemap.why I can run it locally and use the menu, but I cannot use the menu on the server?

[Code]....

Posted: Oct 08, 2010 02:47 PM

View 9 Replies!   View Related
MVC :: Routes Works Locally But Not On Production Server?
I don't understand why my routes i defined are working locally but not on the production server

If i go to my homepage on my production server it shows the first route instead of the action i defined in default.aspx (this leads to the last route, mysite.nl/NL/startpage/10/5)

Also if i go to mysite.nl/myservice/service.svc it shows my homepage, how to ignore this, and just go to my web service?

[code]....

Posted: Oct 14, 2009 11:49 AM

View 7 Replies!   View Related
Web Forms :: VS 2005 - MS Outlook Works Locally But Not From Server?
I have a button on a page that when clickedshould bring up the users email system (MS Outlook).When I run my application locally on my test machine, I click the button and my email comes up.However, once I moved the application to theweb server, when I click the button, nothing happens.Can you tell me what is wrong? Belowis the function I am using:

[Code]....

Posted: Apr 16, 2010 07:38 PM

View 4 Replies!   View Related
Access :: ODBC Works Locally But Not On Server / Connection To 'DSN Name' Failed
Using anAccesslinked table, I am able to view the datagrid bound to the access data source locally.

When I publish my site, I get the error message ODBC --Connection to'DSN Name' failed.

I created a linked table on the server and linked it to my database and can read perfectly fine using that DSN, but when I put that database in my app_data folder and change the ODBC server connection string it still does not work. Why would I not be able to see the odbc data on my server?

Posted: Dec 21, 2009 11:57 PM

View 7 Replies!   View Related
Security ::remote On To The Server And Run The Application Locally LOGON_USER Filled?
A site that utilizes Windows Authentication.It accesses the LOGON_USER variable to pull the domain and user.It works fine in the development environment.It works fine on one of my servers.We are in the process of setting up a new server for this application to be hosted on.When I setup the new server,the LOGON_USER is always empty for remote computers.Windows Auth is turned on.I have tried it with Anonymous Access on (how the current server is setup) and also off.If I remote on to the server and run the application locally,LOGON_USER is filled.When I access the site via IE from a remote machine,it prompts three times and then fails.Even if I key in credentials in the Windows prompt.nothing

Posted: Feb 03, 2010 06:51 PM

View 6 Replies!   View Related
Differences Hosting A Website On Some Remote Server VS Running It Locally On Dev Environment
some differences hosting a website on some remote server VS running it locally on dev environment.The reason why i am asking is, If I run my website locally it works fine no exceptions, runs smooth. But when deployed on a remote hosting server. Its like a nightmare to me :(very often i get object Instance not set to instance of object..... I am ok with the error message, But the same situation should happen locally,

Posted: Jul 04, 2010 09:21 PM

View 6 Replies!   View Related
Debugging Website Hosted On A Remote Server In VS 2008?
I have website (setup on IIS) in a VPS setting. Since I dont have VS installed on the VPS, I would like to connect it from my dev machine and debug the source code.

From my dev machine, I opened up VS 2008 and did File -> Open Website -> specified the http address and clicked OK. I get the error

"Unable to open the website 'http://xxx..'. The Web server does not have the FrontPage Server extensions installed"

Is this the correct way of debugging a website hosted remotely? I have IIS 6.0 on the VPS. When I go to Add Remove Progrsms -> Add remove Windows Components -> Application Server -> IIS, I was expecting to see FrontPage Server Extensions. I do not.

Posted: Dec 30 09 at 12:07

View 1 Replies!   View Related
Web Forms :: Email Attachment Only Works In Dev Environment Not On Hosted Server?
I have a form where a user asks for a quote and we need to send an attached application form. all this worked in the dev environment but when I post the changes onto our hosted server (third party ISP) I get an error when the attachment is added. I have tired to use URL's but that does not work, at the moment I am using a relative path, but have also tried to place the file in the forms page folder.

Here is my attachment code:

string strFullPath = System.Web.HttpContext.Current.Server.MapPath(pRelativePath);
Attachment myAttachment = new Attachment(strFullPath, System.Net.Mime.MediaTypeNames.Application.Pdf);
myMsg.Attachments.Add(myAttachment);

this is in a try - catch block and I get the error "Could not find file".

Posted: Feb 05, 2010 02:47 PM

View 2 Replies!   View Related
Connection String Works Locally Only?
Here is what im using

<connectionStrings>
<clear/>
<add name="LocalSqlServer" connectionString="Initial Catalog=aspnetdb;Data Source=(local);Integrated Security=SSPI;" />
</connectionStrings>
That seems to works on localhost but not on domain :(

Posted: Jan 17, 2009 03:18 AM

View 16 Replies!   View Related
C# - Class Not Being Found Online But Works Locally?
I am getting this error after uploading my web app to my Rackspace box.

CS0246: The type or namespace name 'User' could not be found (are you missing a using directive or an assembly reference?)

It's odd because it works fine on my local computer where I do development. The actual line of code is:

public User user = new User();

I am using C#.

Posted: Mar 26 10 at 16:48

View 1 Replies!   View Related
Configuration :: Web Service Works Locally But Not When Deployed?
When I deploy my web service, I get the following error:

There is no build provider registered for the extension '.svc'. You can register one in the <compilation><buildProviders> section in machine.config or web.config. Make sure is has a BuildProviderAppliesToAttribute attribute which includes the value 'Web' or 'All'.

I found one thread ([URL] that a solution but, I can not get it to work. If I make the changes to my web config file as in the thread, I then get a configuration error. One odd thing is that, if I check the machine.config file on my machine, located at C:WINDOWSMicrosoft.NETFrameworkv2.0.50727CONFIGmachine.config, I don't see any of the config settings described in the thread. As a matter of fact, there is no mention of "compilation" or "buildProviders" at all.

Here is my entire config file listing:

[Code]....

Posted: May 28, 2010 01:53 PM

View 2 Replies!   View Related
MVC3 - All Routing Works Locally But Not Remotely?
I have a new MVC3 project with one Controller called PublicController.cs which contains 4 identical methods for testing out how routing works. The only difference between them is their name, and that they each point to a different view ...

public class PublicController : Controller
{
//
// GET: /Public/
public ActionResult Index()[code]....

My web-server is shared hosting with netcetera, using a sub-domain for this deployment (previously had problems with MVC in virtual directories, but have full blown MVC2 apps running in sub-domains no problem). I've deployed by using the "Publish to file system" option, then copying over the files aswell as just copying the entire source project over. Both give identical results.

Posted: Feb 16 at 3:56

View 1 Replies!   View Related
Get Application Root From Request Object That Works Locally And Remotely?
Let's say that I have my ASP.NET web application in a directory called "MyApp" both locally and on a remote server. I'm trying to build an onclick response to a link. The response calls a Javascript function, passing it the URL of an .aspx page in my web app. The Javascript pops out a new window displaying the page. My C# code looks like this:

link = new HyperLink();
link.Text = product_num_str;
link.NavigateUrl = "#";[code]....

I started using the Request's Authority property because I was having problems running locally on the Visual Studio web server when I used the Host property. The problem was that Host only returned "localhost" instead of the host and port number. When tested locally, the code works because the "authority" maps to my app root folder. The URL generated is, e.g.,

http://localhost:52071/ProductInfo.aspx?_num=123

If I run on a remote server, however, I end up with something like: http://company-server/ProductInfo.aspx?_num=123

This fails to find the page, because in this case the "MyApp" root folder must be included.There is probably an easier way - putting an entry in the web.config or something. My motivation originally was to allow the app to be published to a folder of any name and work as is. I could hack my approach and search the string for "localhost" or something, but that's ugly. So how do I build a string that will work everywhere?

Posted: Mar 15 at 0:27

View 1 Replies!   View Related
Web Forms :: Locally It Works Fine - But Deployed To The Web Serve It Gives A Windows Prompt?
This is very strange behaviour from my login control - locally it works fine - But deployed to the web server (With an externalhosting company)itgives a windows prompt, even though the authorisation is set to "Forms".Here is my web.config file:

[Code]....

Posted: Jan 06, 2010 07:46 PM

View 13 Replies!   View Related
Configuration :: Website Works Fine Locally But Makes Error On Shared Hosting?
The error is mentioned below, the cssfriendly.dll is in bin, and browser file is in there app_browsers folder. And it is working in same PC (developping PC), on remote server that belong to my company (i just installed .net 3.5 on that server)

I tried uploading the same site on 2 dufferents hosting, and finally i got the same error. What could gone wrong ? I tried contacting the hosting support but they work in ticketing system and this is extremely slow.

Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Could not load type 'CSSFriendly.MenuAdapter'.

Source Error:

[Code]....

Posted: Apr 20, 2010 10:05 PM

View 4 Replies!   View Related
AJAX :: Can AutoCompleteExtender Be Used With Wcf Services Hosted In Remote Web Servers
I have added a service reference to my web application project

The service is in a remote location [URL]
it has a method

[code]....

How can I use that remote web method for autocompleteextender ?

Posted: Jul 30, 2010 02:03 PM

View 3 Replies!   View Related
Configuration :: Global.asax Email Not Working In Test Or Production But Works On Hosted Site
I have a hosted site and just added some additional error notification to my global.asax file and works like a charm. I decided to add the same logic to our test server and it doesnt work. The server.transfer never happens and the email never gets updated.Now i know the email works on the testandproduction server since we have other pages that use the same SMTP server name and setup as i have in theglobal file. Below is my code as itis in the file now. I setup a test page to cause an error and the page displays the detailed error which we dont want. But i would like to be notified if this happens. What am i missing? I can only assume that its a IIS confige issue, since the exact same code works on a hosted site, but not at work on our test or production servers. Here is the code i have in the global.asax

[Code]....

Posted: Apr 12, 2010 07:16 PM

View 18 Replies!   View Related
AJAX :: ItemCommand Event Of A Datalist Works On Pc But Not Works On Server
I have an asp.net page that includes several updatePanels and a gridview, a datalist and etc.

gridView control contains some templateItems with imageButton that works fine both on my pc and my server.

DataList control contains a LinkButton that works fine on my pc but not working on my server!

it seems that itemCommand event not fire on server but fire fine on my pc

datalist code:

[Code]....

Posted: Nov 21, 2009 06:58 PM

View 2 Replies!   View Related
Secure IIS Hosted WCF Service For Access Via IE Hosted WinForms User Control
I have an ASP.Net site using Forms authentication. One of the aspx pages loads a WinForms user control hosted in IE. That control must connect with a WCF service located in the same ASP.Net web site.How can I make the WCF service secure? Currently I have set the WCF service to use AspNetCompatibilityRequirements mode but the user control hosted in IE can't connect to the WCF service as it isn't logged in.

Posted: Feb 2 at 13:02

View 1 Replies!   View Related
Why Does Ajax Work Locally But Not On Server
i've created an ajax test call that works locally, but when i upload to my hosts(2 of them) i get nothing. My sample page is: Linkage to test page.

my code is as follows:

[Code]....

Posted: Oct 4 10

View 8 Replies!   View Related
Fine Locally But Not On Server (HTTP 400 Error)
Im in the middle of making another website, and im trying out making a xml sitemap on the fly. Locally it seems to work fine... I can view the file in my browser perfectly but when I upload the site I get a 'HTTP 400 (Bad Request)' error. The page im having problems with is [URL]/sitemap.aspx It *should* (and does on my PC) look like the following:

Code:
<?xml version=""1.0"" encoding=""UTF-8""?>
<urlset xmlns="[URL]/schemas/sitemap/0.9">
<url>
<loc>[URL]wii-cheats/marvel-ultimate-alliance-1043.aspx</loc>
</url>
</urlset>

but obviously with many more links in it.

Posted: May 11, 2009, 10:41

View 2 Replies!   View Related
Web Forms :: Dynamic Controls Not Getting Generated Locally But Not When I Put The Page On Server.
I have following code and Javascript in my aspx page and my aspx page has a master page:-

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<script language = "javascript" type = "text/javascript">
function GenerateNew() {
var tblRow = document.getElementById("ctl00_ContentPlaceHolder1_tblRow");
var tr = document.createElement("tr");
var td = document.createElement("td");
var txt = document.createElement("input");
var theValue = document.getElementById("theValue");
theValue.value = parseInt(theValue.value) + 1;
i = theValue.value;
tr.setAttribute("id", "tr" + i);
td.appendChild(txt);
tr.appendChild(td);
tblRow.appendChild(tr);
}
function RemoveRow() {
var tblRow = document.getElementById("ctl00_ContentPlaceHolder1_tblRow");
var Val = document.getElementById("theValue");
for (var i = 1; i <= Val.value; i++) {
var RowToBeDeleted = document.getElementById('tr' + i);
if (RowToBeDeleted != null) {
tblRow.removeChild(RowToBeDeleted);
}
}
}
</script>
<asp:Table ID="tblRow" runat="server">
<asp:TableRow>
<asp:TableCell>
</asp:TableCell>
</asp:TableRow>
</asp:Table>
<input type = "hidden" id = "theValue" value = "0" /><input id="Button2" type="button" value="Insert Record From JS" onclick = "GenerateNew()" />
<input id="Button3" type="button" value="Remove From JS" onclick = "RemoveRow()" />
</asp:Content>

This JS code generatesa dynamic textbox and adds it to the existing table <asp:Table>. It works perfectly when I run it locally, however it doesn't work when I put it on the server.

This issue is only with IE, other browsers like Firefox and Chrome works perfectly fine locally and at server but IE works only locally not at the server. I am using IE 8 (OR 8.0.6001.18702 to be precise) and IIS 5.1.

Posted: Mar 18, 2010 09:05 AM

View 3 Replies!   View Related
Web Forms :: File Transfer Between 2 Pcs Locally(server And Client) Using C# Codings?
how do i do a file transfer between 2 pcs locally(server and client) using c# codings?

Posted: Oct 12, 2009 03:09 AM

View 2 Replies!   View Related
SQL Server :: Implications Of Not Closing An Open Connection Declared Locally?
I was wondering about something. I'm supporting a .NET C# application which has a number of database connections declared locally asIDbConnection with MS SQL Server and NHibernate. These connections are declared locally and not explicitly closed after a specificoperation is performed. Are these connections automatically closed after the local method is executed, or could these connections be floating around somewhere? We're having semaphore max out problems, and I'm trying to see if this may be the culprit. I'm doubtful, as I believe these connections would automatically close, but thought I'd throw out hte possibility.

Posted: Oct 05, 2010 01:38 PM

View 1 Replies!   View Related
Forms Data Controls :: Pager Does Not Show On Prod Server While Working OK Locally
I setup paging in GridView and it works oK in VS2005 locally but does not show when I move the page to prod server. I use masterpage, so GridView in in the Content placeholder...

Posted: May 20, 2010 12:59 PM

View 5 Replies!   View Related
Set Hosted Server Time According To Country
I have hosted my website , but my vendor's server is lying in canada.But i have used all system.Datetime.Now() for date operations, whereas my clients are from india and it shows me 12 hours difference. How can i map this time zone? I don't want to store the client's machine time but only server end time.

Posted: Apr 09, 2010 12:26 PM

View 12 Replies!   View Related
IP Address Of Machine Not Hosted Server IP?
I want to get ip address of client machine Like I opened website on my machine which is hosted on any server So i need IP address of my machine not hosted server IP.

Posted: Dec 14 10 at 4:18

View 2 Replies!   View Related
File Stream Path On Hosted Server
I am trying to filestream to my hosting Companies sever.I have triedthe belowexpecting it would not work. How can I find the correct path.Could not find a part of the path 'C:ERAPDFERA202.60.64.136.1.pdf'.

Exception Details: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:ERAPDFERA202.60.64.136.1.pdf'.

Source Error:
[Code]....

Posted: Mar 19, 2011 11:43 PM

View 2 Replies!   View Related
Error Sending Email On Asp.net From Hosted Server
I receiving an error when sending email from an asp.net page on a hosted server.Below is the code and error;

MailAddress from = new MailAddress("email@home.com");
MailAddress to = new MailAddress('ToMe@something.com");
using (MailMessage message = new MailMessage(from,to))
message.Subject = "Something";
message.Body = "Something is the body";
[code]...

Posted: Jan 19, 2011 09:53 PM

View 2 Replies!   View Related
Configuration :: Application Developed In 2.0 To Be Hosted On Server With 3.5?
I have an ASP.Net Ajax application that has been built on .net 2.0. My company recently installed a brand new server which has .net 3.5 installed. Is it possible for me to host my application on this server without the .net 2.0 ?

Posted: May 08, 2010 06:32 AM

View 1 Replies!   View Related
MVC :: 2 + Hosted Server + Iis6 ... Homepage - 403 Error
I deplyed a mvc 2 site on a shared server with IIS6. All the pages are working except for the homepage. This is

[Code]....

And the routes:

[Code]....

The [URL] works, the [URL] throw a 403 error and says:

[Code]....

Posted: Jun 24, 2010 12:59 PM

View 6 Replies!   View Related
.NET Website Require To Be Hosted On Windows Server?
If I develop a website using VS2008 using C#, etc, does it require hosting on a Windows server or can it be hosted on any http server?

Posted: May 15, 2009 08:40 PM

View 2 Replies!   View Related
Configuration :: Read Webconfig From The Hosted Server?
I am facing strange problem. I have a database connection string inweb.config. I amnot able to read web.config file. Its perfectly workingin our server and my system also. After hosted in outside server,i am not able to read web.config file at all. What could be the problem.

Posted: Dec 27, 2010 06:14 AM

View 18 Replies!   View Related
DataSource Controls :: How To Insert Data From Local SQL Server To Remote SQL Server (without Using Linked Server)
How to insert data from local SQL server to remote SQL server (without using linked server) like below?

insert * into [remote server].[northwind].orders
from [local server].[northwind].orders

Posted: Apr 15, 2010 05:56 PM

View 4 Replies!   View Related
SQL Server :: Aspnetdb On Hosted Server?
not sure if this is the right place for this and I AM sure that you'll have seen posts like this before...In short, how do I go about replicating the aspnetdb on my hosted server? I would like to avoid manually copying all the tables and relationships.

Posted: Jul 24, 2010 02:24 PM

View 4 Replies!   View Related
Import Database From Harddisk To Shared Hosted Server?
I created a database with VWD and would like to publish it on the server (shared hosting).

I tried out 'Database Publishing Wizard', but I can't select the database since its on my harddisk and not on a server.

Posted: Jun 06, 2009 12:41 PM

View 1 Replies!   View Related
Copyright 2005-08 www.BigResource.com, All rights reserved