So as the question goes, I have hosted a ASP.NET and C# website in IIS in my Windows 7 Ultimate OS. Not I need to be able to access the same site from ubuntu which is actually a virtualized OS running under VMWare.
I am able to access the website in my Windows 7 pc without any problems. But inside the Ununtu there seems no way to do the same.
I searched many forums for the same, no luck! Disabled the Firewall(Actually) to make sure no security issues arise but still not able to do the required thing.
This is the error :
Server not found
Firefox can't find the server at www.google.com.
Check the address for typing errors such as
ww.example.com instead of
www.example.com
If you are unable to load any pages, check your computer's network
connection.
If your computer or network is protected by a firewall or proxy, make sure
that Firefox is permitted to access the Web.
Any ideas?
the vm can access the host machine? if you use NAT connection mode seems cannot communicate with the host. Try Bridge instead?
Related
I am working on a C# .Net MVC application that uses Windows authentication. When I am in the office, on my work computer, all is well. However, the same code base on my personal laptop will not authenticate. I'm not sure what username:password combination it is looking for. I have tried both my local credentials and my work credentials. I am connected via VPN to the office and can browse network resources, connect to SQL servers, etc. I suppose to complicate matters, I log into my personal laptop using a Microsoft account (which I am considering dumping).
Is there any other info that you need? What else can I try. I can't figure out where the entry point into my code is happening to attempt a debug.
I'm developing a .NET MVC Application to query a PLC for inputs and outputs status using Snap7 library.
For development reasons I connect to my PLC (behind a router) using an SSH tunnel bound to a localhost port, so it becomes reachable at 127.0.0.1:102 address. In this scenario, everything works fine and I manage to read data from the device.
When I deploy my application to the production server a subtle problems begins: I'm no longer able to connect PLC. Error code from Snap7 library is cryptic and the only difference in code is the IP address (192.168.1.100:102 instead of localhost:102) so I suspect a permission problem is involved.
I'm searching for two solutions to my problems: one for the normal deployment, where I have full access to IIS Server and one for Azure deployment. I'm searching for something to put inside Web.config but I'm not still able to find suitable configurations or workarounds.
I am not sure if I am posting this in the correct section?
I have released my asp.net website yesterday on our server, everything went well, I can access the website and even on my phone (connected to company WIFI). When I disconnected from the WIFI on my phone and went back to my standard network, it takes forever to load and eventually just says:
Internet could not load the web page because [website] took to long to respond. The website may be down or you may be experiencing issues with your Internet connection
This was quite strange, I then re-enabled my WIFI on my phone, and viola, I have full access to the website and all features are working. The same issue is happening when I tried to access the site from my home computer.
I am using MVC 3. SSL is enabled on the application.
I had a basic Asp.Net web application which just showed the look and feel to please the clients. That I released the same as this and I could access it anywhere from external or internal networks, so it is really strange. Am I missing a step?
The weirdest part for me is that it works at my company, but I cannot access it from out side. The IIS on the server's binding setting for this application is also set to HTTPS on port 443.
Please let me know if you require more information as I will try my best to provide it.
Thanks in advance!
So the issue was as Punit Ganshani MVP asked. The firewall at our server house only allowed http and once https was added to the list the site worked instantly.
Thanks for the suggestion. This was my first asp.net project so i just assumed that I messed something up in the code or the project itself.
I want to create a home-brew server farm, hosted on my own Windows 7 x64 box. There would be three guest 2k8 Servers, one each to run IIS, a domain controller, and SQL Server 2k8 R2. All guest machines would belong to a domain. The host machine is in a workgroup (not in a domain), and has Visual Studio 2010 Ultimate installed.
I want to know:
Can I remote debug (from the host machine in a workgroup) managed code on the guest OS (which is in a domain)?
Any complications if I'm using VirtualBox? I see a similar topic elsewhere, but it does not address the domain issue.
Can I use the VMWare Workstation "integrated virtual debugger" to do the same (debug managed code on guest OS)? Has VMWare started supporting this in VS 2010 yet?
Either way I need to take into account the workgroup-accessing-domain story I'd be dealing with.
You should be able to remote debug the guest OS's. Take a look at this article on MSDN for information on cross-domain remote debugging, which I believe still applies with the host not actually being on a domain. You simply ignore the fact either machine is on a domain and create like for like local accounts on the machines - all described in the aforementioned MSDN article.
If that creates problems for you, you can also disable authentication which seems to be a popular choice, despite being insecure:
http://communities.vmware.com/message/1617741
The article you linked in your post solves any networking issues so between that and the above you should be able to get the remote debugger up and running.
Is this question and answer any use regarding question 2? I can't find anywhere a mention that the integrated VM remote debugger is actually available for 2010, but then I can't find any posts complaining that it isn't. Perhaps it's just a closely guarded secret!?
EDI #19 or so:
Unfortunately I've found this article complaining that VS2010 isn't support by VSID. =(
Good luck!
I downloaded the silverlight 4 socket application from the book "Pro silverlight 4 with c#" which is basically just a silverlight socket client and server application. The server is a console application and the client is a silverlight web applcation.
I can run the server and client fine on ONE computer, it shows that its connected and so on, but when i tried connecting to the server on a different computer (Local Network), it wont connect. Any idea??? Eventually i want to put this on the internet and go live, not local. When i run using visual studio development server, it shows localhost and port 1091, and i thoguth silverlight only uses port 5200 somthing.
Silverlight applications are only allowed to connect back to the site it was loaded from by default, much like Java and Flash does. If you need to communicate with another server, that server needs to explicitly allow it by running a policy service listening to port 943, or by serving a policy file over HTTP port 80. See http://msdn.microsoft.com/en-us/library/cc645032(VS.95).aspx for the full details on how to implement this.
Have you added policy file to you "C:\inetpub\wwwroot"?
I used example from "Pro silverlight 3 with c#" and its work from internet and local.
I added policy file to "C:\inetpub\wwwroot", where my silverlight website was published and everything works fine.
Note that website published in the same machine where server application runs.
Hope this will help you.