Showing posts with label path. Show all posts
Showing posts with label path. Show all posts

Wednesday, March 28, 2012

Accessing Web Services that are external to my application.

Is it possible to use the <atlas:servicereference> to set a path to a web service that doesn't exist within the same application as the consuming aspx file?

All the samples and examples show the <atlas:servicereference path="" /> containing the path to an asmx file located within the same application as the consuming aspx file. How would I set a reference tohttp://somedomain/someapp/someservice.asmx ?

This can't easily be done because XmlHttp (the browser component used to make requests) disallow requests to other domain for security reasons. Note that youcan make requests to Atlas services in other apps, as long as they're in the samedomain. e.g. foo.mydomain.com can use bar.mydomain.com.

In the next build of Atlas (around march), we will allow a limited form of cross domain method calls to Atlas services (without using XmlHttp).


Thanks. I can just reference the external web services from with the one local to my application.
Yes, doing this is what we call 'bridging', and we will also have addition support for this is a later build. In the meantime, do whatever gets you going! :-)

Monday, March 26, 2012

Access to the path C:\AJAX_Documentation\web.config is denied.

Greetings,

I download the ajax documentation and i extract it to c:\AJAX_Documentation.

I make a virtual directory called AJAX_Documentation but when i run it i get the following error:

Server Error in '/AJAX_Documentation' 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: An error occurred loading a configuration file: Access to the path 'C:\AJAX_Documentation\web.config' is denied.

Source Error:

[No relevant source lines]


Source File: C:\AJAX_Documentation\web.config Line: 0

Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

but i try to move the folder AJAX_Documentation to c:\inetpub\wwwroot so it works fine

so what is the problem,if i extract it to C drive?

i make research on the internet and they tell me that this problem may be because you install .net framework 2.0 afetr IIS which is my case so i uninstall .net framework and IIS and then i install first .net framework and then IIS but i still face the same problem.

so i try another thing to run aspnet_regiis - i so i still face the same problem

so i try another thing : aspnet_regiis -ga "nt authority\Network service" so i still face the same problem

your help is highly appreciated

best regards

That mean Asp.Net user hasn't got right file permission to read your config file.

Try to reconfiguration your file permissions of the C:\AJAX_Documentation\ folder.


thak you for the s

thank you for the support

i try what do you suggest what i already do it but i still face the same problem!!!

so what i do i go the security tab of the ajax_documentation folder and i add the aspnet user and i give him all the permission but i still face the same problem!!

so any other suggestion for this problem?

your help is highly appreciated

best regards


I had the same problem.

I solved it installing the website in c:\Inetpub\wwwroot\AJAX_Documentation

Regards,

Access to Path denied message appears on install

Hi,

While trying to install Atlas, I get the following message - Access to the path 'C:/Program Files/Common Files/Pumatech Shared/Transaction Manager/ComponentData/TraceLogs' is denied. What do I need to do here?

Thanks,
James

Hello. I do not have much to add other than I am experiencing thesame problem. I downloaded the installer today (4 April2006). My system is Windows XP Professional, SP 2 and I havelocal admin rights to the machine.
It seems like your Blackberry synchronization application is conflicting with the install. I have no idea why but I suspect that there is something really wrong with your system. Atlas itself knows nothing of this Pumatech folder.

I am not sure why the setup will reference the Pumatech Shared folder since it should be not be related. Can you check a couple things:

- Since it was access denial error, can you check if your current user account has the access permission to the folders through the security tab of the Properties dialog of the folders?

- From some internet search results, it looks Pumatech Shared folder might be created by Pumatech Intellisync, Blackberry Desktop Software or some PDA desktop sync software. I am just curious that if you have any of such software installed on your machine. If possible, would you be able to try Atlas setup on a machine that does not have any of such software installed?

Thanks,
Frank


I do have Blackberry Desktop sync software amd the exe I use to sync upis not loaded in memory. In other words it only syncs when I tellit to, manually. I also checked Windows Services and the Sys TrayRegistry settings (HKLM\Software\Microsoft\Windows\CurrentVersion\Run)and I do not see any suspicious exe/processes either.

Oddly enough, despite having local admin rights, when I try to look atthe Pumatech Shared folder's settings it gives me a permission deniederror!

I am really at a loss, too why the the Atlas setup would want to reference the Pumatech Shared folder. A
clean reboot and then reinstall does not help either.

At this time I do not have another machine to test the install. The only consollation I have is that I am not the only one with thisvery strange problem.

Thanks guys for the replies. Any more ideas?
One more thing, if I unckeck "Install Atlas Visual Studio ProjectTemplate" from the setup. It completes successfully (other thaninstalling the template, of course).

