Web Forms :: Locally It Works Fine - But Deployed To The Web Serve It Gives A Windows Prompt?

Jan 6, 2010

This is very strange behaviour from my login control - locally it works fine - But deployed to the web server (With an external hosting company) it gives a windows prompt, even though the authorisation is set to "Forms".Here is my web.config file:

[Code]....

View 13 Replies


Similar Messages:

Configuration :: Web Service Works Locally But Not When Deployed?

May 28, 2010

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]....

View 2 Replies

C# - Asmx Webservice Works Locally But Not When Deployed On Remote IIS 7

Sep 25, 2010

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.

View 2 Replies

Configuration :: Website Works Fine Locally But Makes Error On Shared Hosting?

Apr 20, 2010

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]....

View 4 Replies

Visual Studio :: Call To The Class Library From The Windows Form Application Works Fine?

Aug 12, 2010

I have a windows service that calls a class library. The call to the Class library from the windows form application works fine. But from the service I do get the desired output. The event viewer does not report any error. The service was working fine until the recently when the server got remastered. Any suggestions what might have gone wrong?

View 2 Replies

VS 2008 Web Deployment MSI Built On XP Works Fine, But MSI Built On Windows 7 Does Not Work?

Mar 24, 2010

I'm running into a weird issue that I can't find an answer for anywhere I've looked (and I've looked a ton).I built a web deployment project with Visual Studio 2008 Team System on my old Win XP machine. This has always worked flawlessly and installed everywhere. I can also copy this MSI to my new Windows 7 Ultimate machine and it again installs just fine.

HOWEVER, when I rebuild that exact same web deployment project on my new Win7 machine, also using VS2008, the MSI will build OK, but when I then run it to install my software I get a dialog box telling me "the installer was interrupted." Interestingly, when I built this MSI in my new environment one additional warning popped up during the build process, which was "Unable to copy the schema file '(null)'"After many searches and reading different web pages, I know this has to do with these two registry keys:

[HKEY_LOCAL_MACHINESOFTWAREMicrosoftVisualStudio9.0DeploymentSchema]
"DefaultMSISchemaFile"="c:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\Deployment\Vspkgs\..\VsdSchema\Schema.msi"
"DefaultMSMSchemaFile"="c:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\Deployment\Vspkgs\..\VsdSchema\Schema.msm"

Yet, everything checks out. All permissions are correctly configured, etc., etc.Then, when I enable the built-in administrator account and log in as that, and then rebuild this same web deployment MSI the "Unable to copy the schema file '(null)'" warning no longer appears. Then when I log back out, log back in as myself and then run this newly built MSI it installs fine, just like the original one that was built on XP.I also tried uninstalling VS2008 and re-installing it as the super user, but that also didn't change anything. And yes, I did also configure devenv.exe to run as administrator.

Has anybody seen this? Or is it a requirement that you can only compile deployment projects as the super user? That cannot be right.I've been thrashing for more than five days and for the life of me cannot figure this out. Of course, I can run as the super user when developing, but I thought the new security model in Win7 was designed exactly so you don't have to.

View 1 Replies

Configuration :: Access Locally Deployed Site Through Domain?

Jul 26, 2010

I have asp.net website deployed on local server

And also i have a domain name

What i want that i want to integrate my locally deployed site with domain name.

(I have live(public) IP address as well)

View 1 Replies

Web Forms :: VS 2005 - MS Outlook Works Locally But Not From Server?

Apr 16, 2010

I have a button on a page that when clicked should 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 the web server, when I click the button, nothing happens.Can you tell me what is wrong? Below is the function I am using:

[Code]....

View 4 Replies

Web Forms :: Url Rewriting Not Working On Live Server In Asp.net But Locally Working Fine

Feb 23, 2010

Url rewriting not working on live server in asp.net but locally working fine. but locally it's not case sensitive.

View 1 Replies

Web Forms :: TypeConverter Fails In ASPX, Works Fine In Console Application?

May 28, 2010

I have a TypeConverter (I followed this example to a 'T' ). It works perfectly within a console application but I get the dreaded "Unable to generate code for a value of type 'className'. This error occurred while trying to generate the property value for...".This appears in the Event Viewer as a "HttpParseException" with a description of "A parser error has occurred."

This occurs ONLY if I attempt to set the Property implementing the TypeConverter Attribute from within the ASPX, if I don't set the Property the page loads fine. Trouble is, becuase it is a Parse Error I am having a heck of a time debugging.

Again, this works fine within a console app, but only fials when used within an aspx app.

View 2 Replies

Web Forms :: SiteMapPath Not Working On Firefox / Chrome And Safari Works Fine On IE

Jun 6, 2012

SiteMap is not clickable on Firefox,Chrome and Safari But works perfecly fine on IE..Here is the code;

