Showing posts with label iis. Show all posts
Showing posts with label iis. Show all posts

Thursday, March 29, 2012

Office Components and IIS and .NET Framework

I'd like to generate a Word document from a web app and found many articles that support doing so. However, office components are not available on our web server. Our sys admin told us it is not recommended to install Office components on the web server because Word is client software. (We are so sys admin ignorant in our developer shop.) Does anyone know if this is also true with the .NET framework - that we should not install Office components on the web server?
Thanks so much.Yes, it is recommended not to run office products on a dedicated server.
On one of our servers, MS Access was put on it ONLY because a couple databases may need maintainence from time to time.
There are other servers; however, that are dedicated to running office products that the entire company can share so people don't have to load those products on their local machine.
You may want to look into that option, another server running office and utilities, and then connect to that from your IIS server to launch Word.
Zath

Thanks for your reply.
I was referring to creating word documents via C#.NET using a web pageas the interface. My attempts to do so using wordApp = newWord.ApplicationClass(); failed with error:
COM object with CLSID {000209FF-0000-0000-C000-000000000046} is either not valid or not registered
which I understood was related to Word not being available on the Web Server.
I will look at using MIME types.
Thank you again!
a once former virgin poster,
elle_f

And just came across this bit of code that may interest you...
http://www.developerfusion.com/forums/topic-22540
Zath

Monday, March 26, 2012

Ok, here is something strange I am hoping you can help with

We currently have an IIS 5 Virutal Directory setup as an application.
This application is called "LogonScripting", and under it rnus a bunch of
classic ASP stuff.
I have been tasked with moving my ASP.NET application under a subfolder of
"Logon Scripting".
The folder they would "like" this app to run under is "\CGI\grp_mbr";
The app works fine if I make the "grp_mbr" folder an application, but this
doesn't meet the requirements.
So what steps / tweaks do I have to do to get an ASP.NET app to run in a
subfolder of an application on IIS5.
Thanks,
Chris BatesI'm not sure I'm reading your post correctly, but you HAVE to make the folde
r
that the asp.net code is in an application in order to get the asp.net code
to run in it. That's kind of the definition of an asp.net application. If
you want to move the asp.net application to a new subfolder, you have to mak
e
that subfolder it's own application (right-click, Properties, Create).
It sounds like this is what you said you did, but I'm by the "does
not meet the requirements" phrase. Can you explain more?
James
"Chris Bates" wrote:

> We currently have an IIS 5 Virutal Directory setup as an application.
> This application is called "LogonScripting", and under it rnus a bunch of
> classic ASP stuff.
> I have been tasked with moving my ASP.NET application under a subfolder of
> "Logon Scripting".
> The folder they would "like" this app to run under is "\CGI\grp_mbr";
> The app works fine if I make the "grp_mbr" folder an application, but this
> doesn't meet the requirements.
> So what steps / tweaks do I have to do to get an ASP.NET app to run in a
> subfolder of an application on IIS5.
> Thanks,
> Chris Bates
>
>

Ok, here is something strange I am hoping you can help with

We currently have an IIS 5 Virutal Directory setup as an application.

This application is called "LogonScripting", and under it rnus a bunch of
classic ASP stuff.

I have been tasked with moving my ASP.NET application under a subfolder of
"Logon Scripting".

The folder they would "like" this app to run under is "\CGI\grp_mbr";

The app works fine if I make the "grp_mbr" folder an application, but this
doesn't meet the requirements.

So what steps / tweaks do I have to do to get an ASP.NET app to run in a
subfolder of an application on IIS5.

Thanks,

Chris BatesI'm not sure I'm reading your post correctly, but you HAVE to make the folder
that the asp.net code is in an application in order to get the asp.net code
to run in it. That's kind of the definition of an asp.net application. If
you want to move the asp.net application to a new subfolder, you have to make
that subfolder it's own application (right-click, Properties, Create).

It sounds like this is what you said you did, but I'm confused by the "does
not meet the requirements" phrase. Can you explain more?

James

"Chris Bates" wrote:

> We currently have an IIS 5 Virutal Directory setup as an application.
> This application is called "LogonScripting", and under it rnus a bunch of
> classic ASP stuff.
> I have been tasked with moving my ASP.NET application under a subfolder of
> "Logon Scripting".
> The folder they would "like" this app to run under is "\CGI\grp_mbr";
> The app works fine if I make the "grp_mbr" folder an application, but this
> doesn't meet the requirements.
> So what steps / tweaks do I have to do to get an ASP.NET app to run in a
> subfolder of an application on IIS5.
> Thanks,
> Chris Bates
>

