Configuration :: Reading Data From Another Web / Folder?

Jul 12, 2010

From some reasons I added virtual directory to my site- e.g. the entire site running under one domain and one part from another and different folder. I need to read some data that's stored in the main root of the site in text file... but the .NET frame work (and I think iis itself) doesn't give simple access to another folder that declared as different site.

Are there is a way to read the text file? Let's say my main site is-www.domain.com and the virtual directory is-www.domain.com/newsite, (the folders are different, off course, even in different disks) can I get text data from the main root?

View 5 Replies


Similar Messages:

Web Forms :: Reading The Contents Of Remote Folder?

Mar 8, 2011

I want to read the contents of a remote folder(s) but i only know the date part of the folder name, the other part of the folder name is a timestamp that is different everytime. I'm thinking that i need to do something with the last modified/created date attribute to get the correct folder but i am unsure on how to do this.

View 1 Replies

Reading Static File From App_Data Folder?

Apr 23, 2010

I have put a css file in App_Data folder and referrenced it properly in the page to be used. But when I browse the page then it does get loaded and page is shown without styling. Well I know why it is happening because Asp.Net run time blocks access to App_Data folder at run time. But I wanna ask that how we can make it working that is I put the css file in App_Data folder and it still works.

View 8 Replies

Configuration :: How To Read Write Folder Contents Outside Project Folder

May 15, 2010

We store backup archives in subfolders of a folder on one of the server's external USB drive. I would like to have an ASP.NET app read the contents of this folder so the manager can view the backup files to confirm backups are working and optionally delete these backup files when an old drive is reconnected so it can be used for the next weeks backups.

This backup folder is oubviously outside the server's webroot. Is there some way I can grant authority so the ASP.Net app can access this folder for this purpose? I would be using VS Web Express, so can't create any signed packages and such.

View 3 Replies

Configuration :: How To Publish The Cs File Into Root Folder Instead Of Bin Folder

Mar 14, 2011

When we select pull down menu Build -> Publish .... website. The cs extension file dropped into bin folder instead of root folder.

View 2 Replies

C# - Can Use Reflection To Find The Bin Configuration Folder Instead Of The Temporary Folder

Mar 11, 2010

I have an ASP.NET website and I want to find the /bin/[Configuration] folder to use an external tool (an exe file). When I use reflection to get calling assemblies location it returns something similar to:

C:WindowsMicrosoft.NETFramework\...Temporary ASP.NET Filesa1388a5e\...my.dll

Since each dll has its own directory under the temp ASP.NET Files this fails for me. How can I get the location of the compiled binary folder where the dll's and the .exe is (i.e. bin/) instead of asp.net's temporary cache?

View 3 Replies

Configuration :: Adding A Virtual Folder To The Application Folder?

Sep 21, 2010

I have an asp page that needs to download files off of a virtual directory.

I wanted to add the virtual directory to the Visual studio app.

View 2 Replies

Configuration :: Trying To Enumerate The Contents Of Folder - Can't Open Data Connection (425)

Oct 7, 2010

The oddity is, that the same website files, copied and pasted, connection string altered to point to the production/live db, published to the httpdocs folder works fine BUT the same web files, copied and pasted, connection string altered to poin to the dev db, published to the subdomains/dev fodler causes the error below:

------ Build started: Project: AHN, Configuration: Debug Any CPU ------
AHN -> P:Web_DevelopmentxxxDEVinxxx.dll
------ Publish started: Project: xxx, Configuration: Debug Any CPU ------
Connecting to ftp://xxx.co.uk/subdomains/dev/httpdocs...
Transformed Web.config using Web.Debug.config into
objDebugTransformWebConfig ransformedWeb.config.
Copying all files to temporary location below for package/publish:
objDebugPackagePackageTmp.
Deleting existing files...
An error occured trying to enumerate the contents of folder ''. Can't
open data connection (425).
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========
========== Publish: 0 succeeded, 1 failed, 0 skipped ==========

When I asked the hoster whats going on, he obsiously that its not his fold because the publishing is
working for the non-subdomain (dev) site. Moreoever I deleted and recreated the /dev subdomain but the
error is the same.

View 4 Replies

