I have a windows form application and it communicate to a web-service and it using the dotnetnuke dll only..the web service is not a DNN site its just referenced the DNN dll..
Using that webservice I need to access this dotnetnuke dll and connect to a database using dnn commands(using that dotnetnuke dll)
Please help how to do this..what are the code for connect to that databse using this dotnetnuke dll.
Related
I am a newbie with Windows Azure, and still learn it. I have developed an ASP.NET MVC project that implements Forms Authentication and is run on Windows Server.
Now, if I want to run this MVC project using Forms Authentication on Windows Azure, then I have some questions:
Question 1: Can MVC Forms Authenticaion function is possible with Windows Azure?
Question 2: If possible, then do I need to modify my existing codes? How can I do so?
Thank you in advance.
You do not need to modify your code to run on Windows Azure. Just hook it up to a repository and create a new web site on Azure. Then connect the two and you'll have a fully functioning project.
I'm seeking some guidance for hosting websites on azure.
I have a Umbraco website, which work fine on azure website.
I also have an MVC application I want to host inside my umbraco site, but it has to be run as an application.
This work fine in IIS by converting the folder to a application, but there is no option to do this on azure.
Is there a easy way to convert the folder to a application inside my umbraco solution or do I have to create a virtual machine with web roles?
If you need more control than just creating an Azure Website - you need to create an Azure VM or use an Azure Web Role hosted service.
I have a phone caller id device. I want to record calling numbers to database. I used javascript and Activex but that only works in IE. I am using MVC and EF.
Is it possible to use Silverlight and embed it to my web application project so that the silverlight project can access to database and record the phone number.
If it is possible, can you show me a simple example pls?
(i created a project on Silverlight but cannot add dlls(caller id device SDKs) to references.)
You don't explain why you are using ActiveX so I assume the control is able to provide an interface to your hardware phone caller ID device.
Silverlight could possibly solve your problem. However, if you have to call native code (e.g. a COM object to access the phone ID device) you will have to run the Silverlight application as a Trusted Application. In general this requires the application to be run Out Of Browser (OOB). This makes the browser only be a vehicle for installing the OOB Silverlight application.
You will also have to create a web service interface allowing your Silverlight application to interact with the database. You cannot just add references to Entity Framework in your Silverlight project and then access the database directly. However, using WCF RIA Services it is reasonable simple to connect your Silverligt application to Entity Framework hosted in IIS.
Did you try using "ActiveX for Chrome" extension?
https://chrome.google.com/webstore/detail/lgllffgicojgllpmdbemgglaponefajn
Is it possible to self host asp.net mvc inside another application ie. console, windows forms, service etc etc.
I'd like to build an app that offers a web interface to control it and I'd like to use asp.net mvc for the web part of it.
I did take a quick look at Nancy which looks like it would work, though its not asp.net mvc it did support razor although it doesn't have quite the same level of support for it as asp.net (eg. strongly typed views)
I did also find this question but it doesn't really go into much depth
Possible to use ASPNET MVC2 without IIS?
You can use "IIS 7.0 Hostable Web Core" and host the web server as part of any user process, even a console application. The benefit is that it is very similar to full blown IIS (incl config etc) but the web server itself is running in your process.
Have a look at the following articles:
Host your own Web Server in your application using IIS 7.0 Hostable Web Core
Creating Hosted Web Core Applications
Please have a look at http://cassinidev.codeplex.com/
It has many advantages for example
No need IIS 7 on client machine
Support MVC (I have tested myself)
Work well with Windows Form and Web Browser Control for packaging as Windows App
Cross Win OS platform ( Windows XP, Vista, 7) I have test XP with .NET 4 installed
Hope this helps.
I know this question is old, but it is still relevant, so with the .NET Core 1.0 + ASP.NET MVC 6 you can self-host your MVC application easily. You can even combine MVC and WebAPI applications into one, and you can decide later if you want to use IIS, IIS Express or the self-hosting feature of the .NET Core.
You can try it if you follow the Yeoman approach from this post:
https://stackoverflow.com/a/30314393/980247
I can’t get a basic MVC site to work on my web server unless I’ve compiled it first in Visual Web Developer. If it doesn’t have a dll in the Bin, it says the Namespace can’t be found.
In classic asp.net I could just upload the files and the server would compile it at first run. Is this not the case in MVC? Essentially I’d like to build an MVC site without using Visual Web Developer.
That's cause ASP.NET MVC is not based on the Website model that many ASP.NET Web Forms apps were. It is based on the Web application model.
You can read about Web Application Projects here.
I've read about people migrating the Web Application to the Web site model in ASP.NET MVC but I don't recommended it.
Yes, you do need to compile an MVC site and deploy some DLLs in a bin folder when you deploy an MVC site
You can build MVC without Visual web developer... but why?