Web Forms :: Different Assets Loading On Different Servers?
Sep 17, 2010
We have following issue. In our environment our application works well, but in clients host - bad. The first problem was that if css's href specified as href="css/res.css" in case of url http://oursite.com/blog/10/2010 it tries to load it from the path http://oursite.com/blog/10/2010/css/res.css. In our environment it loads it from http://oursite.com/css/res.css. So we fixed this problem by replacing href="css/res.css" to href="/css/res.css" (added slash). It worked.
Second problem: we integrated in our site as part of app BlogEngine 1.4.5. It is placed in subfolder in app's directory called "Blog". When admin tries to delete post, BlogEngine tries to redirect to some non existing page with specified name (which is title of the post) with query string "deletePost=postId". In our environment it works as expected, but in clients - it doesn't work. My browser follows this link and I see home page of my site (which is default.aspx from the root).
View 1 Replies
Similar Messages:
Nov 16, 2010
I am trying to set up my web site on a stand alone server using Windows Server 2003 with IIS 6 which will access SQL server database (2008) on windows 2008 R2 server (also not in the domain) I am using form authentication and I have configured a custom identity account in IIS6. The local account is on both servers with same password and I have registered the account using aspnet_regiis.exe -ga The application pool in my iis6 has the custom local account set as the identity and my web.config file has the appropriate tags in the system.web element <identity impersonate="true" />
The problem is the local account does not seem to get passed to the sql server. Right now my iis settings are anonymous access (using the local acct vs isr) and no authentication specified under that - I did try Integrated and basic but it prompts for the username and password which I do not want. One article I read stated this: windows authentication does not support delegation (passing credentials from one server to another) and is limited to the one hop rule, only a primary token can be passed to a second server. windows
authentication on iis (all versions) gives the thread a secondary(impersonation) token which can not be used to access any network resouce
View 1 Replies
Aug 30, 2010
How to upload a file to two different servers
Here is Code behind:
Protected Sub btnUpload_Click(ByVal sender
As Object, ByVal e As System.EventArgs)
Handles btnUpload.Click
Dim fileExt As String
fileExt = System.IO.Path.GetExtension(FileUpload1.FileName)
If (fileExt <> ".exe") Then........
View 4 Replies
Mar 7, 2011
I have two applications with a single domain name ([URL] and [URL]). First one has been developed in .NET 2 and the other one with .NET 4. I have configured web.config as these steps:
1- I've set the same machine key for both of them.
2- I've set the coockie name.
3- I've set the domain name to "domain.com".
4- Also, I've set hardcoded coockie domain name to "domain.com" .
Everything was working fine when both of them were running on a single web server. Recently, I've been asked to move test.domain.com to another server. After moving, authentication ticket is not valid on the second server. I tested both of them on a single server again and everything was workinh fine, but in two servers users can't acces to test.domain.com. (Authentication Ticket is invalid)
Edited: The second server is a virtual (VMWare) server. I don't have any problem in physical servers. I checked the server's time to be synchronized. I also used fiddler to see if the server does not get the auth ticket and ther ticket is sent to the 2nd server. Note: Servers are located in different networks and maybe proxy or firewall causes this (I've no idea)
View 3 Replies
Jan 30, 2010
How do i store same file into multiple servers? My scenario is explained below Administrator module resides in production server ( "cccc" domain) which is accessible only within my company. Common module resides in DMZ and can be accessed by internet users. I have written a program to upload a .xls file to both the servers. My program is in administrator module and resides in cccc domain. I could upload the file to the server in my company but i cant upload it in DMZ. Following is the code to upload to ccc domain
FileInput.PostedFile.SaveAs(Server.MapPath("..TU" & ServerFileName))
Followins is the code to upload to dmz
FileInput.PostedFile.SaveAs("http://grtr/" & "/TU/" & ServerFileName) I will get the serverfilename using file upload control
View 4 Replies
Mar 6, 2013
I have update panel on the page to avoid postback and placed a dropdownlist control within that update panel. DrodownList is filled with Category names and also it's autopostback set to True.
Now whenever dropdownlist index change's on select, untill page loads complete data it should show mesage as "Loading.... in center and middle of the page and background should become bit transparent". And when page load completely with data then that background and message should get disappear.
View 1 Replies
Apr 3, 2010
i have developed my asp.net application along wih crystal report .... i need to show loading image on ever client and server side request .... (i.e) like when ever IE progress bar get loading i want to show my gif loading ... after IE progress bar finish its loading, my gif loading image should disappear .
View 2 Replies
Sep 14, 2010
Can we upload and download files from remote servers through code without using FTP?
View 2 Replies
Jun 29, 2010
There is a textbox, a visitor inputs a domain or ip address after that a gridview shows how many domains are there on the ip address.
View 3 Replies
Jun 23, 2010
I want to display a loading animation while my page is loading, and when loading is complete then obviously hide it.
I am working in ASP.NET using Masterpages, just wondering there is a a simple way of doing this using JQuery?
View 3 Replies
Apr 6, 2010
I'm planning on making a website and host it on my dedicated server.but I would also like the website to be available when the dedicated server (from here on revered to as server) is offline for what reason that maybe.How would I go about doing this? the server would get the domain name from my webserver. I already set up the DNS's to do so, but incase the server cannot be contacted I would like the webserver to take over or something?
View 10 Replies
Sep 2, 2010
Are there any free build servers for .NET applications? We are starting project as remotely working team and right now we are searching for such solution. As far as it's an academic project we do not have funds to buy server and run CC.net on it.. Are there any charge free solutions? Or at least cheap ones.I'm asking rather about the service on the internet, not software solution
View 6 Replies
Mar 3, 2010
I want to set up a continuous integration / build server for a C# ASP.net MVC project. I'm aware of cruise control.net, what other build servers are out there and what are the advantages or disadvantages of each?
Is there any particular one that is generally considered the one to have?
View 1 Replies
Mar 25, 2010
without using a database i wanted a file to point to the newest revision of a file. Someone suggested using a shortcut. Knowing i can rewrite file.ext to file.ext.lnk i thought it was a great idea. Then i tried it, my server (VS 2010rc) serves the shortcut rather then the file. Not what i wanted...How do i serve the file the shortcut is pointing to? NOTE: I am planing to use windows 2008 as my server so a solution should work on that as well. The OS i am running is windows 7.
View 4 Replies
Feb 9, 2010
My goal is to generate emails inside of my Asp/VB.net program. After following instructions very carefully using http://www.4guysfromrolla.com/articles/072606-1.aspx some stackoverflow users helped me modify my class object on the asp.net page. We also revised my host/port settings in the web.config file. I still throw an exception when I try to send email which says 'Unable to connect to remote server.' After talking to the godaddy.com tech support they said I need to use the incomming server pop.secureserver.net and the outgoing server smtpout.secureserver.net. He had no further clarification. My question is, how do I set up the incomming and outgoing servers?
View 1 Replies
Jan 18, 2011
We have installed a web site written by others which is compiled with Visual Studio 2008 and hosted in Windows server 2008 R2.
The IIS connection timeout is set to 120 seconds. But for some pages, the first page loading fails with HTTP 404 error but sequential refresh can bring the page up. The same problem happens for some images which fail to load in web pages. We are not very sure it is network related issue or hosting issue.
View 1 Replies
Mar 6, 2010
I see a ton of questions about uploading multiple files, but none about uploading a single file to multiple servers, so here goes... I have an ASP.NET app that will be running on two load balanced servers, and I would like to allow users to upload files and have them end up on both servers. What is the cleanest way to do this? I am using IIS 6 btw. Some ideas that come to mind are:
1) Use a virtual directory that points to some shared location that both servers can access. Will there be any access issues if the application runs at Network Service? I'm assuming the application will need to run as a user account that exists on the shared location machine. How should the permissions be set for this?
2) It would be nice if I could via jQuery post the request to both of my servers, referencing them by their port numbers. Even though the servers are on the same domain, this violates the same origin policy, right? Is there another solution I'm overlooking? How do other sites do this?
View 4 Replies
Mar 22, 2011
I am developing a web application and need to continue development while travelling. I have SQL Server express installed on my desktop and my laptop but (obviously) the server names differ on each machine. eg "MydesktopSQLSERVEREXPRESS" and "MyLaptopSQLSERVEREXPRESS".
Anyone know of a way I can use a generic connection string or something so I can simply transfer the solution file from my desktop to my laptop and continue development on the road?
View 2 Replies
Aug 22, 2010
I have a web application that will be distributed over 2 servers and the Database will be on a server other than the 2 servers. so application on each server will access database exists in another server.I am using caching in the application and when data changed the cache is cleared and the problem now how each server will feel with cache changes on the other server?
I have tried SQLCache dependency before and i have heard about Memcached, Velocity and Enterprise cache so which one will be more efficient and optimal for this case? and i have another solution to create webservice method on each application and when the cache is cleared in one application it will request the webservice method on the other application to clear cache there.
Which technique is more efficient and optimal in performance and security? and is SQLCache dependency related to SQL database only or can be applicable to other databases like Oracle?
Note: I am using load balancer to distribute requests coming for the application among the 2 server
View 1 Replies
Jan 1, 2010
I have an ASP.NET website which is running currently on IIS. Now I want to move that site to run on Cassini.
What are the advantages of Cassini over IIS? What are its disadvantages?
What are your experiences using Cassini as a production web-server?
View 5 Replies
Dec 27, 2010
i have searched quite a bit on this one and can't seem to find exactly what I am looking for.
I think my first problem is this: How would I bring back a DataTable FOR copying? I know I would need:
Dim dt as Datatable
But then how do I get the Original Datatable in there? I think that once I have that part, I can just make a connection to my new DB inside a copy subroutine (using the .Copy method) and be done with it. That part I have the code pretty much done for, I think.
View 7 Replies
Sep 6, 2010
How can I access remote server's details like RAM details, CPU details etc with a ASP.NET application. I used System.Management class and wmi but the application runs too slow. Is there any another way to do this which is fast and efficient.
View 4 Replies
Feb 13, 2011
If same web application is deployed on three different servers, which things we need to take care of and what things should be common amonges all three?
View 3 Replies
Sep 21, 2010
I am new to asp.net.I want to know names of web servers used for deploying web applications in asp.net .some widely used web servers for making asp.net web sites.
View 3 Replies
Jan 5, 2011
We are using Two servers for our application managed by a load balancer. One of which server contains Windows server 2003 & other one contains Windows server 2008. When a request is served by windows 2003 server and its subsequent goes to the other one (2008 server). Users gets log out. Are we need same Operating systems on both systems because( when request served by 2008, and subsequent on 2003 is served without any issue).
View 1 Replies