C# - Application Only Partially Reading External Configuration

May 27, 2010

I have an ASP.NET web app and am attempting to reference an external config (using enterprise application blocks configuration) for some of the configuration but it is not entirely working. I previously had all of the configuration info in the web.config (and it was working), but we are wanting to share some of this configuration information between multiple apps. When I put configurationSource tag in the web.config, and read the configuration through the WebConfigurationManager object, it loads some of the external config info (Logging) but not the connectionStrings and not the custom section I created. So it's reading it (logging is working), but some dots aren't being connected and my connection strings aren't coming through.

Again, it worked when it was all in the web.config. I am running .NET 3.5. Any idea what needs to change to be able to reference an external configuration source and have it all come through?

[Code that accesses web.config]
Configuration webConfig =
System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration("~");
ConnectionStringSettingsCollection connectionStrings =
System.Web.Configuration.WebConfigurationManager.ConnectionStrings;
[web.config]
<configuration>
<configSections>
<section name="enterpriseLibrary.ConfigurationSource" type="Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ConfigurationSourceSection, Microsoft.Practices.EnterpriseLibrary.Common, Version=4.1.0.0, Culture=neutral, PublicKeyToken=74025d8738dfe4ce" />
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" />
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
<section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />

</sectionGroup>
</sectionGroup>
</sectionGroup>
</configSections>
<enterpriseLibrary.ConfigurationSource selectedSource="File Configuration Source">
<sources>
<add name="File Configuration Source" type="Microsoft.Practices.EnterpriseLibrary.Common.Configuration.FileConfigurationSource, Microsoft.Practices.EnterpriseLibrary.Common, Version=4.1.0.0, Culture=neutral, PublicKeyToken=74025d8738dfe4ce"
filePath="C:MSEABMSEAB.config" />
</sources>
</enterpriseLibrary.ConfigurationSource>
...
...
</configuration>
[external MSEAB.config]
<configuration>
<configSections>
<section name="loggingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary.Logging, Version=4.1.0.0, Culture=neutral, PublicKeyToken=74025d8738dfe4ce" />
<section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=4.1.0.0, Culture=neutral, PublicKeyToken=74025d8738dfe4ce" />
<sectionGroup name="customSectionGroup">
<section name="customSection" type="app.CustomSection" allowLocation="true" allowDefinition="Everywhere" />
</sectionGroup>
</configSections>
<loggingConfiguration name="Logging Application Block" tracingEnabled="true"
defaultCategory="General" logWarningsWhenNoCategoriesMatch="true">
...
</loggingConfiguration>
<connectionStrings>
<clear />
<add name="DB.DEV" connectionString="User ID=user;Password=pwd;Data Source=DV1;" providerName="Oracle.DataAccess.Client"/>
<add name="DB.TEST" connectionString="User ID=user;Password=pwd;Data Source=TS1;" providerName="Oracle.DataAccess.Client"/>
...
</connectionStrings>
<customSectionGroup>
<customSection notificationemail="email@mail.com" dirPath="C:Dir" initialrowlimit="500" maxrowlimit="1500" adminadgroup="_admins">
</customSection>
</customSectionGroup>
</configuration>

View 1 Replies

Configuration :: Reading Problem In XLS File In 64 Bit Server?

Sep 9, 2010

Reading XLS file in 64 bit server , following errror "microsoft.jet.oledb.4.0 not registered on local Is any solution for this problem?

View 1 Replies

Impersonation + Error Reading Configuration Information From The Registry?

Jul 6, 2010

have registered keys in the registry for impersonation for my application (asp.net 2.0 running in IIS 7.0)

<identity impersonate="true" userName="registry:HKLMSOFTWAREMY_SECURE_APPAPPNAMEASPNET_SETREG,userName" password="registry:HKLMSOFTWAREMY_SECURE_APPAPPNAMEASPNET_SETREG,password" />

View 8 Replies

DataSource Controls :: SSIS Package Not Reading Configuration

Mar 2, 2010

The short story is, I'm developing an SSIS package to select from a remote Oracle database (read: no Windows Authentication) and store into an SQL Server db. I can execute the package just fine in development and after importing, but when I run it as a scheduled job, I get an ora-01017 error (bad un/pw). The details are, I built this package and tested in in BIDS but came across the problem that BIDS really doesn't save the password I'd set for the Oracle connection. After poking around a bit, I found this

