Saturday, March 31, 2012
SubSonic web.config problem
I'm using SubSonic tool, and my website works fine on my machine. When I try to host my website on my hosting account, I get web.config error:
-- ERROR --
Server Error in '/' 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.
...
Line 25: <SubSonicService defaultProvider="MYWebsiteDB">
-- ERROR --
- Here's the full web.config file.
Thanks!
<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
</sectionGroup>
</sectionGroup>
</sectionGroup>
<section name="SubSonicService" type="SubSonic.SubSonicSection, SubSonic" allowDefinition="MachineToApplication" restartOnExternalChanges="true" requirePermission="false"/>
</configSections>
<connectionStrings>
<add name="MyWebsiteConnection" connectionString="Data Source=localhost\SQL2005;Database=MyWebsiteDB;User ID=myUser;Password=myPass;"
providerName="System.Data.SqlClient" />
</connectionStrings>
<SubSonicService defaultProvider="MyWebsiteSQL">
<providers>
<add name="MyWebsiteSQL" type="SubSonic.SqlDataProvider, SubSonic" connectionStringName="MyWebsiteConnection" generatedNamespace="MyWebsite.DataAccess" fixPluralClassName="true"/>
</providers>
</SubSonicService>
<appSettings>
<add key="SupplierFilePath" value="~/admin/SuppliersFiles/"/>
<add key="SupplierFilePathTemp" value="~/admin/SuppliersFiles/Temp/"/>
</appSettings>
<system.web>
<pages>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</controls>
</pages>
<compilation debug="true">
<assemblies>
<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add assembly="System.Data.OracleClient, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Management, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Messaging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Configuration.Install, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></assemblies>
</compilation>
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
</httpHandlers>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</httpModules>
<authentication mode="Forms">
</authentication>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</modules>
<handlers>
<remove name="WebServiceHandlerFactory-Integrated"/>
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</handlers>
</system.webServer>
<system.net>
<mailSettings>
<smtp>
<network host="localhost" port="25" userName="" password=""/>
</smtp>
</mailSettings>
</system.net>
</configuration>You have a virtual directory under a virtual directory with a web.config in it. Am I right?
Monday, March 26, 2012
suggest multi-file upload components?
'catch' is that it's been requested that we accomodate files from 2 to 100mb
in size, and, ideally, the ability to upload up to 20 files at a time.
I've been looking around a bit and it seems as if element-it.com's products
will work:
http://www.element-it.com/
They appear to have a file upload script that gets around some of the large
file issues that the default asp.net file upload classes have in addition to
a nice Flash-based component that allows one to browser to multiple files at
once.
Has anyone used this product? comments? Suggestions for other components to
look at?
-DarrelOn Wed, 27 Dec 2006 14:44:47 -0600, darrel wrote:
Quote:
Originally Posted by
I'm looking for some options for implementing a file uploading tool. The
'catch' is that it's been requested that we accomodate files from 2 to 100mb
in size, and, ideally, the ability to upload up to 20 files at a time.
>
I've been looking around a bit and it seems as if element-it.com's products
will work:
>
http://www.element-it.com/
>
They appear to have a file upload script that gets around some of the large
file issues that the default asp.net file upload classes have in addition to
a nice Flash-based component that allows one to browser to multiple files at
once.
>
Has anyone used this product? comments? Suggestions for other components to
look at?
>
-Darrel
If you're uploading such large files, have you considered using FTP rather
than HTTP uploads?
--
Bits.Bytes
http://bytes.thinkersroom.com
If you're uploading such large files, have you considered using FTP rather
Quote:
Originally Posted by
than HTTP uploads?
That's what they have now. It's a printer that accepts files via FTP.
However, they want to have a 'web based interface' for ease of use with
their customers
-Darrel
Hi,
If you want a ready component then Jupload is very good for your
requirement.
Thanks,
Nis
darrel wrote:
Quote:
Originally Posted by
Quote:
Originally Posted by
If you're uploading such large files, have you considered using FTP rather
than HTTP uploads?
>
That's what they have now. It's a printer that accepts files via FTP.
>
However, they want to have a 'web based interface' for ease of use with
their customers
>
-Darrel
Hi Darrel,
I suggest you http://www.jupload.biz/
Thanks,
Nis
darrel wrote:
Quote:
Originally Posted by
Quote:
Originally Posted by
Hi,
If you want a ready component then Jupload is very good for your
requirement.
>
It appears that there are multiple products using that name. Which one do
you recommend?
>
http://www.aspupload.com/jupload.html
http://sourceforge.net/projects/jupload/
http://www.jupload.biz/
others?
>
-Darrel
Hi,
Quote:
Originally Posted by
If you want a ready component then Jupload is very good for your
requirement.
It appears that there are multiple products using that name. Which one do
you recommend?
http://www.aspupload.com/jupload.html
http://sourceforge.net/projects/jupload/
http://www.jupload.biz/
others?
-Darrel
Saturday, March 24, 2012
Suggestions for help authoring tool for ASP.Net
Microsoft provide provide downloadable tools/software like they did for
windows applications (i.e. WinHelp or HTML help)?
We purchased Robohelp awhile back ago when we working with asp web
applications, but this is very expensive. We are looking for something else
that is somewhat compareable for asp.net, but no as expensive.
Any suggestions on Microsoft products or third-party products are appreciate
d?ASP web matrix is a free asp.net web authoring tool.
http://asp.net/webmatrix/default.as...ndex=4&tabId=46
"Mike Moore" <MikeMoore@.discussions.microsoft.com> wrote in message
news:8D6B7A2A-BC25-423F-8D08-C4725507C370@.microsoft.com...
> We would like to add online for the users in our asp.net applications.
Does
> Microsoft provide provide downloadable tools/software like they did for
> windows applications (i.e. WinHelp or HTML help)?
> We purchased Robohelp awhile back ago when we working with asp web
> applications, but this is very expensive. We are looking for something
else
> that is somewhat compareable for asp.net, but no as expensive.
> Any suggestions on Microsoft products or third-party products are
appreciated?
http://www.steema.com/products/teegofer/overview.html
for pricing:
http://www.steema.com/ordering/order_tgfhelpnet_n.shtml
I am not affiliated nor have I used this product ... merely submit for your
review.
"Mike Moore" <MikeMoore@.discussions.microsoft.com> wrote in message
news:8D6B7A2A-BC25-423F-8D08-C4725507C370@.microsoft.com...
> We would like to add online for the users in our asp.net applications.
> Does
> Microsoft provide provide downloadable tools/software like they did for
> windows applications (i.e. WinHelp or HTML help)?
> We purchased Robohelp awhile back ago when we working with asp web
> applications, but this is very expensive. We are looking for something
> else
> that is somewhat compareable for asp.net, but no as expensive.
> Any suggestions on Microsoft products or third-party products are
> appreciated?
Suggestions for Printing Form letters from web page?
What exactly you mean by form letters?
Do you even need a web app? If so, look into the Office Automation Tools.
Jeff
There are about a 12 differant forms that are used to notify clients of meetings or upcomming actions and a variety of other things. The only changeing in the forms is the names dates and addresses. Where would I look for the office automation info. Alot of this is new to me. Thanks.
Are these viewed via the web?
I think we're all a little confused as to what the connection is to ASP.NET with mail-merge documents.
I need for these forms to be viewed over the office network web site. They won't be view by the WWW. Just in the local office. These are not really mail merger docs.The names addresses etc will need to be able to be inbeded in the documents. I guess another way of saying this is like this. I have a button set up that allows me to select which form I want to see and print if needed. I need to be able to bring this from up with the current clients name, address etc being put into the form where needed. Does this help? I appreciate any help/advice. Thanks
Ok... couple things as I see it.
1) how to get the docs to show.
2) how to get the docs to merge the client info into it.
3) how to print.
Well, the 3rd is right out without a component. window.print() is about the best you can do for accessing the clients printer from the IIS server.
Lets back up though. The docs can be anywhere that the IIS box can get to them, no biggie.
Simply supply a list that refers to this location.
As for pulling the client's info into the doc, you got two options. Try to manually do this from asp.net or build your docs/templates to retrieve from a db, then you just need to pass the clientID (or whatever identifier).
The whole scenario really sounds like an ideal candiate for a reporting tool or some type of PDF tool ideally.
Take a look at:
http://msdn2.microsoft.com/en-us/library/d2tx7z6d.aspx
Jeff
Tuesday, March 13, 2012
SVG-WMF or PNG-WMF conversion
for SVG-WMF conversion or PNG-WMF conversion.
Thanks in advance.Hi,
Free version of GdPicture can do that with 3 line of code.
Http://www.gdpicture.com
Loc
> Would like to know whether any free tool (ActiveX kind of thing) available
> for SVG-WMF conversion or PNG-WMF conversion.
> Thanks in advance.
--
Loc Carrre
http://www.asi-concept.fr