How to upload images from asp.net application to image server? - asp.net

I have two servers.One for web app and another for images storage .I have no idea how to upload images from web app to image server.
webservice or ftp or others?

if you have sql server instance running on [Image Server], can't you use database running beneath it ? You'll need Public IP Address in order to access Server. Make sure you can connect to this DB from any other sql server management studio.
But for security reasons, i recommend to build web service/api & configure it on Image Server, which serves all requests made from your webapp.

Related

What role does a web sever play in hosting of single page applications

As per my understanding, when user visits a url of a SPA application, the whole application is downloaded including any static html,assets and javascript. Can someone please clarify what role does the host web server play from there on? If after download of all the assets, I turn off the web server the application does not work. But ideally, it should work because now all the code to create any views is with the client already in form of javascript files. Let's assume there are no API calls for data.
Yeah it will work
If the application is fully loaded in browser it will work even after you turned off or disconnect the web server
Web Server No Need after the client has downloaded all the assets

How to upload existing ms sql databse in web server?

I have one web site and I want to upload it on server and i also want to upload the ms sql database with that web pages. Please tell me how to upload it on web server....
This is a rather generic question because there could be a lot of different problems and differences, but generally, you would take a backup of your server first. Here is some general information on that:
http://msdn.microsoft.com/en-us/library/ms187510.aspx
Then log into your hosting provider, create a database using their tools, and restore your database backup to that new hosted database.
Next you would change where your database config in your files is pointing to the new database, then use an ftp client like Filezilla to ftp into your web server. The hosting provider should be able to give you the username and password. Upload the web pages / files to the public directory (usually /public or /htdocs or something along those lines).

Uploading large file from web and getting it in wpf

I have a web interface where the user can upload images and videos. These files are saved directly on the web server. I also have a WPF client (whiteboard-like) that need to download these images and display them. The only contact this WPF client has to the web server is through an webservice (currently WCF). How do i access the images uploaded into another web site (the scf serfvice, .svc is hosted seperately)? Is there a better approach? E.g. Saving the images to a path outside the IIS and then letting the webservice etc. get them from there?

Test Flex/Facebook Application localy

I´m new in Flex.
I'm trying to develop a Web Application integrated with Facebook.
I´m using Flash Builder 4.5 and the Adobe Facebook SDK.
The problem is that to test the application I need to upload the files to my webserver to avoid the facebook error.
I guess this is because Facebook only allows to run the application inside the domain that informed at my app page on Facebook.
Someone knows how can I test the application locally?
Best, Flávio
One way to test your application is to create a copy of your app on Facebook (i.e. register a new application), but set it up to point to localhost (i.e. your local development server). This will let Facebook send all the login redirects back to your local webserver rather than your current 'live' website.
It would help if you install a localhost webserver on your machine so you can run code locally. This will allow you to test your files on your own machine rather than having to upload them every time.
Set up a local web server (I like Apache, but IIS will work). with a virtual server and give it the same domain name as your production server. Use a hosts file to point the domain back to your own server.
You can also use Charles to record the web traffic, then build mock services that will provide that information.

Error attempting to access a web service (hosted locally or externally), can't resolve host name

I'm stumped. I've got an asp.net mvc app being hosted on a shared hosting provider. The configuration of their system leaves a little to be desired, but it's cheap (getting what I pay for I suppose...)
The problem is this: The application is hosted at the root level of the hosting account. I have a virtual directory established underneath the root that is running a .net 2.0 web app along with a web service. I can access the web service directly via the domain/subdirectory url. The main web app (at the root level) needs access to the web service in the virtual (subdirectory). Locally in development, I can run the app against the web service out on the hosting server and it runs just fine. When I push the web app up to the root of the hosting service, I get "The remote name could not be resolved: ".
At first I thought the error was related to the DNS settings of the primary domain since both the web app and web service technically live at the same domain. As part of just trying to get something working, I reverted the web app to reference an older version of the web service on a different server (different host altogether). Again, it works fine locally. When I push the updated web app, I got the same error, but noticed the host name referenced is that of the external domain. Of course, I can access the web service via the browser just fine.
Sorry if this doesn't make total sense... it's late and I'm beat from looking at this for the last few hours. Any help would be greatly appreciated.
EDIT
So the web app simply has a Web Reference to the web service (I could probably just restructure the app avoiding the web service altogether, but time is of the essence [for now]). Since I got stuck last night, I pointed the web reference back to an old server but the issue remains. Right now the url the web reference points to is http://road34.hi-fisoftware.com/webservices/giigsterservice.asmx.
If the server has a firewall then and an external ip and different internal ip then probably you will not be able to access the webservice with the domain name. you will need to access it as internal url or as relative url.

Resources