C# - How To Set Img Scr From A Server That Is Not Live But Connected With Live Server
May 8, 2010
I want to display photo of employee who is login but our company doesn't want to expose the photos of all employees publically that is why we put that employees photos on a server that is not live but connected with the live server.Now problem it that when I run my website on localhost the photos of employees display but as soon as I publish it on IIS it doesn't display images.
Live Chat is a very famous tool on websites, and the operators use a special web/windows interface to talk to the clients.What I want to implement is to specify some email accounts, and when the client click's the live chat and starts typing, his/her instant messages are delivered to the available email account. My operators can talk back to them as if they are on their friends list.I don't need to require any login or registration for clients to use this Live Chat.So are there any ideas about how to implement such a thing? Are there any good third-party-modules that already do that?
I am using a generic handler (indicator.ashx) to create a graphic that is overlayed from information from a table (called LIVE) from our SQL database. This is working very well and I am very happy with the results.
However I am having an undesirable issue where the query string that is used for this is also being accessed by another page (called ReceiveLive.aspx) which is populating our LIVE table with data when we don't want this. I have been able to track this issue down to our generic handler that seems to populate this table with data whenever the handler is accessed.
The query string that is used to access our graphic through our generic handler is http://mydomain.com/indicator.ashx?ID=ABC001.
Our other page that writes data to our LIVE database used the query string http://mydomain.com/live.aspx?ID=ABC001 which is normally only accessed by a small piece of software that sits on the users PC and sends the data when necessary.
My question is this: How do I prevent data from being written to our LIVE table via the Live.aspx page everytime a query string is processed by my indicator.ashx is accessed?
We had a website deployed on IIS server remotely say www.liveserver.com.
We recently decided to make a copy of the website internal to the organisation so we brought a server and copied all the code from live server and configured it and say it is http//archives-testserver.com
Everything seems to work fine but while navigating and clicking on certain module links within http//archives-testserver.com......the domain name is getting rewritten to www.liveserver.com and user is made to navigate on the live site. I wonder where this configuration is with in IIS...
I looked under properties under website identification and everything is referring it as http://arhives-testserver.com. also thr is a file called securityRedirect.inc and ifor handling errors and all the references have been changed and couldn't find anything in web.config. where else to look for probable reference to live site?
We had a website deployed on IIS server remotely say www.liveserver.com.
We recently decided to make a copy of the website internal to the organisation so we brought a server and copied all the code from live server and configured it and say it is http//archives-testserver.com
Everything seems to work fine but while navigating and clicking on certain module links within http//archives-testserver.com......the domain name is getting rewritten to www.liveserver.com and user is made to navigate on the live site. I wonder where this configuration is with in IIS...
I looked under properties under website identification and everything is referring it as http://arhives-testserver.com. also thr is a file called securityRedirect.inc and ifor handling errors and all the references have been changed and couldn't find anything in web.config.
I have a developed a new website for online document management. I have setup everything on the local network and the site is available on localhost. What I want to do is to make it available on internet. Its my first web project and configuring IIS and resolving database problems after publishing was real headache for me apart from development work (thats another long story). But i have made it up to here and now there is one more step.
How to make a web server live?
I am using asp .net 3.5. The server is in my home (windows xp, IIS 6, microsoft sql server 2005, 10MB bandwidth for internet connection).
I dont want to buy a domain because the website is not commercial. Its just me and my friend who will be using the website and we dont mind putting in ip address. Also, do I have to get a static ip from my ISP?
I am having a problem with postbacks on my live server.I have added a button to my page with postbackurl="google.com when I press the button it is doing nothing but If I put response.redirect("google.. in the code behind button click event it will work?Is there an simply reason that the postbackurl is not doing anything?
I am able to get a token with Windows Live Delegate Authentication samples provided by Microsoft.
Now I want to access emails (New, Read, Unread etc) from live account. How can I achieve it with the help of Windows Live Delegate Authentication? Are there any examples for the same?
The Samples given by Microsoft are not related to emails.
I've been building my sample asp.net application using VWD2008 and the development virtual server that comes with that. I got to the point that I want to make sure that the application behaves correctly on the live server, so I went ahead and published it. Everything seems to working great accept for the stylesheets. None of the styles are being applied to the page. I double checked the link to the stylesheet and I double checked the server location. Everything seemed fine and it was identical to the version on my virtual server.
i worked on a sample application integrating OpenID into ASP.NET Web Forms. It works fine when hosted locally on my machine. However, when I uploaded the application to a live server, it started giving "Login Failed".
You can try a sample here: [URL]
Here is the source code that fails to process the OpenID response:
So in my project i need to display charts in an admin panel. I tried MSCharts first, works locally but doesn't work on live server, found later that it's a host permissions issue and most hosts won't accept it.
Then i searched around and found a control called WebCharts, used it and it worked locally, but on live server i got the same permissions issue.
I am using the asp.net 3.5. i have development a website using master page, user control, update panel, asp.net ajax such as loading box and message box etc. when i testing the site in my local, it show with the normal speed. but after i upload the website into the live server, the loading box and message box is slow loading.if there is a popup of messagebox, it is slower and when i click the ok button on the message box. it seem close in very slow and have a duplicate box come out. i have no idea on it. why it is so slow when uploaded to the server?
Is there a way, without using a streaming media server, to stream semi-live audio from an asp.net web app? We want to have a microphone located at a remote site, and stream the data to the client machine for listning. Maybe somehow dynamically build the wav data, or somehow implement this using playlists?
i m having an Hosting with Godaddy server , now my problem is i want to upload(attach) my machine database to godaddy sql server . i have also check all the function and configration on godaddy but i m not getting how i can do that. if i try to take remote connection , this also not possbile in godaddy ( due to security they are disable this function )wht is the other way i can attach my database (.bkp) file to live godaddy server.
So I have a ntext column in a table with a combination of large random data (hence why ntext in the first place) and sometimes contains a uniqueidentifier.
I need to find and delete rows based on the uniqueidentifier.
I can't do the comparison with it being ntext, but I changed it to varchar(max) in my dev enviornment and it let me do it without any warnings and I can now do my comparison like I want to, so all is good.
I just want to make sure I'm not changing any of my large random data by changing the data type.
I have a process that retrieves html from a remote site and parses it. I pass several URL's into the method, so I would like to ajaxify the process and give a screen notification each time a URL completes parsing. For example, this is what I am trying to do:
List<string> urls = ...//load up with arbitary # of urls foreach (var url in urls) { string html = GetContent(url); //DO SOMETHING //COMPLETED.. SEND NOTIFICATION TO SCREEN (HOW DO I DO THIS) } public static string GetContent(string url) { HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); request.Method = "GET" using (var stream = request.GetResponse().GetResponseStream()) { using (var reader = new StreamReader(stream, Encoding.UTF8)) { return reader.ReadToEnd(); } } }
In each iteration in the loop, I want to show the URL was completed and moving on to the next one. How can I accomplish this?
Is there any way possible when my site is hosted to some how attach the process so I can debug the errors. Obviously as they are different environments what works in dev doesn't always work in.
This is the strangest problem im facing(may be i missed something). The application works fine locally, but when uploaded on the live server. the session values are not retrieved properly.
i have stored a value in a session in master page's code behind. and afte the page is redirected is to another page, there im not able to retrieve the session value.
why this is hapening.. i remind you this is working perfectly on local server. problem is only when published on live server.
i have a code which sends mail along with attachments on ma local machine. the port no , SMTP server and other stuffs are set correctly.. i can send mail on live server with same code ..but when i try attaching some files am not able to send mail the error i get is " Could not find a part of the path <filename> "while debugging i observed that the file name is accurate like : "C:\foldername\filename.extension"
While uploading file on live server i get this error.
System.UnauthorizedAccessException: Access to the path 'xxxwork-max.comTelecomimageslogo.gif' is denied.
ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.
<identity impersonate="true"/> promotes for user name and password each time i select
file uploading.
[URL] - with reference to this post grant permissions to NETWORK SERVICE user will solve the problem but granting permissions will
i have some problem on downloading file which file types are .doc, .docx and .pdf.
I have wrote the code for downloading when the button is click. the button can download these three types of file when click.
[Code]....
But, i have some weird condition. when i test in my local pc using the firefox, the downloading box popup with the file type detected. but when i upload the code files in live server and test the download button using firefox, the downloading popup but it cannot detect the file type.
therefore, i can proceed the download process using the firefox but i failed to open the files coz it dun have the file type.
I'm currently developing a website using VS2010 Express/SQL Express 2008, and am using the applications development server to test.
I have created an access layer which effectively takes all my cachable data and creates datasets.
I've also created a system wheras for each dataset, For each dataset I also create a token cached object (a string), which is set to expire before the dataset. The theory behind this is that when my token expires and is removed from cache, it calls a routine to rebuild the dataset, and re-caches the new result, then creates a new token. Think of it as a poor mans SQL dependency.
What this allows me to do is rebuild datasets behind the scenes with little interruption/delay throughout the day. It all works great - for instance when a user updates a table containing 100,000+ records on the site, the dataset rebuilds at hourly intervals reworking and consolidating the data in the background before representing it in a smaller cachable form.
What I would like to know is this. If I was to replace the database during the usable day (only updating the tables that users don't update), lets say adding 50 new records, would it cause the cache to be dropped. The reason I ask is because it the cache remains until its exipry time, I can replace the database and rebuild datasets incorporating new data in the background when the token expires. If the cache is dropped when I update the database, it will mean interuption whilst I reload the datasets and will change my strategy on uploading new data.
I ask the question because I'm currently working on the development server and unable to test in a live server environment at present.
when a user enters a bad email I am doing a check on this and throwing an exception message as follows, this works fine on the test site but for some reason the same code on the live site gives a "internal server error" (http code 500). The code below:
[Code]....
not certain why this is happening, I assume that it's some server or config difference between the test and live sites. has anyone seen this before? For a quick fix i'm registering javascript alert and showing the same text so it works but I would like to figure out why the code above is not working.