[URL] which showed how to create an XML configuration which the package could then read. Fiddled around with that, got it working in BIDS. Connected to Integration Services on the server on which I want to run the package, imported it, right-clicked and did the "Run Package" option as a test, it works great. However, when I connect to the same server's Database Engine to create and schedule a job, I cannot connect to Oracle. For some reason, it seems as if the package is not reading the configuration when run in schedule.

I've tried removing the job and re-working it, thinking maybe it didn't pick up the new version when I re-imported the package. A new job had the same problem. Next, I tried re-naming the .dtsConfig and doing the "Run Package" option as a test. Failed with the same error. A bit surprised, I thought I'd get some kind of file error and we wouldn't get as far as trying to talk to Oracle. Anyway, thinking maybe it's permissions on the configuration, fixed the .dtsConfig name and gave full access to Everyone. That ought to let the Agent see it. Scheduled up the job, still can't talk to Oracle. So it seems as if the scheduled version is ignoring the configuration. Anyone have any idea what I'm missing, that scheduling an SSIS package makes it act differently than running it manually? BTW, the instance under which we're running the package is VS 2005. BIDS 2005 to build the package.

View 3 Replies

Web Forms :: Automatic File Reading / Check For New File Everyday And If The New File Is In The Folder Read It

Sep 20, 2010

I would like ask you for some ideas how can I write mechanism that will be automatically read files from folder. I don't know how to schedule the write task. I want to check for new file everyday and if the new file is in the folder read it.

View 2 Replies

Configuration :: Put A Dll In A Different Folder Than Bin?

Nov 17, 2010

We developed a dll that we reference and use in different web sites. Right now this dll is in the bin folder of each web and when we update the dll we have to copy the new version of the dll in all and each webs' bin folder.

I wonder if these webs can reference to a dll that it is not in the bin folder so to have the dll phisically in only one place (let's imagine c:inetpubinmy.dll), much easier to mantain and update.

View 4 Replies

Reading A File Into Memory And Then Reading It One Line At A Time?

Mar 7, 2011

I know this is probably a pretty easy thing to do and it is if I can upload the file and store it onto the hard drive of the server. What I need to do is read the text file into memory and then parse through it one line at a time. Anyone have any code that demonstrates that?

View 8 Replies

Configuration :: How To Use Sub Domain To Sub Folder

Jan 4, 2011

How to use Sub domain to Sub folder like

sample.mydomain.com -----> mydomain.com/sample.

am created sub domain in sample i am uploaded all the files in sub domain its working fine when am using link like

sample.mydomain.com

but am using sub folder means its display the server Error / in Application

sub folder link

mydomain.com/sample.

View 2 Replies

Configuration :: Ddl's In Bin Folder Are Not Being Referenced?

Feb 11, 2011

I have a weird problem. In my web site project, i am using a lot of third party dll's and i dont want to install them in GAC. So, I had placed all those dll's in Bin folder of application root. When i run the application, it is saying that reference is either incorrect or dll file is missing.

i am running the application from clearcase. I have full execute permissions in that folder in clearcase.

In the solution explorer, when i right click on my project and go to "property pages", it is only showing dll's from GAC only. None of the dll's I had kept in bin folder are being displayed.

View 2 Replies

Configuration :: How To Give Folder Permission Through Ftp

Jun 11, 2010

I have deployed my website in ftp server.now i need to upload image to my database and place images in upload folder. while uploading images i'm getting the below error.

Access to the path 'd:hostingmystieproductImagesvaara.jpg' is denied.

Description:

An unhandled exception occurred during the execution of the current web request. review the stack trace for more information about the error and where it originated in the code.

Exception Details:

System.UnauthorizedAccessException: Access to the path 'd:hostingmysiteproductImagesvaara.jpg' is denied.

ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.

View 1 Replies

Configuration :: Temp Folder Filling Up?

Aug 16, 2010

We have a client with a SBS 2003 server, very standard setup.

The ms.netframeworkv2.0.50727 emporary asp.net files oot folder is filling up with 590kb folders at the rate of around 6 per min.!

They seem to point at a sage CRM package (installed on the server) but Sage say its a problem with IIS and not them!

View 1 Replies

Configuration :: Cannot Delete A Folder In A Website

Dec 13, 2010

On our website, we have an application within our website. The following is the folder structure:

website1 (main website)
bin directory1
website2(an application)
bin directory2
webconfig2
webconfig1

There are other folders under each of the main folders which contain other pages, images, etc.

We're trying to upgrade the website and are encountering some difficulties. We want to remove the website2 from the main website to see it it's causing the problem.

However, we cannot remove the bin folder and so we can't remove the website2 folder. We've been able to delete everything but the bin folder itself. We've tried downing the website and the application pool but we still get the 'access denied' error message.

View 2 Replies

Configuration :: Virtualize The Bin Folder For Different Application?

Aug 20, 2010

Is it possible to virtualize the bin folder for different application? (so that they all point to the same bin folder)

View 1 Replies

Configuration :: Decompile The Kcp.dll Located In The Bin Folder?

Oct 6, 2010

i have being asked to debug some asp pages.. when i received the folder, i only saw .ascx files.. i found that i need to decompile the kcp.dll located in the bin folder to do my work.. i have VS 2010 and .Net Reflector.. but when i open the dll with the reflector i can only view the codes but i cannot edit it.. any1 able to assist me on this? Summary: 1) Decompile kcp.dll 2) edit the codes and compile it back.