Saturday, March 24, 2012

Old project - new error

the first place to start is to make sure that the project is configured as a
virtual dir and correctly mapped in IIS. Is it? If it is, run the
application without using the debugger (Ctrl+F5) option
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/27cok
"Mark" <anonymous@dotnet.itags.org.discussions.microsoft.com> wrote in message
news:D503A006-F70A-4F1A-A56F-B94F962A63FC@dotnet.itags.org.microsoft.com...
> My old project is giving me that error:
> Server Error in '/processtree' Application.
> ----
--
> Configuration Error
> Description: An error occurred during the processing of a configuration
> file required to service this request. Please review the specific error
> details below and modify your configuration file appropriately.
> Parser Error Message: It is an error to use a section registered as
> allowDefinition='MachineToApplication' beyond application level. This
> error can be caused by a virtual directory not being configured as an
> application in IIS.
> Source Error:
>
> Line 44: by Microsoft that offers a single logon and core
> profile services for member sites.
> Line 45: -->
> Line 46: <authentication mode="Windows" />
> Line 47:
> Line 48: <!-- AUTHORIZATION
>
> Source File: C:\Program Files\Microsoft Visual FoxPro
> 7\testarea\dotnet\treeview\processtree\p
rocesstree\web.config Line: 46
>
> ----
--
> Version Information: Microsoft .NET Framework Version:1.1.4322.573;
> ASP.NET Version:1.1.4322.573
> Can someone help me to understand what does that mean?did not help.
did not help.
Mark,
I noticed the path that was included in the error message. The very last di
rectory listed in your path needs to be marked as an application if you are
going to have a web.config file in that directory.
If I have a subdirectory/subweb under my main website and if it contains a w
eb.config, when I make that subdirectory NOT an application, I get the same
error you have listed below. It has to have something to do with the applic
ation settings associated w
ith the subdirectory.
Christopher Reed
Web Applications Supervisor
City of Lubbock
-- Mark wrote: --
My old project is giving me that error:
Server Error in '/processtree' Application.
----
--
Configuration Error
Description: An error occurred during the processing of a configuration file
required to service this request. Please review the specific error details
below and modify your configuration file appropriately.
Parser Error Message: It is an error to use a section registered as allowDef
inition='MachineToApplication' beyond application level. This error can be c
aused by a virtual directory not being configured as an application in IIS.
Source Error:
Line 44: by Microsoft that offers a single logon and core profile
services for member sites.
Line 45: -->
Line 46: <authentication mode="Windows" />
Line 47:
Line 48: <!-- AUTHORIZATION
Source File: C:\Program Files\Microsoft Visual FoxPro 7\testarea\dotnet\tree
view\processtree\processtree\web.config Line: 46
----
--
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
Version:1.1.4322.573
Can someone help me to understand what does that mean?

Old Versions of ASPX showing

Hi All,
Here is a long story short.
On one of our IIS platforms, I am running Microsoft CMS, which
utilizes ASP.NET and CSharp.
After changing some code, I noticed that old ASP page code will be
shown/executed when a certain amount of time has elapsed. For
example, if on one page I told it to respond with 'Dog' 3 months ago,
then I changed the code to respond as 'Cat', it responds as 'Cat' for
a bit, then after a time (days/w?), it starts responding with 'Dog'
again, even though the CSharp/ASP pages don't contain 'Dog' anymore.
I assumed this was a caching issue, and recently went into IIS,
Website-->Web Sites-->Home Directory-->Configuration-->Cache Options
and changed from 'Cache limited...', to 'Do not cache ASP...'.
I have yet to see if this will do the trick, but, I was hoping anyone
else could point me in the right direction,if I am doing in the wrong
one.
Thank you in advance.
Dave<goldborder@.gmail.com> wrote in message
news:1173967893.356701.147310@.o5g2000hsb.googlegroups.com...
> Hi All,
> Here is a long story short.
> On one of our IIS platforms, I am running Microsoft CMS, which
> utilizes ASP.NET and CSharp.
> After changing some code, I noticed that old ASP page code will be
> shown/executed when a certain amount of time has elapsed. For
> example, if on one page I told it to respond with 'Dog' 3 months ago,
> then I changed the code to respond as 'Cat', it responds as 'Cat' for
> a bit, then after a time (days/w?), it starts responding with 'Dog'
> again, even though the CSharp/ASP pages don't contain 'Dog' anymore.
> I assumed this was a caching issue, and recently went into IIS,
> Website-->Web Sites-->Home Directory-->Configuration-->Cache Options
> and changed from 'Cache limited...', to 'Do not cache ASP...'.
> I have yet to see if this will do the trick, but, I was hoping anyone
> else could point me in the right direction,if I am doing in the wrong
> one.
> Thank you in advance.
> Dave
You talking classic ASP or ASP.NET here ?
It the former, place this on top of the page
<% Response.CacheControl = "no-cache" %>
Just below the
<%@.LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
Never heard of it caching for months though.
If it's ASP.NET then I usually like to delete the CAC after updating the
site.
Simon

