Go Back   CodingForums.com > :: Server side development > ASP.NET

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-15-2005, 07:08 PM   PM User | #1
melissa820
New Coder

 
Join Date: Oct 2004
Posts: 64
Thanks: 2
Thanked 0 Times in 0 Posts
melissa820 is an unknown quantity at this point
Errors when opening a project

I am a PHP programmer that is trying to convert to using .NET. I just write code so I don't really have any idea about the servers and all that stuff. I am used to coding on my local machine, and FTP'ing the files up to the web server and test them.

Somebody installed DotNetNuke on the web server for me so that I could play around with it and learn how .NET works. I know a bit about the code, but actually configuring stuff to run is beyond me.

In order to open the project, I first mapped a network drive Z: as blahblah.ad.ourdomain.ca\DotNetNuke. (not the real name of course). So then I opened the project from Z:\DotNetNuke.sln. I tried to open the solution in Visual Studio but I got a bunch of errors.

What do these mean? How do I get rid of them? And how can I make the code run on the web server instead of my local machine? I want the URL to be http://blahblah.ad.ourdomain.ca/DotNetNuke, not localhost.

The first was:

Visual Studio .NET cannot create or open the application because no web server was detected at this URL: http://localhost/DotNetNuke. Make sure the web server is installed and running.

The second error was:

The project location is not fully trusted by the .NET runtime. This is usually because it is a network share or mapped to a network share not on the local machine. If the output path is under the project location, your code will not execute as fully trusted and you may recieve unexpected security exceptions.
melissa820 is offline   Reply With Quote
Old 08-15-2005, 07:56 PM   PM User | #2
miranda
Senior Coder

 
Join Date: Dec 2002
Location: Arlington, Texas USA
Posts: 1,062
Thanks: 4
Thanked 8 Times in 8 Posts
miranda is an unknown quantity at this point
I may be wrong but isn't DotNetNuke just a CMS? I don't think it includes a webserver. In order to use Visual Studio to develop asp.net applications you will need to have Windows 2000 or Winsdows XP with sometype of webserver (IIS or Cassini) installed on your development computer. If you have Win2K or WinXP Pro you can easily install IIS by just going to Control Panel > Add/Remove Programs > Add/Remove Windows Components then click on the IIS.

If you have Win XP Home you will either need to look up how to work around the installation or install Cassini. The ASP.Net Web Matrix and also the Microsoft Visual Web Developer 2005 Express Edition Beta 2 use Cassini as the server. If you are just learning ASP.NET and want to create sample applications that will run on a local computer you can use the VWD Beta(the apps will run on any computer that has the .Net 2.0 CLR installed on it, very few production level servers have them installed right now). It uses code behind logic and is very similar to Visual Studio.

Web Matrix uses Single-File asp.net pages but will produce pages that can work on any production level server.
miranda is offline   Reply With Quote
Old 08-15-2005, 08:20 PM   PM User | #3
melissa820
New Coder

 
Join Date: Oct 2004
Posts: 64
Thanks: 2
Thanked 0 Times in 0 Posts
melissa820 is an unknown quantity at this point
My machine is running Win XP Professional. I am at work so I have no control over any of the things you mentioned. As far as I know, DotNetNuke is just a .NET version of the PHPNuke portal system. Which is a pre-made portal for which you can write custom modules. I wanted to look at how some of the pre-made modules worked in VB.NET so that I could start writing custom modules.

Is there no way to edit and code inside a project that is sitting on another web server? I want this web portal application to sit on our web server instead of my local machine.

I.e. I don't want to be the web server, I just want to write code here and then upload it onto the web server.
melissa820 is offline   Reply With Quote
Old 08-15-2005, 09:50 PM   PM User | #4
miranda
Senior Coder

 
Join Date: Dec 2002
Location: Arlington, Texas USA
Posts: 1,062
Thanks: 4
Thanked 8 Times in 8 Posts
miranda is an unknown quantity at this point
As far as I am aware using Visual Studio.Net requires the server. Using other products to build ASP.NET applications doesn't. You can open the code in a texteditor like notepad to see what the code looks like. If you use a wysiwyg editor some of them can be used to open asp.net files also.
miranda is offline   Reply With Quote
Old 08-29-2005, 03:57 AM   PM User | #5
whipple
New to the CF scene

 
Join Date: Aug 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
whipple is an unknown quantity at this point
Cool Eliminating Trust Error

Launch VB.net
Click on Tools from the main menu
Click on Options from the submenu
Expand the Environment Folder
Click on the Documents settings
Uncheck Dectect when file is changed outside the environment
whipple is offline   Reply With Quote
Old 08-29-2005, 01:33 PM   PM User | #6
melissa820
New Coder

 
Join Date: Oct 2004
Posts: 64
Thanks: 2
Thanked 0 Times in 0 Posts
melissa820 is an unknown quantity at this point
Thanks for trying to help me out. I did what you said, but unfortunately I still got the errors I described in my first post.
melissa820 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:29 PM.


Advertisement
Log in to turn off these ads.