Originally, I thought the problem may be due to having an apostrophe inmy name (o'reilly), since the templates directory is located underc:\documents & settings\o'reilly\visual studio 2005\......, etc.

Today, I copied the contents of C:\Documents andSettings\o'reilly\My Documents\Visual Studio 2005 and pasted it toC:\Dev. I then went through the Visual Studio 2005 optionsettings and changed every pertinent setting I could to point toc:\dev\Visual Studio 2005\...

So at this point I am really grasping at straws as to why this installer is not working properly.
"I am not sure why the setup will reference the Pumatech Shared folder since it should be not be related. "

Not only does theWindows Installer Component(msiexec.exe) references this folder, it accesses alot of other foldersthat are unrleated to access. This is alarmingly so when viewingthe installer activity using sysinternal's FileMon utility.

I also had the same problem. I uninstalled the Blackberry Desktop app with Add Remove programs and this did not remove the \Pumatech Shared\ directory. So I uninstalled the Yahoo calendar sync desktop app I installed that this did not remove it. I went into the \Pumatech Shared\ directory and ran all the uninstall.exe's within the subdirectories. When I attempted to delete the directory, I hit a permission problem. I tried again to access the \Trace Logs\ directory and got a message that I could not change permissions, but could take control of the directory. So I did. I had right clicked, clicked Properties and clicked Security tab and change the owner from null to me. Then I gave myself full control of the \Trace Logs\ directory. I had repeat this process for the two xml files contained with in. Once I did that, I could delete the entire Pumatech directory. With this in the trash, I was able to install Atlas including the template. I haven't seen that I have caused any more problems by doing such a brute force uninstall, but I just finished doing this a few minutes ago. My system hasn't crashed yet and I don't forsee that this would cause any problems, so I'm feeling pretty confident. I'll see what happens next. :) Hope this helps. Dean

The setup is searching through C:\Program Files\Common Files to look for VSContentInstaller.exe to launch the VSI installation. There might be some problem when it cannot access some folder under the directory. I will investigate further and see exactly what happens under this condition. Please stay tuned.

Thanks for providing all the info, it has been really helpful to narrow down the area of the problem.
Frank


By the way, as mentioned by "Life of Riley" above, a workaround is that you uncheck "Install Atlas Visual Studio Project Template" during setup. Once setup is done, you go to "C:\Program Files\Microsoft ASP.NET\Atlas\v2.0.50727" and open ASPNETAtlas.vsi. This should install the Atlas template properly.

Just an update on this, the above issue of access denied to an unrelated folder has been fixed and the next release of Atlas will not have the same issue.

Thanks,
Frank

Saturday, March 24, 2012

about file upload2

Hi,

I have a fileupload control inside update panel however I don't need to upload any file I just need the file path and filename etc...

eventhough I can see it pastes the path inside the fileupload text part, I can't read it programmatically..

Thankss.

Why do you need the path to a file on the client computer? You can't read a file from the client computer anyway. What are you trying to achieve?


Dim instance As FileUploadDim value As Stringvalue = instance.FileName
.....................
 FileUpload.FileName:Gets the name of a file on a client to upload using theFileUpload control.

gridview:

Dim instance As FileUploadDim value As Stringvalue = instance.FileName
.....................
 FileUpload.FileName:Gets the name of a file on a client to upload using theFileUpload control.

Note that the original posted wanted the filename AND the path..


alexdresko:

Why do you need the path to a file on the client computer? You can't read a file from the client computer anyway. What are you trying to achieve?

This question reminded me how dumb I am :) thanks..

Well I'm coding a webmail interface and my mail server COM API asks for the path but this path is my server's path not the clients :D ok..

But if I know the path somehow; couldn't I upload the file programmatically? without fileupload control, I mean ok it ease the life but if it doesn't work inside an update panel how can I come up with?

Thanks for the reply..


No, you have to use the fileupload control. When the page posts back, you can save the file they uploaded to your server and from THAT you can determine the path to pass to your COM API.

Make sense?


Yes got it;

Thanks..

So is there anyway to do it with updatepanel?


No. You have to wrap your fileupload control within another updatepanel and set EnablePartialRendering = False. Supposedly there are other workarounds, and I know there is at least one third party AJAX enabled upload control, but the built-in fileupload control doesnt work with ajax..


Thanks for the reply;

Do you mean EnableViewState=False?? cause I couldn't find such property (EnablePartialRendering=False)

Wednesday, March 21, 2012

a issue in <atlas:UpdatePanel>:do not work with .css file in format of absolute path

i found a issue in <atlas:UpdatePanel> control, under <ContentTemplate> control, we usually put lots of html control or server control, withclass attribute orcssclass attribute.

if the .css file is in a format ofabsolute path like below

<link type="text/css" rel="stylesheet" href="/myWeb/css/RichClientUI.css"/
then the partial render html tagcan not apply style setting defined in .css file.

if the .css file is in a format of relative path like below

<link type="text/css" rel="stylesheet" href="../../css/RichClientUI.css"/>

then the partial render html tagcan apply style setting defined in .css file.

i think this should a bug. coz in web design, we usually use a method like <%=Util.GetApplicationPath%> to get a real web app path against a IIS Website, so that we can deploy our web app under awebsite or avirtual directory without changing any resource (e.g css/js/gif/jpg/etc.) path.-->

you should try to use the "~" character in your path

for example:
<img src="http://pics.10026.com/?src=~/Images/myimage.gif" runat="server"> this would start the path at your application root for the website or virtual directory then take you to the images folder then of course display your image...


the "~" character is very useful, but it has a restriction when use. coz it always renderrelative web application root path based onthe same web server. in web farm condition, we usually require absolute resource path. further, the absolute resource path maybe dynamically generated according some business logic, so this is why we need a static method like <%=Util.GetApplicationPath()%> to getruntime absolute resource path.


change the <%=Util.GetApplicationPath()%> to<%# Util.GetApplicationPath()%> and I think you will get your desired results...I ran into the same issue with a project I was working ...