Old Versions of ASPX showing

Hi All,

Here is a long story short.

On one of our IIS platforms, I am running Microsoft CMS, which
utilizes ASP.NET and CSharp.

After changing some code, I noticed that old ASP page code will be
shown/executed when a certain amount of time has elapsed. For
example, if on one page I told it to respond with 'Dog' 3 months ago,
then I changed the code to respond as 'Cat', it responds as 'Cat' for
a bit, then after a time (days/week?), it starts responding with 'Dog'
again, even though the CSharp/ASP pages don't contain 'Dog' anymore.

I assumed this was a caching issue, and recently went into IIS,
Website-->Web Sites-->Home Directory-->Configuration-->Cache Options
and changed from 'Cache limited...', to 'Do not cache ASP...'.

I have yet to see if this will do the trick, but, I was hoping anyone
else could point me in the right direction,if I am doing in the wrong
one.

Thank you in advance.

Dave<goldborder@.gmail.comwrote in message
news:1173967893.356701.147310@.o5g2000hsb.googlegro ups.com...

Quote:

Originally Posted by

Hi All,
>
Here is a long story short.
>
On one of our IIS platforms, I am running Microsoft CMS, which
utilizes ASP.NET and CSharp.
>
After changing some code, I noticed that old ASP page code will be
shown/executed when a certain amount of time has elapsed. For
example, if on one page I told it to respond with 'Dog' 3 months ago,
then I changed the code to respond as 'Cat', it responds as 'Cat' for
a bit, then after a time (days/week?), it starts responding with 'Dog'
again, even though the CSharp/ASP pages don't contain 'Dog' anymore.
>
I assumed this was a caching issue, and recently went into IIS,
Website-->Web Sites-->Home Directory-->Configuration-->Cache Options
and changed from 'Cache limited...', to 'Do not cache ASP...'.
>
I have yet to see if this will do the trick, but, I was hoping anyone
else could point me in the right direction,if I am doing in the wrong
one.
>
Thank you in advance.
>
Dave


You talking classic ASP or ASP.NET here ?
It the former, place this on top of the page
<% Response.CacheControl = "no-cache" %>

Just below the

<%@.LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>

Never heard of it caching for months though.

If it's ASP.NET then I usually like to delete the CAC after updating the
site.

--
Simon

OleDb and AS/400

I'm having a problem where when I load my page up to the server and I input an order number, it will just refresh the page. I have IIS running on my local PC and the web page runs fine, but when it's loaded up on the server it doesn't work.

Does the server need Client Access installed on it or does .net use a generic OleDb database driver in order to access the page? My PC has client access, but the server does not.

If you need to see my code, I can post it, but I think it's something with the server that needs to be configured and I'm missing it.I figured it out..it looks like the driver needs to be installed on the server. :mad:

Friday, March 16, 2012

On a 64-bit server (IIS 6), can I run some asp.net apps as 64-bit and some as 32

I know I'm not supposed to mix the bitness of processes, but don't application pools isolate processes (if in isolation mode)?

I was thinking I could create two application pools, one that has the 32-bit apps, another that has the 64-bit.

Is this possible? (I've never worked in a 64-bit environment before, so I'm totally clueless)

thanks for any help!You'll probably need to migrate. Have a look at the set of links here: http://blogs.msdn.com/frankred/archive/2004/12/01/273176.aspx