View 2 Replies

Configuration :: Deploying A Specific Folder Under A Solution?

Jan 19, 2011

This is our current solution layout.

Main Solution
Business Class C# Project
Module1
f1class1.cs f1class2.cs
Module2
f2class1.cs f2class2.cs
Module3
f3class1.cs f3class2.cs
UI Project (aspx,aspx.cs,bin,app_code)
Module1
page1.aspx page2.aspx
Module2
page3.aspx page4.aspx
Module3
page5.aspx page6.aspx

For every deploy the UI Project is published and moved to all the sites. All the Modules use the same Business Class C# Project. Basically every page will use some common classes in Business Class C# Project >> Module1 Now what i need is to just deploy Module3 independent of full deploy. This shouldnt disturb the existing functionality for the remaining modules as they are already working fine in Production. So only the Module3 business class and Module3 aspx changes need to be deployed. The problem here is Module3 business class is a part of Business class C# Project. Is there a way to just deploy Module3 Business Class, ASPX when ever required without having to move the Business Class C# Project.

View 2 Replies

Configuration :: Cannot Access To Admin Folder In Web Host

Jan 27, 2011

We have created an ASP.NET ( 3.5) application is configured to use FORM authentication and thus it has such a following items in Web.Config :

<location path="~/Admin/Default.aspx">
<system.web>
<authorization>
<allow roles="Manager,Member" />
<deny users="*" />
</authorization>
</system.web>
</location>
<location path="~/Admin/MyAccount.aspx">
<system.web>
<authorization>

the application runs OK on local web server box. Our ASP.net application is able to access Admin folder in local IIS application folder and its subdirectory. However, once uploaded to remote web host , user can login but when user wants to use any pages in ~/Admin subfolder, we get an exception that essentially states that access to the sub-directory is denied.

View 3 Replies

Configuration :: Unwanted Files In Bin Folder When Publishing

Nov 3, 2010

During build process on ASP.NET MVC 2 application, two files are generated dynamicly (copied, that is) in build folder :

- Microsoft.SqlServer.Replication.dll
- Microsoft.SqlServer.BatchParser.dll

As this files are unwanted, are not required for application to run properly, i put delete command on post build event to remove them :

<code> del "$(TargetDir)Microsoft.SQLServer.Replication.dll" & del "$(TargetDir)Microsoft.SQLServer.BatchParser.dll" </code>

The problem is, as i understood the publish process does: 1. Build, 2.Publish, 3. Post build, so these files are alwasys published on server and causing problems on every publish to our QA server. Is there any way to avoid removing files manually, except for first publishing on the local fs, then use some sort of ftp deployment script that would first delete files, and then push them to server.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved