.net - Web Application Working In VS Development Server But Don't Work In IIS?

Jul 6, 2010

I've a ASP.Net application which utilizes SQL Server Stored Procedures and Web Services using Windows Authentication. The idea is to use the logged in user credentials for invoking the web service (This is critical since the web service use the authentication credentials to assign the owner of the created or updated record) and for executing the stored procedure.When I am using VS.Net integrated web server the result is just fine (May be because this server starts under current logged in user account) The SQL Server SP returns expected results (Even when I execute them from Query Analyzer) and web service credentials is set correctly to the current logged in user. However when I host the application in local IIS it's not working as expectedly. The Sql Server stored procedure returns EMPTY dataset and web service credentials is set to empty.I am using

myService.Credentials = System.Net.CredentialsCache.DefaultCredentials

Bothe the web service host virtual directory and my application virtual directory is using Windows Authentication in Directory Security of IIS.

View 3 Replies


Similar Messages:

JavaScript - An Application Is Working On One Server But Doesn't Work On Another

Oct 11, 2010

I have a new web application. I've setup the application and it's working on one server(xxx) but it's not working on another(yyy). I changed the web.config file(checked throughly and I've changed the connection string and appsettings).

What could be the error?

The login page is working but when I proceed a Javascript error occurs...

(Line: 48 Error: Object doesn't support this property or method)

Here's the code

[code]....

View 3 Replies

How To Get Visual Studio Development Server To Work With PHP

Jan 26, 2011

I'm a .NET specialist working with a PHP/Flash programmer to deliver an app via IIS. After jumping through 17 hoops of fire and defeating a gargoyle in a gruesome battle to the death, I managed to get my IIS 7.5 server to cooperate with PHP, and now if you browse to my public web site, you can see the Flash objects happily doing their behind-the-scenes stuff with PHP, whatever that may be.

But... when I'm debugging my app using the VS Development Server, that still apparently doesn't know how to cope with PHP: I'm getting the same HTTP 405 (Method Not Allowed) errors that I was getting on IIS before aforementioned gargoyle breathed its last ("The HTTP verb POST used to access path '/php/blah.php' is not allowed.").

So, what do you have to do to get the VS Dev Server to play nice with PHP?

View 3 Replies

'urlMappings' Not Working On Server But Working In Development?

Feb 12, 2010

I have created a dynamic Robots.txt file for my application and I have created an redirect entry in my web config in the <system.web> section and it works perfectly in my development environment but once I uploaded the file to my server it does not work and gives me an error 404.Requested URLhttp://www.canadawelcome.ca:80/robots.txt

Physical Path
E:webcanadawelc1htdocs
obots.txt

This is what I have added to my system.web section

View 1 Replies

System.Diagnostics.Process.Start Not Work With IIS, But On Development Server?

Jul 26, 2010

System.Diagnostics.Process.Start not work with IIS, but on ASP.NET Development Server

View 3 Replies

.net Development Server Session Not Working?

Feb 7, 2011

how can I work with 'session' while working on visual studio asp.net development server please? as I found its not working there but working with iis

View 1 Replies

HttpModule In Global Web.config Working With VS Development Server But Not With IIS 7.0

Jun 29, 2010

I created a http Module following this tutorial. The module just displays a simple "Hello from OnBeginRequest in custom module.".I've referenced it in web.config and then, to satisfy my scenario (at work we need to see a module in action for all websites on a server, with the minimal configuration) I installed the module in the GAC, then I edited the "global" web.config in order tomake the module work for all the my web applications

View 1 Replies

Visual Studio :: Development Server Has Stopped Working?

Jan 6, 2010

Came into work this morning and discovered that my local asp.net developmentn server has stopped working. Im getting the following page :

[Code]....

Im running visual studio of my personal PC withing my company's network.

View 3 Replies

Web Forms :: Functionality Working In Development System But Not In Production Server

Feb 11, 2012

I have a functionality working ( functionality for making controls visible / true false ) on my development system having windows 2008.

But the same is not working on  production server having windows 2003 on IE.

View 1 Replies

Configuration :: How To Upload A Web Application And SQL Database ON Development Server.

Jun 17, 2010

I never host any web application on the development server.I learn the tutorial how to copy the file using file zilla FTP client.But question is raised, how can I link my sql server machine to Http development server.And how can I configure my database on the development server.What at all DNS setting is require?

Finally All I need is , upload a web application and SQL server database on development server.

View 1 Replies

Security :: Login OK On Development Server, But Login Failed On Work Server?

Feb 3, 2010

I have just turned on all membership infrastructure, maked an "Administrator" and successfully logined using standard LoginForm control.But when I uploaded my website on hosting server, I couldn't login anymore.I have MachineKey in web.config. Perhaps I need to set something on server (it is my VDS).

View 5 Replies

Web Forms :: When Use PrinceXML To Convert A Webpage To A Pdf, The Local Development Server Stops Working?

Apr 16, 2010

It somethimes happens that, when I use PrinceXML to convert a webpage to a pdf, the local ASP.NET Development Server stops working...It popups the message "ASP.NET Development Server stops has stopped working"

View 4 Replies

Visual Studio :: Scripts Working Fine On Development System But On Server Getting Errors?

Mar 4, 2010

I have a Web App (VS 2010 Beta 2, using VB) and it works flawlessly on the development system. When I publish it, everything works fine unless I use an update panel. If I use the update panel, and try to use something such as a dragpanel, I get the following error.

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C; .NET4.0E)
Timestamp: Thu, 4 Mar 2010 14:54:25 UTC

Message: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 404

Line: 784
Char: 13
Code: 0

View 7 Replies

Visual Studio :: Errors While Trying To Run Web Application - Unable To Connect To Development Server

Sep 29, 2010

I got these errors while trying to run a web application using vs 2008, The first error is this: >Application has generated an exception that could not be handled. >process ID=0x1130 (4400), Thread ID=0xe6c (3692). And when I press OK a second dialog reports this error:>unable to connect to the asp.net development server. I reinstalled, repaired and re registered msdbg2.dll and edited hosts file but still get this error. I need to debug an application but I can't. This error is on a 'Win 2003 server enrterprise service pack 1' with a vs2008 team system installation. What can I do to remove this error and run and debug my application?

View 1 Replies

Visual Studio 2008 - Test Multiple Domains Using Web Application Development Server?

Mar 25, 2010

I am developing a single web application that will dynamically change its content depending on which domain name is used to reach the site. Multiple domains will point to the same application. I wish to use the following code (or something close) to detect the domain name and perform the customizations:

[code]....

I would like to test the functionality of the above using the ASP.NET development server. I created mappings in the local HOSTS file to map [URL] to 127.0.0.1, and [URL] to 127.0.0.1. I then browse to the application with the browser using [URL] (etc).

When I try to test this code using the ASP.net development server the [URL] always says localhost. It does NOT capture the host entered in the browser, only localhost.

Is there a way to test the URL detection functionality using the development server?

View 1 Replies

Security :: VS2008 Development Server (local Host) & Hosted IIS7 Site Different Configuration - How To Test Application

Mar 19, 2010

How can I test an application that I am publishing to a remote provider's IIS7 hosted site, with the VS2008 development server that is built in with VS2008 on an XP Machine?

My membership/roles work perfectly up on the remote host. On ths hosted IIS7 site when I try to access a secure directory it redirects to login, and I am able to login, however when I launch (debug - F5) from VS2008, it will provide that folder/resource, no questions asked. Same build, config, etc... nothing has changed.

I am running XP, and local IIS version installed is 5.1.

My guess is what is happening is that the new format required in the web.config is configured properly for IIS7 deployment, which is why it works remotely, but when running locally through VS2008/XP it is running with an older version on IIS and does not recoginize the new tags.

View 3 Replies

C# - Application Finds Local Resource Files In Web Development Server But Not Local IIS

Sep 22, 2010

When I run the application using the Web Developer it works fine. However when I run it using local IIS I get the following error:

The resource class for this page was not found. check if the resource file exists and try again. 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.InvalidOperationException: The resource class for this page was not found. heck if the resource file exists and try again.

Source Error:

Line 81: private void PopulateLanguageList()
Line 82: {
Line 83: DropDownListLanguage.Items[0].Text = (string)HttpContext.GetLocalResourceObject(
Line 84: "Default.aspx", SelectLanguage, Thread.CurrentThread.CurrentCulture);
Line 85: }

Stack Trace:

[InvalidOperationException: The resource class for this page was not found. Please check if the resource file exists and try again.]
System.Web.Compilation.LocalResXResourceProvider.CreateResourceManager() +4038050
System.Web.Compilation.BaseResXResourceProvider.EnsureResourceManager() +23
System.Web.Compilation.BaseResXResourceProvider.GetObject(String resourceKey, CultureInfo culture) +24
System.Web.Compilation.ResourceExpressionBuilder.GetResourceObject(IResourceProvider resourceProvider, String resourceKey, CultureInfo culture, Type objType, String propName) +32
System.Web.HttpContext.GetLocalResourceObject(String virtualPath, String resourceKey, CultureInfo culture) +56
APPortal.Login.PopulateLanguageList() in c:inetpubwwwrootAPPortalDefault.aspx.cs:83
APPortal.Login.Page_Load(Object sender, EventArgs e) in c:inetpubwwwrootAPPortalDefault.aspx.cs:20
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42
System.Web.UI.Control.OnLoad(EventArgs e) +132
System.Web.UI.Control.LoadRecursive() +66
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428

View 1 Replies

Run ASP.NET Development Server "virtual Path" As An Application?

Oct 5, 2010

I want to run my new web application with forms authentication under the ASP.NET Development WebServer (Cassini), but not at site root "/" (rather, at the path it will reside in production; "/New").However, the build process gives the error:

"It is an error to use a section
registered as
allowDefinition='MachineToApplication'
beyond application level.This error can be caused by a virtual directory not being configured as an application in IIS.
New.MvcWebobjdebugcsautoparameterizeoriginalweb.config"

Now, I understand what it is saying.I have forms authentication enabled in my web.config in a virtual directory.The error goes away when I remove the web.config, or remove the "virtual path: /New" debugger configuration, or move debugging from Cassini to IIS and manually create an application at "/New".

But it is only a 'virtual' directory in the mind of the Build System. The path IS application-enabled in a production IIS setting. Also, if I remove the web.config, Cassini will happily publish "http://localhost/New" as an application (for example, Server.MapPath("~") returns my project directory without the "/New" suffix); however I need forms authentication (an application-level web.config parameter) enabled in it.How I can avoid this build error while retaining my desired features?

The project is currently configured for "file-system" site development. This and Cassini are supposed to make it easier for my content creators to participate in development and testing with their local copy of VS2010, without having to install IIS on their Windows PCs. I will also one-click publish to my local IIS for testing, then package/publish/deploy to public test, then finally publish to production. In my mind I imagine Cassini being a very helpful part of this whole process.

VS2010, MVC application, file-system site project

Project Settings:
* ASP.NET 4.0
* Use Visual Studio Development Server
* Virtual Path: /New

[code]...

View 2 Replies

Configuration :: Compile Code Working In Localhost, But Can't Work On Server?

Jan 18, 2011

I previously crate website in framework 2.0 before one year and there is working good on server. But Currently I download same site on my local machine and configure again in Visual Studio 2008 with framework 2.0 compiler then do new changes on site and it running good on localhost.But the same code I upload on server again They can't work code properly.In new code I changes some XML file that retrieve data and save data, but I add new code in this XML file so it can't work with new code but previous code is working as good as previous.

View 3 Replies

IIS Configuration :: Website Working Fine On Local But Does Not Work On Server

Jan 4, 2013

In my site on every load some session is made through url and single page(say xyz.aspx) is call every time and on the basis of url we create session. When i click on a href tag , page start reloading ,url we created is accurate but data doesn't change every time, means some time it show data on first click, but some time after 3 or 4 click.

I say problem is weird because when i run this on my local server there is no problem, when i run this on my project (visual studio) there is no problem , but when i up this project on my online server it show this kind of error but not every time .

I use data caching to fill dataset. There is no problem in this website since we created this (more than 1 year) and we don't made any change on this page but suddenly it starts showing this kind of error so what kind of error this is.

View 1 Replies

AJAX Control Work Fine On Local Host But Not Working On Server?

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

Configuration :: Web Application Does Not Work After Moving To A New IIS Server?

Jan 20, 2011

I have an app that works fine . I build up a new iis box and the settings is similar to the existing iis box. however, my application is not working anymore. althought I created similiar environment, but not working,I get access denied from the Database for some pages and other pages it hit the database. is there anything I can do to make it work.

View 4 Replies

DataSource Controls :: Work With Indexes In Sql Server To Make Application Performacnce Good?

Apr 26, 2010

can you let me any links which explains about using indexes in sqlserver.

View 2 Replies

SQL Server :: New Off Line Application Working With Sdf File?

Aug 20, 2010

I am working on a project currently where I need to get data out of a 3rd party vendor's software that uses a .sdf file I looked this up and its a SQL CE file. I was hoping to just link to with with access but thats apparently not going to happen. I need to link to the database extract data from it to a csv file for later use. I also and most important I need to get the data from it and create a report that can be printed while on a customers site that my or may not have web access so I need for this program to be on and off line. I had my webapplication that I have been working on open and was able to bring up the sdf file under the server exploere however I can't seem to get anything out of it when I try to do grid views or detail views errors out.

Can I use one of Visual Studio projects to create this sort of applicaiton if so what would be the best approach. I would love to get an access odbc driver since office is allready installed on the employee's laptop's

View 1 Replies

Unable Run Application Getting Error "unable To Connect Development Server"

Jan 25, 2011

I am using an Visual studio 2010 ultimate edition. And here i have getting an error " unable to connect to the asp.net development server " while i try to run the Web Application by pressing F5 key from Web Application Project. Can any tell me whats the problem and how can i resolve it.

View 3 Replies







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