div.logintext {
position: relative;
top: 25%;
display: table-cell;
vertical-align: middle;
text-align: left;

[code]...

View 1 Replies

C# - Class Not Being Found Online But Works Locally?

Mar 26, 2010

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#.

View 1 Replies

Configuration :: Menu Works Locally But Not On Server?

Oct 8, 2010

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 the sitemap. why I can run it locally and use the menu, but I cannot use the menu on the server?

[Code]....

View 9 Replies

MVC3 - All Routing Works Locally But Not Remotely?

Feb 16, 2011

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.

View 1 Replies

Forms Data Controls :: Gridview With CSS For Alternative Page (Header Works Fine)

Jul 13, 2010

Did you have any issue to show background images in a gridview with IIS 7. I've exactly applied this [URL] and I've no idea why, my css works for the header but not for:

PagerStyle-CssClass="pgr"
AlternatingRowStyle-CssClass="alt"

The alternative row has no background image and the pager too but it works for the header. But when I browse the website online from my laptop, without IIS it works fine. When I check web developer tools from i.e., I've the backround image written in the css so it should come up.

View 1 Replies

WSDL Works Locally But Not When Hosted On A Remote Server

Sep 20, 2010

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

VS 2010 - Web Service Runs Locally But When Deployed Has Error Could Not Create Type Service

May 24, 2012

I developed a web service in VS2010 on my local machine, wrote a consumer of it also locally, and that all works.

I copied the dll and the asmx file to our server, and I am getting an error when I try to invoke it from a browser (also still on the server machine) to make sure it correctly exposes its web methods, but it is not, it is saying "Could not create type 'Service'". That error comes from this line:

Line 1: <%@ WebService Language="C#" CodeBehind="~/App_Code/WarrantyDuplicate.cs" Class="Service" %>
There other web services in the same folder on the server that all work fine so I don't believe it's an IIS setup thing.

This is my first web service in C# and when I created it in VS I did think it odd that the code behind file went into App_Code (as you can see from the line in the asmx file) and is just named dot-cs rather than asmx-dot-cs. But since it worked fine locally, I wasn't sure that mattered.

View 2 Replies

Application Works In Debug Mode But Not When Deployed To IIS?

Jan 26, 2011

I have an asp.net application which works fine in debug mode but gives a error when i access the default.aspx
after deploying to IIS.

View 4 Replies

Configuration :: C# Web Application Works In Debug But Not When Deployed To IIS?

Oct 27, 2010

I know there have been countless posts on these types of problems, and I have read through alot of them as well as doing Google searches, but I have not found anything that applies to my specific situation. If anyone has posted a similar question link me to the post with any appropriate derisive comments . Mods if this is the wrong forum feel free to move the post to the appropriate location.

I am a newbie C# developer. I have been getting my feet wet writing a C# web app for my department. I am using the following system:

Windows 7 Professional Visual Web Developer 2010 Version 10.0.30319.1 .Net framework 4.0.30319. IIS version 7.5.7600.16385 Internet Explorer 8.0.7600.16385CO SQL Server 2008 R2

When I run my application in the VWD debugger everything works fine and looks the way I want it to work. When I deploy to IIS (which is on the same box that I develop on) I start having some issues. Here is a breakdown of the problems I am having:

I have an asp:menu control with orientation set to horizontal. When I initially load the sitre after a deploy the menu displays correctly. But when I go to a different web page in the app the menu switches to vertical and the width of each menu item spans the width of the div that surrounds it. On the same page that causes issues with the asp:menu I also have asp:ComboBox controls that are used to filter information on the page. The combo boxes just look like text boxes. The data that should populate the boxes is not present.

I also have some ajax accordion controls contained in asp:updatepanels, neither of which work. The accordion controls are all expanded, and I cannot collapse them. If I trigger an update the entire page reloads instead of just the specific control.

I do not receive any errors when I browse to the page that causes the problems. It loads just fine everything is just jacked up. Like I said, everything works flawlessly in the VWD debugger. I know the VWD debugger does not use IIS, which makes me think this is an IIS issue, but I do not even know where to start to pinpoint the problem.

View 3 Replies

Url - Routing (in WebForms)not Working When Deployed Under IIS,Works In IDE?

Mar 17, 2010

I have an ASP.NET web application(webforms,not MVC) developed in VS 2008 and i have implemented ASP.NET web forms URL routing by following this link [URL]

It works pretty good when i run it on the Visual studion IDE.But does not works when i created a site under my IIS (IIS 5.1 in XP) and deployed the same files there.I have set ASP.NET version as 2.0 in the Properties window of my application too.But does not work.

View 3 Replies

Get Application Root From Request Object That Works Locally And Remotely?

Mar 15, 2011

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?

View 1 Replies

How To Produce A CSV File / Loop Works Fine

Sep 16, 2010

How can I produce a CSV file. My loop shown below works just fine.. I just don't know CSV part.

foreach (Employee data in e)
{
Console.WriteLine("{0}{1}",data.EmployeeId, data.FirstName);
}

View 3 Replies

Downloading Works Fine On Localhost But Not For IPAddress

Jun 7, 2010

I had code on Download.aspx for downloading different type of file like doc, xls, pdf etc. I usually call the page to download a file. In one of my instance i am calling this from a java script code which works fine for [URL] but if I put ipaddress instead of localhost then its not working.

View 2 Replies

MVC :: The Code Works Fine On The Local Devbox?

Aug 2, 2010

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?

View 4 Replies

Configuration Works Fine Only On Local Server?

Jun 22, 2010

i 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

View 6 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved