Is it possible to remotely access the database over internet using ASP.NET and .mdf file. If yes then How?
I'm searching for the solution from last 4 days and came up with the idea of Webservices. I learned XML for this but the problem is I dont know how to use the webservices. I mean how to embed it in my project so that the database could be accessed remotely?
Please help and thanks in advance!
I'm not sure what you mean by "embed it in my project". The web service is web application that needs to be hosted on a web server, so you cannot embed it in your project as your project will be accessing it remotely (i.e. from another location). You can add it as another project to your solution, and then consume it in your project. You can google and learn how to consume a webservice.
Related
We are developing intranet base solution in ASP.NET MVC. It will be deployed across client's own internal network hence respective employee of client can use it.
As it is IIS based intranet application, one can easily copy files and configure IIS on other server. So what are the different solution available to prevent this.
Thank you in advance.
Generally when you are publishing the ASP.NET MVC web app, you can publish the version in dlls.
So Instead of creating a single Web App, you can create a new dll file where you are going to compile all the Models of the App and save it in a dll).
Then coming back to your original solution you will add the reference to this dll so no logic can be taken of your solution.
At the minute I am building an ASP.NET MVC application to learn the technology, and I want to incorporate web services as I have never used them before and I want to have experience with them.
I was wondering would it be possible to create a web service and run it on the Visual studio local host along with my MVC application an then consume it with the MVC application.
I am hoping that the web service will basically pull data from the the same db as the app and then allow the mvc app to consume the service. Would this be possible?
Sorry if this is a pointless question but it is for a college project. Any help greatly appreciated
Thanks
Yes, it is very possible with Visual Studio - in fact, it is easy. Best to follow some tutorials - one such tutorial is http://www.asp.net/mvc/tutorials/mvc-music-store.
For more specifics about the service from within VS, this link may be more helpful - msdn.microsoft.com/en-us/library/cc668184(v=vs.100).aspx
If you are talking a WCF service, this is very easy to do. You'll want to add the service to the same solution as your MVC project, right click on References in the MVC project, then click add service reference. On the dialog that comes up, click discover to the right and it will find the service in the solution allowing you to add it locally.
Once you have a service reference, you can right click and configure to see the path. Should be set to localhost in this case. Doing this will allow you to set breakpoints and debug the service through your MVC application.
Today I read about Liferay. I have referred liferay.com and found one community demo application which I have run successfully.
But,my question is that, Can I make separate web application ? like in spring (not a portal which have to include in the demo application).
Using community edition.
Thanks.. :)
As Mark has said Liferay is a portal, and is itself a Web Application running on a Application Server like Tomcat.
If you wanted to create a separate web application using Spring, you could deploy this onto the same Application Server as Liferay, but it wouldn't run inside Liferay, it would run along side it.
You might be better to clarify what you're asking :)
I don't no exactly what you mean, but Liferay is Portal. That is not a Web framework like spring, that is technology to setting up a portal and customize it.
I'm wanting to use DB4o on an asp.net MVC project i'm working on but wondering if anyone
has got this working on shared hosting plan, have contacted discountasp and asked them and they said go to the forum
as they were not sure if they supported it or not or any configuration that would be needed.
but the forum wont let my post on because its all filtered to only show comments they like the look of?
anyone had any joy with this with another host and one that runs asp.net MVC as it should be run?
much appreciated
ta
I'm not familiar with the framework, but it seems that you can just place the DLL in the bin folder and you should be set. I've done tons of projects with MVC and the same method of placing the DLL in the bin folder and worked without issues. The host I use is ReliableSite...they're cheap and don't charge $10/mo for a SQL Server database like DiscountASP does.
What's the best resource for integrating Skype API into ASP.Net website? I can't seem to find much on Skype.com's developer section.
What do you mean by best resource? Just put the dll to Bin folder and start using the api..? I'm also new to api ant I think Skype client must be installed to the server.