Showing posts with label instead. Show all posts
Showing posts with label instead. Show all posts

Saturday, March 31, 2012

web server issues

I am using visual web developer 2005 and SQL Server 2005 for developing my web projects.

for deploying my website,i do not want to use IIS . instead i want some other web server that support the .NET frame work so that i can host my website

can you please specify some

You need IIS to run your ASP.NET applications at the hosting company. What is the thing worrying you mainly?

Regards


How about Mono?

Mono allows you to run and execute your .NET work on Linux, Mac OS, etc ... But I am not sure how it runs web applications maybe on Apache or so, never worked with it before.

But the owner of this thread mentioned Visual Studio, so I conculded he/she is using a Windows environment!

Regards


I get the following error when i run my ASP.NET 2.0 applications in IIS ( windows XP machine)

The XML page cannot be displayed

Cannotview XML input using XSL style sheet. Please correct the error and then clickthe Refresh button, or try again later.


Aname was started with an invalid character. Error processing resource'http://localhost/default.aspx'. Line 1, Position 2

<%@. Page Language="VB"AutoEventWireup="false" CodeFile="Default.aspx.vb"Inherits="_Default" %>
-^

I get the following outputwhen i run in Mozilla Firefox version 2.0.0.1

XML Parsing Error:not well-formed
Location: http://localhost/default.aspx
Line Number 1, Column 2:

<%@. Page Language="VB"AutoEventWireup="false" CodeFile="Default.aspx.vb"Inherits="_Default" %>
-^

i tried making IISaware that it must use the correct .NET framework by callingaspnet_regiis -i. tool found in the folderC:\WINDOWS\Microsoft.NET\Framework\v2.0.50727.


please help me to solve this problem


Have you set the application to run under ASP.NET 2.0? Make sure you do so!

Regards

Monday, March 26, 2012

web service and Remoting

Hi

Can someone explain me the difference between webservice and remoting (in .net technology)?

I will prefer some explanation here instead of refering to any article......

both web services and remoting aim to do the same thing, which is to expose some business functionality across application domains/networks/computers etc

Web services advantages are it can work over any network as it uses HTTP, SOAP/XML so it does not matter if the target is running java or .NET because at the end of the day the request and response are serialised into XML and send over HTTP/SOAP.

.NET remoting's advantages are it is much faster then web services because you can use binary serialisation over TCP communication channel. However the pitfalls are remoting in .NET must have both parties running .NET.

Monday, March 12, 2012

Web Services project

Is there a way to create a web service project that has a proper project
file (e.g. csproj), instead of having it be file based where whatever
happens to be in the directory magically becomes part of the project?
ThanksFrank,
Any project should have a csproj file...
It's usually created in My Documents\Visual Studio 2005\Projects by default.
But if you want more control here's what I do:
I first create a new visual studio project of the type blank solution. To do
this I go to New - Project and then in the New Project window expand the
"Other Projects" node and select Visual Studio Solutions. Then select "Blank
Solution" in the Templates pane name the blank solution whatever you'd like,
set it's location if you don't want to use the default, and click "OK".
Now in the solution explorer you will have a blank solution (with the name
you gave it) with nothing in it. Right click on the Blank Solution and click
"Add - New Website". Select "ASP.NET Web Service" and set the location to
File or HTTP (I prefer HTTP and I use virtual directories so that I can
place the files right into the solution folder.)
The following instructions are for creating a HTTP website using a virtual
directory:
Select "HTTP" in the location drop down.
Select the language for the site.
Click the "Browse" button.
In the window that opens the second icon of a folder in the top right is for
creating a new virtual directory. Click that folder icon.
In the New Virtual Directory window that opens give the directory an
appropriate alias such as: MyWebService and then click the "Browse" button.
Browse to the location you put your blank solution folder in. Enter the
solution folder itself and then click the "Create New Folder" icon. Create a
folder with the same name you gave for the "Alias Name" select that folder
and click "Open".
Now click the "OK" button.
You will now have a new IIS website who's files are all stored inside the
virtual directory folder inside your solution folder.
Sincerely,
S. Justin Gengo, MCP
Web Developer / Programmer
www.aboutfortunate.com
"Out of chaos comes order."
Nietzsche
"Frank Rizzo" <nospam@.nospam.com> wrote in message
news:Oh$qKYQOGHA.1028@.TK2MSFTNGP11.phx.gbl...
> Is there a way to create a web service project that has a proper project
> file (e.g. csproj), instead of having it be file based where whatever
> happens to be in the directory magically becomes part of the project?
> Thanks

Web Services project

Is there a way to create a web service project that has a proper project
file (e.g. csproj), instead of having it be file based where whatever
happens to be in the directory magically becomes part of the project?

ThanksFrank,

Any project should have a csproj file...

It's usually created in My Documents\Visual Studio 2005\Projects by default.
But if you want more control here's what I do:

I first create a new visual studio project of the type blank solution. To do
this I go to New - Project and then in the New Project window expand the
"Other Projects" node and select Visual Studio Solutions. Then select "Blank
Solution" in the Templates pane name the blank solution whatever you'd like,
set it's location if you don't want to use the default, and click "OK".

Now in the solution explorer you will have a blank solution (with the name
you gave it) with nothing in it. Right click on the Blank Solution and click
"Add - New Website". Select "ASP.NET Web Service" and set the location to
File or HTTP (I prefer HTTP and I use virtual directories so that I can
place the files right into the solution folder.)

The following instructions are for creating a HTTP website using a virtual
directory:

Select "HTTP" in the location drop down.

Select the language for the site.

Click the "Browse" button.

In the window that opens the second icon of a folder in the top right is for
creating a new virtual directory. Click that folder icon.

In the New Virtual Directory window that opens give the directory an
appropriate alias such as: MyWebService and then click the "Browse" button.

Browse to the location you put your blank solution folder in. Enter the
solution folder itself and then click the "Create New Folder" icon. Create a
folder with the same name you gave for the "Alias Name" select that folder
and click "Open".

Now click the "OK" button.

You will now have a new IIS website who's files are all stored inside the
virtual directory folder inside your solution folder.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Frank Rizzo" <nospam@.nospam.com> wrote in message
news:Oh$qKYQOGHA.1028@.TK2MSFTNGP11.phx.gbl...
> Is there a way to create a web service project that has a proper project
> file (e.g. csproj), instead of having it be file based where whatever
> happens to be in the directory magically becomes part of the project?
> Thanks